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 > db2 connect reset/terminate slow

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-08-08, 15:49
chinatrain99 chinatrain99 is offline
Registered User
 
Join Date: Sep 2003
Posts: 73
db2 connect reset/terminate slow

I just set up a v9 db2 cluster on windows. From the command window, I can do a db2 connect to a database rather quickly. The db2 terminate or db2 connect reset command takes 30+ seconds to run. Same results occure whether local or remote and whether I use a domain or local db2 account. Commits and rollbacks come back quick. It's the reset and terminate commands that take a while. The same problem is there with the GUI. I can drill down into a table, view, the row, but when I do a "close", it takes 30+ seconds for the screen to come back. I'm assuming that the GUI "close" is doing the same sort of thing that's giving me the problem as the terminate and reset command. Any ideas would be appreciated. Is there some parameter new to v9??? Thanks!
Reply With Quote
  #2 (permalink)  
Old 01-08-08, 16:31
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
How many users are connected when you issue the terminate or connect reset?

Andy
Reply With Quote
  #3 (permalink)  
Old 01-08-08, 16:47
chinatrain99 chinatrain99 is offline
Registered User
 
Join Date: Sep 2003
Posts: 73
none. This box was just set up. I installed v9 db2 fp4 and ran the clustering commands.
Reply With Quote
  #4 (permalink)  
Old 01-08-08, 16:53
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
That is what I thought. You are waiting for the database to shut down. Try ACTIVATE DB or have another connection and try again.

Andy
Reply With Quote
  #5 (permalink)  
Old 01-08-08, 16:57
chinatrain99 chinatrain99 is offline
Registered User
 
Join Date: Sep 2003
Posts: 73
Thanks. I see what you mean...
If a database was started by a CONNECT TO (or an implicit connect) and subsequently an ACTIVATE DATABASE is issued for that same database, then DEACTIVATE DATABASE must be used to shut down that database. If ACTIVATE DATABASE was not used to start the database, the database will shut down when the last application disconnects.
Reply With Quote
  #6 (permalink)  
Old 01-08-08, 17:00
chinatrain99 chinatrain99 is offline
Registered User
 
Join Date: Sep 2003
Posts: 73
Is this a change with v9 (the database will shut down when the last application disconnects) or is it just my luck?
Reply With Quote
  #7 (permalink)  
Old 01-09-08, 07:53
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Nope, This behavior has been since at least V6.
Reply With Quote
  #8 (permalink)  
Old 12-16-08, 16:52
swarmneuser swarmneuser is offline
Registered User
 
Join Date: Dec 2008
Posts: 1
WOW, thx a lot. This really resolves my problem. Just start the database and db2 fast again.(I don't know why it accepts the connection from web application when I've already shutdown the database ).
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