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 > Oncheck lock error message

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-07-04, 09:15
ggoicochea ggoicochea is offline
Registered User
 
Join Date: Jun 2004
Posts: 2
Oncheck lock error message

Hi, we are running an oncheck -cD on oour Informix 7.31 after a critical crash and we couild see the following error in the oncheck log.

TBLspace data check for p0202adm.tst03
ERROR: Could not obtain lock for p0202adm.tst03.

I think that it was because someone tries to access the table at the same time.

could anyone confirm that.

Thank you
Reply With Quote
  #2 (permalink)  
Old 06-07-04, 09:53
iaguigon iaguigon is offline
Registered User
 
Join Date: May 2004
Location: Barcelona, Spain
Posts: 54
Hi!

This message is caused by a lock being held for that table. You should be able to locate this lock by means of "onstat -k" or a query on syslocks (and syssessions) and identify the user session that is holding it.

Cheers

Iņaki
Reply With Quote
  #3 (permalink)  
Old 06-07-04, 11:03
ggoicochea ggoicochea is offline
Registered User
 
Join Date: Jun 2004
Posts: 2
Thank you very much for the data, I´m not an Informix DBA, and I have to confirm the suspects on this error.

regards.
Reply With Quote
  #4 (permalink)  
Old 06-08-04, 06:36
jh1213 jh1213 is offline
Registered User
 
Join Date: Jul 2003
Location: Beijing China
Posts: 36
Oncheck verify index and data pages of table use share lock mode,but fix the bad index and data pages use exclusive lock mode.
__________________
MSN:jianghua1213@hotmail.com
Beijing China
http://www.91talk.net
http://www.91talk.com
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