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 Connection Issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-16-04, 15:34
stwdjj stwdjj is offline
Registered User
 
Join Date: Sep 2004
Posts: 1
Talking DB2 Connection Issue

DB2 Connection Issue

Platform: Windows Server 2003 Enterprise Edition
Version: DB2 version 8.1 Fix Pack 6
Server: Dell PowerEdge 2600


Problem Description:

When connecting to DB2 using the CLI/ODBC Settings via the Microsoft ODBC Data Source Administrator, the first connection takes 15 seconds. Subsequent connections take 1 second. After about 30 to 40 seconds have elapsed since the first connection, the next connection takes 15 seconds again, with subsequent connections taking 1 second. If we wait for 30 to 40 seconds between each connection attempt, each attempt takes 15 seconds. This behavior is consistent when the server is part of an existing Domain. When the server is removed from the domain and is used as a standalone computer, every single connection attempt takes 1 second. This behavior is also exhibited by other 3rd party software attempting to connect to DB2. We would like for all authentication to be handled locally on the server (without contacting the domain controller). The user account that we use for connections resides locally on the server.

================================================== =======
Question:
What Windows or DB2 settings can be changed so that connection attempts consistently take 1 second when the server is part of the existing domain?

================================================== =======
Reply With Quote
  #2 (permalink)  
Old 09-16-04, 17:35
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I would look at 2 things. First, when your DB2 system is started, issue the activate db command for the database (see the Command Reference). This keeps all memory allocations active even if no one is connected to the database. Otherwise, DB2 releases these resources when the last connection is disconnected, and then has to reallocate them for the first connection.

The other thing to consider is whether you should use the ODBC driver supplied by IBM, rather than Microsoft (although I am not sure if that is what you are doing). Many people have reported problems with non-IBM ODBC drivers for DB2.
__________________
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
  #3 (permalink)  
Old 09-16-04, 18:20
n_i n_i is online now
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Marcus:
the reasons you're mentioning are of course valid, however they would cause the same delays regardless of whether the server is in a Windows domain or not. I suspect the real reason is the time DB2 spends trying to authenticate users.

stwdjj:
Even if the users are local to the server they may belong to groups, which could be defined at the domain. I would first make sure that DB2_GRP_LOOKUP is set to LOCAL and probably make use of cached credentials.

To check current value of the registry variable, issue "db2set db2_grp_lookup"; set it to LOCAL,TOKENLOCAL if it's not so.

There's a detailed discussion regarding Windows authentication in "Administration Guide: Implementation"
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