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 > Transaction rollbacks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-22-03, 00:07
shannonw shannonw is offline
Registered User
 
Join Date: Nov 2002
Posts: 15
Transaction rollbacks

I am getting the error: SQL0911N The current transaction has been rolled back because of a deadlock or timeout.

Is there any way in DB2 that I can easily find the process or statement that is holding the lock on the table I am trying to access?

Regards
__________________
Shannon Whitty
reynolds.com.au
Reply With Quote
  #2 (permalink)  
Old 12-22-03, 00:43
nitingm nitingm is offline
Registered User
 
Join Date: Jul 2003
Location: Austin, TX, USA
Posts: 278
Monitors

Hi,

There are 2 ways you can achieve the same

1. Create an event monitor for deadlocks. This is the most effective way and it really helps in identifying the culprit statements.

2. Enable all monitoring at the instance level and take snapshots for the database, application and application details as well.

That would give you a clear indicator of what's happening and how to go about resolving your issue.

There have also been a lot of posts on the same in the forum and am sure you will benefit a lot by reading the same.

Cheers

Nitin.
__________________
HTH

Nitin

Ask the experienced rather than the learned
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