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 > How to identify the thread

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-29-04, 06:57
jjosh jjosh is offline
Registered User
 
Join Date: Aug 2004
Posts: 7
How to identify the thread

We are using informix 9.40 FS2.

When i am trying to re-index table bid107, I am getting message table locked.
Is there any way by which i will be able to identify the thread which is having transaction on this table and can be killed thru onmode -z command so that the lock will be released.

I observed that all locks are of type shared thru onstat -k command.

Regards

JJosh
Reply With Quote
  #2 (permalink)  
Old 11-29-04, 08:21
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi Jjosh,

Please run onstat -k|grep tblsnumber of table (hex(partnum)), next onstat -u|grep column "owner". Then print session ID.

Gustavo.
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