Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > IBM DB2 > Re: Deadlock du...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 8816 of 9366
Post > Topic >>

Re: Deadlock due to table level exclusive lock

by Knut Stolze <stolze@[EMAIL PROTECTED] > Apr 23, 2008 at 09:58 AM

Arun Srinivasan wrote:

> Please correct me if I am wrong
> 1. no 2 processes can have exclusive lock on same object (by object,
> same row or same table)
> 2. on deadlock incident between 2 processes only one of them will be
> cancelled by db2 to let the other finish.
> 
> Now, can there be an instance where 2 processes have 'EXCLUSIVE LOCK'
> on same table, and are waiting on the same 'EXCLUSIVE LOCK' held by
> the other agent to be relinquished. They both are cancelled by db2
> using the 911 sqlstate.
> It has been continuously happening to me, and it perplexes me.
> 
> This happenes because I use the 'lock table <table_name> in exclusive
> mode' statement in a stored procedure, and I call that SP in three
> applications at the same instance. Can this happen? I also got event
> monitor output, and am analysing the same.

From this brief description we should be able to answer your question?


-- 
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
 




 4 Posts in Topic:
Deadlock due to table level exclusive lock
Arun Srinivasan <arunr  2008-04-22 13:58:09 
Re: Deadlock due to table level exclusive lock
Serge Rielau <srielau@  2008-04-22 17:33:39 
Re: Deadlock due to table level exclusive lock
Knut Stolze <stolze@[E  2008-04-23 09:58:16 
Re: Deadlock due to table level exclusive lock
Ian <ianbjor@[EMAIL PR  2008-04-24 06:34:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 21:01:50 CDT 2008.