"satish mullapudi" <satishmullapudi84@gmail.comwrote in message
news:1163411700.544522.108260@i42g2000cwa.googlegr oups.com...
Quote:
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