473,416 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Why are 2 ports required for a HADR Pair?

Why are 2 ports required for a HADR Pair?

Environment: RH Linux AS3

UDB Express 8.2 with HADR Option

Folks -

Working with HADR and getting this setup to work right.

Cutting right to the chase: Why in DB2-land do we need
to have 2 ports on each machine? In this case why couldn't we just use
55005 or 55006? Why do we need both? In our knowledge
of tcp/ip, linux, etc. we see no reason other than somebody
at IBM coded it this way.

Maybe UDB is using the port number as a unique-identifier?

HADR database role = STANDBY
HADR local host name (HADR_LOCAL_HOST) =
emdb22.xyz.com
HADR local service name (HADR_LOCAL_SVC) = 55006
HADR remote host name (HADR_REMOTE_HOST) =
emdb21.xyz.com
HADR remote service name (HADR_REMOTE_SVC) = 55005
HADR instance name of remote server (HADR_REMOTE_INST) = db2admin
HADR timeout value (HADR_TIMEOUT) = 120
HADR log write synchronization mode (HADR_SYNCMODE) = SYNC

We understand that the wizard produces 2 ports; IBM support is
kinda vague on this and admit they're not sure why this is so.

We tested and suceeded with hadr ports defined both ways in a rather
crude test with no discernable concrete problems.

We're just curious and dislike mysteries, I guess.

Curious in Colorado

Bruce and Dave

Nov 12 '05 #1
3 5158
bw********@yahoo.com wrote:
Why are 2 ports required for a HADR Pair?

Environment: RH Linux AS3

UDB Express 8.2 with HADR Option

Folks -

Working with HADR and getting this setup to work right.

Cutting right to the chase: Why in DB2-land do we need
to have 2 ports on each machine? In this case why couldn't we just use
55005 or 55006? Why do we need both? In our knowledge
of tcp/ip, linux, etc. we see no reason other than somebody
at IBM coded it this way.

Maybe UDB is using the port number as a unique-identifier?

HADR database role = STANDBY
HADR local host name (HADR_LOCAL_HOST) =
emdb22.xyz.com
HADR local service name (HADR_LOCAL_SVC) = 55006
HADR remote host name (HADR_REMOTE_HOST) =
emdb21.xyz.com
HADR remote service name (HADR_REMOTE_SVC) = 55005
HADR instance name of remote server (HADR_REMOTE_INST) = db2admin
HADR timeout value (HADR_TIMEOUT) = 120
HADR log write synchronization mode (HADR_SYNCMODE) = SYNC

We understand that the wizard produces 2 ports; IBM support is
kinda vague on this and admit they're not sure why this is so.

We tested and suceeded with hadr ports defined both ways in a rather
crude test with no discernable concrete problems.

We're just curious and dislike mysteries, I guess.

Curious in Colorado

Bruce and Dave

Answer from backstage:
"HADR_LOCAL_SVC specifies the port on local machine and HADR_REMOTE_SVC
specifies the port on remote machine. Unless hadr primary and standby
are configured on the same machine, there is no reason why they can not
use the same value."

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #2
Dear Curious,

There is no need to configure two ports on each machine
specifically for HADR, which will use only one each.

There is a separate HADR config parmeter for the port
on each machine so that the user may choose different
port numbers (or service names) if they so desire. This
does not mean different names/numbers are requried on
the two systems. Note, however, that HADR does require
its port(s) to be distinct from other TCP/IP ports configured
for DB2, such as that used for a client connection.

Regards,
- Steve P.
IBM DB2 UDB for LUW Development
Portland, OR

Nov 12 '05 #3
Wow. I guess you can't be more clear than this!

The original issue arose when we imported data into the primary HADR
database with only a single HADR port defined to the standby HADR
server, we got a disconnect status

Anyway, when we switched our configuration to two HADR ports (ie 55004
and 55005) then we no longer got a disconnected status and all went
well.

There wasn't anything special about this particular database that we
were importing data into; in fact, it was smaller than 2 other
databases that worked fine on a single port. The disconnect status now
is a really huge mystery. We worked around this by importing our data
outside of HADR, defined the HADR pair, and then backed-up and restored
into the standby HADR database which worked well.

Thanks for all the input, guys. Much appreciated; hope to see you all
at IDUG.

Now we're REALLY curious in beautiful Colorado.

Bruce and Dave

Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: shindle | last post by:
Hello - I am in the process of testing out the new HADR feature of DB2 UDB V8.2 and I have some questions that I was hoping that someone could answer please. I have a HADR test set-up with...
2
by: bwmiller16 | last post by:
Folks - OpSys: RH Linux, AS3 DB: UDB 8.2.0 (FP7 Stinger) HW: 2 X-series We setup a HADR pair and they went into PEER state (after we backed-up the DB on primary and restored the DB on the...
1
by: bwmiller16 | last post by:
Folks - Linux RH3, UDB 8.2 FP9. I've got two tiny test boxes that I'm setting up to get a simple HADR configuration built. When I start the primary I get the famous SQL1768 RC=7 and also...
5
by: Brian | last post by:
We are having some problems administering HADR on a new installation. Specifically, we are seeing that the connection status of the pair is "disconnected". We have restarted, restored, and even...
6
by: m0002a | last post by:
I have sucessfully set up an HADR pair of databases. Everthing works fine for the primary and secondary HADR databases, and manual takeover works fine. When I try to set up the second pair of...
8
by: Challenge | last post by:
Hi, I got error, SQL1768N Unable to start HADR. Reason code = "7", when I tried to start hadr primary database. Here are the hadr configuration of my primary db: HADR database role ...
6
by: shorti | last post by:
I have two questions about HADR recovery. I am running db2 v8 fp12. 1) If the primary suddenly crashes would you always want to switch the standby to the primary by force...or would there be...
3
by: Pat | last post by:
Hi - We're trying to set up an HADR pair on two databases on instances with different names on separate servers. The databases were defined as follows: CREATE DATABASE database1 ON...
2
by: paul | last post by:
Hi, I have two databases in hadr, this morning i issued a "takeover ... by force" because the normal takeover didn't worked. Now i have two standard databases, and if i try to put the old primary...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.