Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2003
    Location
    australia
    Posts
    17

    Unanswered: 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.

  2. #2
    Join Date
    May 2003
    Location
    USA
    Posts
    5,737
    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

  3. #3
    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

  4. #4
    Join Date
    May 2003
    Location
    USA
    Posts
    5,737
    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

  5. #5
    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.

  6. #6
    Join Date
    May 2003
    Location
    USA
    Posts
    5,737
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •