If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Orphaned/phantom sessions?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-01-04, 11:03
mrallgood mrallgood is offline
Registered User
 
Join Date: Mar 2004
Location: Virginia
Posts: 11
Orphaned/phantom sessions?

Hello,

We had a session that the SysAdmin killed in UNIX via 'kill -9' instead of letting us kill it via onmode. However, the end user is having a problem logging in. It appears that the old session still has a lock out there somewhere. Is there a simple way to figure out which lock this orphan session has and kill it?

Thanks
Reply With Quote
  #2 (permalink)  
Old 11-01-04, 11:44
fsercolin fsercolin is offline
Registered User
 
Join Date: Nov 2004
Posts: 7
Post

HI,

Use the query below to identify what locks this session had, maybe you will need restart the IDS to normalize this situation.

-- Begin
select substr(trim(dbsname) || "." || trim(tabname),1,30) as banco_tabela,
substr(rowidlk,1,8) as linha, type as tipo,
substr(sid,1,8) as sessao, substr(username,1,8) as usuario,
substr(is_wlock,1,1) as blk,
substr(waiter,1,8) as sesblk
from syslocks l, syssessions s
where l.owner = s.sid
order by 4
-- End
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On