dbTalk Databases Forums  

Deadlock victim DB2 LUW 9.5

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Deadlock victim DB2 LUW 9.5 in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
danfan
 
Posts: n/a

Default Deadlock victim DB2 LUW 9.5 - 02-17-2010 , 03:50 AM






Hi!

How does DB2 choose the victim when a deadlock is detected?
Can it be configured in any way?
Last night a long-running batch transaction was choosen before a one-
account-update Web-application. I was under the impression that the
application that had done the least work was choosen. See article
at:http://www.idug.org/conferences/EU2008/data/EU08F11.pdf

/dg

Reply With Quote
  #2  
Old   
danfan
 
Posts: n/a

Default Re: Deadlock victim DB2 LUW 9.5 - 02-17-2010 , 04:27 AM






On Feb 17, 10:50*am, danfan <danfa... (AT) hotmail (DOT) com> wrote:
Quote:
Hi!

How does DB2 choose the victim when a deadlock is detected?
Can it be configured in any way?
Last night a long-running batch transaction was choosen before a one-
account-update Web-application. *I was under the impression that the
application that had done the least work was choosen. See article
at:http://www.idug.org/conferences/EU2008/data/EU08F11.pdf

/dg
Hmm!
In Tuning database performance (SC23-5867-01) I found this:
"If it finds a deadlock, the deadlock detector arbitrarily selects one
deadlocked
process as the victim process to roll back. The victim process is
awakened, and
returns SQLCODE -911 (SQLSTATE 40001), with reason code 2, to the
calling
application. The database manager rolls back uncommitted transactions
from the
selected process automatically. When the rollback is complete, the
locks that
belonged to the victim process are released, and the other processes
involved
in the deadlock can continue".

Still, is there no way to influence the behaviour?
/dg

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.