Skip to main content

developerWorks >  Information Management  >  Forums  >  DB2 for z/OS forum  >  developerWorks

In a deadlock situation, which user is terminated by DB2?    Point your RSS reader here for a feed of the latest messages in this thread


Tags for this thread: 

     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 2 - Pages: 1 - Last Post: Oct 29, 2009 7:43 AM Last Post By: alexDG
Fred Whitlark

Posts: 4
Registered: Oct 20, 2009 03:00:24 PM
In a deadlock situation, which user is terminated by DB2?
Posted: Oct 20, 2009 03:11:45 PM
Click to report abuse...   Click to reply to this thread Reply
In a deadlock, how does DB2 determine which transaction/user/job to terminate? The "word on the street", what I have always heard, is that DB2 abends the user that has done the LEAST amount of work, but I have been unable to verify that in the DB2 manuals. If that assumption is correct, how does DB2 determine the amount of work (GETPAGES, CPU secs, elapsed time, etc....what metric is used?)
momi

Posts: 87
Registered: Jan 07, 2007 10:49:29 AM
Re: In a deadlock situation, which user is terminated by DB2?
Posted: Oct 21, 2009 02:54:23 AM   in response to: Fred Whitlark in response to: Fred Whitlark's post
Click to report abuse...   Click to reply to this thread Reply
Hi

According to what I know, the transaction that will abend as a result of a deadlock is the transaction that will take less processing to rollback, so as for your question, less work means less updates.
I think I read this in a redbook called, application design for high performance.
alexDG

Posts: 1
Registered: Oct 29, 2009 07:34:14 AM
Re: In a deadlock situation, which user is terminated by DB2?
Posted: Oct 29, 2009 07:43:01 AM   in response to: momi in response to: momi's post
Click to report abuse...   Click to reply to this thread Reply
In DB2 for LUW, to what I read, DB2 deadlock detector will arbitrarily select one of the participating deadlocked processes, and will then be the victim process to rollback.
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums