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 > Db2 Deadlock Problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-28-06, 15:08
mdx34 mdx34 is offline
Registered User
 
Join Date: Oct 2004
Posts: 238
Db2 Deadlock Problem

Linux RedHat--DB2 8.1 Fix Pack 8.

I am getting:
db2inst1 4920 9821 0 14:49 ? 00:00:00 db2event (DB2DETAILDEADLOCK)

when I run ps -ef | grep "db2" command. How do I find out what the DEADLOCK is on (What Causes it)?

We have 3 databases on this box. There are 3 event log directories 1 for each database (I guess)............
/NODE0000/SQL00001/db2event/db2detaildeadlock
/NODE0000/SQL00002/db2event/db2detaildeadlock
/NODE0000/SQL00003/db2event/db2detaildeadlock

Which file sould I look for ?. If I open the file in Notepad or wordpad, I mostly see all the scrambled stuff. db2diaglog file doesn't have anything about the deadlock. How do I find out ?

TIA.
Reply With Quote
  #2 (permalink)  
Old 09-28-06, 17:16
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Once a deadlock is detected, DB2 chooses a "victim" and cancels it to resolve the deadlock with the other application(s). The deadlock detector runs every 10 seconds by default.

To trap information about a deadlock, the best way is to set up a deadlock event monitor. See the Command Reference manual.
__________________
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 09-29-06, 10:04
mdx34 mdx34 is offline
Registered User
 
Join Date: Oct 2004
Posts: 238
Thanks....................I realized that my maintenance plans (Database backups, load jobs) were not running since 08/28/06. The description was "Expired". I belive that a deadlock caused this. Once I modified the jobs and the jobs ran last night. This morning, there was no deadlock when I ran ps -ef | grep "db2".

Thanks again.
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