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 > Clean Oldest Transactions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-09-04, 06:03
sivram_k sivram_k is offline
Registered User
 
Join Date: Aug 2003
Posts: 8
Clean Oldest Transactions

Hello,

In my database many connections are opened by application, and they are still remaining eventhough the application developers shutdown their machines. They are not properly closing their application before shutdown. So those connections remain in the database and sometimes it locks the tables also.We couldn't findout from which machine, the table was locked and how to force(kill) only that application?
Is there anyway to clean the oldest transaction which are not active for say 15 minutes?

Regards,
Siva
Reply With Quote
  #2 (permalink)  
Old 06-09-04, 08:54
cgprakash cgprakash is offline
Registered User
 
Join Date: Feb 2002
Posts: 96
You can make use of db2 governor.

Regards
Prakash
Reply With Quote
  #3 (permalink)  
Old 06-09-04, 15:45
Tank Tank is offline
Registered User
 
Join Date: Feb 2004
Location: Copenhagen
Posts: 220
Arrow Force

Hello I don't know which version you're on
but if yoy're on 8.1.0 or later you can:

1. use: "db2 get snapshot for locks on <mydb>"

2. see which applications are holding the locks you want released

3. use: "force application <applicationid> to get rid of the agents

In general dissuade your developers from using persistent connections.

HTH
__________________
Kristian K. Hansen
Project Supervisor
National Board of Health
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