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.
How can we see the alernate server name/IP set during HADR configuration,
using "db2 update alternate server for database <db_name> using hostname <standby public NIC IP> port <prt no>" command?
Database alias = BWPRCSDB
Database name = BWPRCSDB
Local database directory = /home/db2inst1
Database release level = c.00
Comment = BatchWebsphereProcessServer
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname = pdb201.cbss.inet
Alternate server port number = 50001
(0)[db2inst1@plx00006 work]$ db2 list db directory
__________________
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
not on server
the client receives this alternate info after first connect
if type4 connection - this alternate info has to be specified as options on the connection string
__________________
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
In the last question, I haven't asked about the specifically about alternate server ip. My question was, do we need to configure any thing(IP, Port num) on DB2 for the client to communicate to the database?
__________________
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
In the last question, I haven't asked about the specifically about alternate server ip. My question was, do we need to configure any thing(IP, Port num) on DB2 for the client to communicate to the database?
If no, how does DB2 listen to the port and IP??
The port number is specified in the database manager (instance) configuration. db2 get dbm cfg. There may be a service name instead of port number, in which case you look in /etc/services to resolve (or Windows equivalent).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Does Anyone know is there a way to get that Alternate server and port from within JDBC 4 connection?
Quote:
Originally Posted by przytula_guy
Database 20 entry:
Database alias = BWPRCSDB
Database name = BWPRCSDB
Local database directory = /home/db2inst1
Database release level = c.00
Comment = BatchWebsphereProcessServer
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname = pdb201.cbss.inet
Alternate server port number = 50001
(0)[db2inst1@plx00006 work]$ db2 list db directory