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 > Establish Connection with DB2 UDB Database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-25-11, 14:34
Gurdarshan Gurdarshan is offline
Registered User
 
Join Date: Aug 2011
Posts: 3
Establish Connection with DB2 UDB Database

Whenever I try to establish connection with DB2 UDB database in .Net 2.0, it is taking 1-2 mins to open the connection. I'm using DB2Connecton in C# for this purpose.

sConnectionString_DB2 = "Server=DB2ServerName:PORT;Database=DATABASENAME;U ID=USERNAME;PWD=PASSWORD;";

if (objDB2Con.State == ConnectionState.Closed)
{
objDB2Con.ConnectionString = sConnectionString_DB2;
objDB2Con.Open();
}
Reply With Quote
  #2 (permalink)  
Old 08-25-11, 15:35
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
could be database is getting activated or what is ur log file size if its huge then will take time to create primary set of logs, you can activated db before you connect thru ur application.

regds
Paul
Reply With Quote
  #3 (permalink)  
Old 08-25-11, 15:43
Gurdarshan Gurdarshan is offline
Registered User
 
Join Date: Aug 2011
Posts: 3
IF I try to connect DB2 with ODBC Connector, it is working fine. It connects within seconds.
Reply With Quote
  #4 (permalink)  
Old 08-26-11, 04:16
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
it might be - someone is already connected
check if db is active (see infocenter for details)
check that both try to connect on activated db and see the difference
pd/psi is good/helpfull for you..
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #5 (permalink)  
Old 08-26-11, 09:02
Gurdarshan Gurdarshan is offline
Registered User
 
Join Date: Aug 2011
Posts: 3
I'm the only person who is connecting this DB and it is very much active
Reply With Quote
Reply

Tags
db2 8

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