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 > HADR and Automatic client reroute

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-12-10, 16:16
gvphubli gvphubli is offline
Registered User
 
Join Date: Sep 2003
Location: United States
Posts: 53
HADR and Automatic client reroute

I followed the instructions given in this following IBM documenation to enable "automatic client reroute" to a database which is HADR enable.

Configuring automatic client reroute and High Availability Disaster Recovery (HADR) - IBM DB2 9.7 for Linux, UNIX, and Windows

My HADR is working fine, however when secondary database takesover as Primary, and if I try to connect, my connection is not not getting rerouted. I see following error

SQL1776N The command cannot be issued on an HADR standby database. Reason
code = "1".

Any suggestions would be of great help.

Thanks,
- G's
Reply With Quote
  #2 (permalink)  
Old 07-14-10, 05:10
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
if alternate server is setup correctly - db2 clients will get this info after first connect
db2 list db directory
if using java type4 connection, you have to specify alternate server/port as options
__________________
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
  #3 (permalink)  
Old 07-16-10, 10:55
gvphubli gvphubli is offline
Registered User
 
Join Date: Sep 2003
Location: United States
Posts: 53
Thanks Guy - it worked actually I while defining ALTERNATE SERVER I specified wrong port number and due to which it was connecting to some other instance which was not running
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