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 > Internal rollbacks due to deadlock

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-03-06, 22:49
hariza hariza is offline
Registered User
 
Join Date: Jan 2003
Location: australia
Posts: 17
Internal rollbacks due to deadlock

Hi Guys,


I wonder if someone can explain me why even though I have a deadlock event monitor ON I'm getting heaps of "Internal rollbacks due to deadlock" but I can't see anything in the event monitor. Also I wonder why for instance the "Deadlocks detected" is always 0 and the "Internal rollbacks due to deadlock" is a high number so I would've thought that "Deadlocks detected" counter should include any type/kind of deadlock even the internal ones. Is this correct. Thanks.

harbry.
Reply With Quote
  #2 (permalink)  
Old 12-04-06, 02:39
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Where are you seeing this? Are you sure it is not a locktimeout? A deadlock and a locktimeout are not the same thing.

Both a locktimeout and deadlock will result in -911, but the locktimeout has reason code 68, and the deadlock has reason code 2.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 12-04-06, 17:14
hariza hariza is offline
Registered User
 
Join Date: Jan 2003
Location: australia
Posts: 17
After you issue the :
db2 get snapshot for all on p01webd1 | grep -i "rollbacks" | more

You'll get something like this:
Internal rollbacks = 424
Internal rollbacks due to deadlock = 2221
Reply With Quote
  #4 (permalink)  
Old 12-04-06, 21:49
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You may need to reset the snaphot monitors, or determine if the number grows while you have the event monitor running.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 12-05-06, 20:32
hariza hariza is offline
Registered User
 
Join Date: Jan 2003
Location: australia
Posts: 17
I just found that this is due to a bug and it'll be fixed with DB2 FP13.
Reply With Quote
  #6 (permalink)  
Old 12-05-06, 21:32
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by hariza
I just found that this is due to a bug and it'll be fixed with DB2 FP13.
FP13 and FP14 are already released.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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