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 > connect to database is too slow

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-24-07, 17:40
ramesh jampala ramesh jampala is offline
Registered User
 
Join Date: Mar 2007
Posts: 15
connect to database is too slow

Hi,

db2 UDB Workgroup server edition v8.1 fixpak 8a
db2 clients are at v8.1 fixpak 8
OS: Windows 2003

db2 connect to database command taking 20 to 30 seconds. It is the same case on the server or from db2 client also. There were no network delays. Sufficient connections are available at the server. This is not the first connection. CPU utilization on the server is normal. Connection pooling is also there. I tried from a db2 client of V8.1 fixpak 14, that also taking more time. Really i am not understanding what is causing the issue.

Any help or suggestions on this issue will be appreciated.

Ramesh
Reply With Quote
  #2 (permalink)  
Old 05-24-07, 18:25
sundaram sundaram is offline
Registered User
 
Join Date: Mar 2006
Posts: 104
Hi,

Try to connect from the server hosting db2. If that works quick then, there may be a network issue.

also if it is the first connection then it may take some time.

Regards

Hari
Reply With Quote
  #3 (permalink)  
Old 05-24-07, 20:54
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
This being Windows, I suspect that the Windows domain controller may be the culprit. DB2 requests authentication from Windows, as you know. Check if the regular user login using a domain id is also slow. There must be other ways to measure domain controller performance, with which your system administrators should be able to help you.
Reply With Quote
  #4 (permalink)  
Old 05-24-07, 23:18
ramesh jampala ramesh jampala is offline
Registered User
 
Join Date: Mar 2007
Posts: 15
Yes n i,
I was suspecting the same cause(Authentication in the domain). I got lot of support from you. I was experiencing the slow login issue with my domain id to log on to the server. Here i have a small doubt... the connections are not always slow. Rebooting of the server is solving the problem. After reboot , both database connections and logon to server are fast. This issue is repeating for one week. Can i still point the issue is with domain controller.
Also the application snapshot is showing connection elapsed time as less than a second but phisically i am able to see that manual connection(command window) taking 20 to 30 seconds. Do you have some idea.

Thanks a lot for your help in this issue.
Reply With Quote
  #5 (permalink)  
Old 05-24-07, 23:30
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Sorry, I'm not that good with Windows to give you any more information. Try Microsoft Technet, or buy a beer to your sysadmin and see if his tongue gets loose...
Reply With Quote
  #6 (permalink)  
Old 05-25-07, 05:06
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Something else to consider is the ACTIVATE DB command. If a database is not activated explicitly, the first connect will do that implicitly. During activation, you will have crash recovery kicking in (if necessary) and log files/buffer pools/... are allocated.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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