If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB Lock ...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-06-08, 10:17
Kota Kota is offline
Registered User
 
Join Date: Jun 2003
Posts: 113
DB Lock ...

I have noticed that sometimes an application holds a lock and doesn't release it. When a snapshot is taken, it shows the application idle time as 20 mins. Once this app. was forced off, timeouts went away. Is there a reason why the application is holding lock even when in idle state (not releasing the lock)?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 02-06-08, 10:43
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I would believe that the application is not issuing a commit or rollback.

Andy
Reply With Quote
  #3 (permalink)  
Old 02-06-08, 12:12
Kota Kota is offline
Registered User
 
Join Date: Jun 2003
Posts: 113
Is it possible that a cursor is not being closed? I'm not a developer. Just trying to get an idea. Thanks.
Reply With Quote
  #4 (permalink)  
Old 02-06-08, 12:37
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
That might be possible, but the only way I know to ensure that the locks are released it with a commit or rollback.

Andy
Reply With Quote
  #5 (permalink)  
Old 02-06-08, 19:32
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Sometimes an application can go into a loop, or hang, and the connection pooling software thinks it is still running, and keeps it connected without a TCP/IP timeout.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #6 (permalink)  
Old 02-07-08, 22:29
Kota Kota is offline
Registered User
 
Join Date: Jun 2003
Posts: 113
Thanks Guys
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On