473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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.

Nov 13 '06 #1
1 2976
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: db2group88 | last post by:
hi, we are using db2 udb v8.1 on windows with type 4 db2jcc driver, our application use jdbc to create statement and execute query, i would like to know when the application connect to DB2 blow up...
1
by: Carlos Lozano | last post by:
Hi, I have a multithreading application that reads and writes to com ports. The debug version works with no problems, but the release version don't. They are the same code, the difference is...
3
by: John C Kirk | last post by:
I've come across an odd situation, where doing a floating point division produces different results for the same numbers. Basically, there are 4 ways to run this application: A) Debug build,...
1
by: Jürgen Kahrs | last post by:
Hello, The beta alpha release (xgawk-3.1.5-beta.20060401) of the xmlgawk project is now available at SourceForge. http://sourceforge.net/projects/xmlgawk/...
4
by: rawheiser | last post by:
Existing Stored Procedure, has been running well on SQL since 7.0. (but needed some tweaking to migrate to 2000). Now all of a sudden after installing SP4 of SQL 2000, this process slows down,...
0
by: satish mullapudi | last post by:
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...
1
by: janki | last post by:
When through one webservice we are doing "update" operation and before doint "commit" , that instance crashes..now if i want to create some recovery service..i need to release locks ..but when i try...
2
by: Piotr Sobolewski | last post by:
Hello, I have such program: import time import thread def f():     global lock     while True:         lock.acquire()         print thread.get_ident()
6
by: Delaney, Timothy (Tim) | last post by:
Piotr Sobolewski wrote: 1. You should use the threading module. 2. No need for the "global lock" statement here - you're not rebinding the name "lock". 3. These aren't daemon threads, so...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.