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 > Unable to connect to the database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-19-09, 17:19
dgunas dgunas is offline
Registered User
 
Join Date: Dec 2008
Location: Chennai
Posts: 110
Unable to connect to the database

Can you help me on this issue please?

DB2 Ver 8.2 FP 12
Windows 2003.

I have switched the HADR role to the Standyby server as Primary successfully. But i can not connect to the database.
I issued the following command and getting the error as USER ID/PASSWORD Invalid or Resticted.

db2 connec to sample user username using password.

I have checked the user id on domain and it has been setup as local account and it is not locked. Even I can logon to the windows using the same account.

I have stopped and restarted DB2. But still getting same message.

Please post your comments.
Thanks, gunas.
__________________
Reply With Quote
  #2 (permalink)  
Old 06-19-09, 02:21
kiranchinta kiranchinta is offline
Registered User
 
Join Date: Mar 2008
Posts: 8
The sentence is a little confusing. Did you say you did a graceful takeover on the standby and the standby because primary. When you do db2pd -db $DBNAME -hadr it says 'Primary' as the role, and now if you issue a connect you are not able to connect.

What privileges does the user id have ?
What is the DB state, is it active ?
Reply With Quote
  #3 (permalink)  
Old 06-20-09, 03:53
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
have you defined the alternate server - you should always connect what is the regular primary and define on both machines an alternate
client has todo 1 connect to receive this alternate info
list db directory show detail
__________________
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
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