By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,386 Members | 1,777 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,386 IT Pros & Developers. It's quick & easy.

how to release appropriate locks using CLP

P: n/a
Hi all,
I am using DB2 v 8.2 , Win XP OS. I have creaed a sample situation
which results in a deadlock created by appl1 & appl2.Now, I want to
release one of the locks (using CLP, not Control Center) so as to
release the deadlock.now how can I be sure that I am releasing the
appropriate lock held by one of the aplication (say appl2). Using
Control center -Application list -show lock chains we can say which
applications hold which lock & we kill the appropriate applications so
as to release the appropriate lock.now how to do this using CLP?

Any suggestions are highly appreciated.

Thanks in Advance.

Nov 13 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"satish mullapudi" <sa***************@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
Hi all,
I am using DB2 v 8.2 , Win XP OS. I have creaed a sample situation
which results in a deadlock created by appl1 & appl2.Now, I want to
release one of the locks (using CLP, not Control Center) so as to
release the deadlock.now how can I be sure that I am releasing the
appropriate lock held by one of the aplication (say appl2). Using
Control center -Application list -show lock chains we can say which
applications hold which lock & we kill the appropriate applications so
as to release the appropriate lock.now how to do this using CLP?

Any suggestions are highly appreciated.

Thanks in Advance.
You cannot "release the deadlock" because as soon as a deadlock is detected
by DB2, one of the applications is cancelled to let the other one continue.

Maybe you are talking about an infinite lock wait. By default, locktimeout
is set to infinity (-1) in the db config. If you change that to 30, all lock
waits will be resolved by DB2 in 30 seconds, etc.

db2 connect to database-name
db2 update db cfg using locktimeout 30
Nov 13 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.