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 > Tracking down transaction details

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-09-12, 15:35
Tracygirl Tracygirl is offline
Registered User
 
Join Date: Aug 2011
Location: Columbus, OH
Posts: 22
Tracking down transaction details

DB2 9.5 on AIX

I have 2 applications writing to a single table. A couple times a week a transaction is rolled back because of a deadlock/timeout. The applications batch their inserts, but I do not know if it's 1 transaction with multiple insert statements or a single transaction for every insert statement.

Is there a db2pd command or similar tool I can use to see if records inserted into the table were from a single transaction? I'm open to any suggestions that will help me learn more about how the database handled the transactions.

Thanks db friends!
Reply With Quote
  #2 (permalink)  
Old 02-09-12, 15:42
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You need to know whether it is a deadlock or a timeout. You approach each one differently. With a deadlock, you can use an event monitor to locate the cause. With a timeout, you have a transaction taking up a lot of time and not releasing locks in a timely manner. Look here for how to diagnose these: IBM DB2 9.5 Information Center for Linux, UNIX, and Windows

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