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 > DB2 > locktimeout error with insert and delete sqls

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-23-04, 22:55
jmychung jmychung is offline
Registered User
 
Join Date: Oct 2003
Location: Hong Kong
Posts: 41
locktimeout error with insert and delete sqls

I am using DB2 UDBV7.2.5, AIX 5.X

I delete and reinsert a record to a table in connection 1, then I want to delete another record in that table in connection 2. After issuing delete sql in connection 2, i get locktimeout error.

in the time between delete sql in connection 2 and locktimeout, i get snapshot for locks and found the following locks in the table:

connection 1:
X on row
IX on table
X on key value
S on key value

connection 2:
IX on table

I wonder if X and S on key value cause the locktimeout error, but I don't know what is key value.

Can anyone help me?
Attached Files
File Type: txt snapshot_3.txt (23.0 KB, 55 views)
File Type: txt SQL_TBL_IDX.TXT (2.5 KB, 46 views)
Reply With Quote
  #2 (permalink)  
Old 09-24-04, 08:39
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Yes, X and S locks are not compatible. Check out the following to see lock compatibility chart:

http://publib.boulder.ibm.com/infoce...help/index.jsp
and search for "Lock type compatibility".

Andy
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