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 > Sharing locks in XA transactions (tightly coupled)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-01-11, 10:50
theowne theowne is offline
Registered User
 
Join Date: Sep 2011
Posts: 5
Sharing locks in XA transactions (tightly coupled)

I am running a bunch of XA transactions on Db2.

Db2 seems to treat all connections from the same transaction as loosely coupled - in other words, if one connection works on a table, then it is locked from all other connections within the same transaction.

Tightly coupled transactions should all share locks to prevent this kind of locking, when it is all part of one transaction. The documentation seems to state that tightly coupling is the default, but that is not reflected in DB2's behaviour. Does anyone know what could be wrong?

In fact, even using the same XAConnection object, it will still be blocked if I try to do an update after an insert (without ending and comitting the entire transaction).
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