Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 13th, 2006, 09:35 AM
satish mullapudi
Guest
 
Posts: n/a
Default how to release appropriate locks using CLP

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.

  #2  
Old November 13th, 2006, 07:05 PM
Mark A
Guest
 
Posts: n/a
Default Re: how to release appropriate locks using CLP

"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


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles