473,499 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HADR incompatibility between the two databases

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 databases for HADR in the same
instance, I get the following error message (I already sucessfully
started the standby database):

$ db2 start hadr on db tdsapp as primary
SQL1768N Unable to start HADR. Reason code = "99".

In the Messages and Codes manual, Reason code 99 says:

"The primary and standby databases are able to connect via TCP/IP, but
the connection had to be closed due to an incompatibility between the
two databases. Refer to the Administration Notification log for details
of the incompatibility."

I cannot find the "Administration Notification log" but here is the
contents of the db2diag.log:

2005-11-02-17.18.52.343701+000 I1041212G318 LEVEL: Warning
PID : 13542 TID : 4063074816 PROC : db2hadrp
(TDSAPP) 0
INSTANCE: db2inst8 NODE : 000 DB : TDSAPP
FUNCTION: DB2 UDB, High Availability Disaster Recovery, hdrEduP,
probe:20301
MESSAGE : Info: Primary Started.

2005-11-02-17.18.52.343997+000 E1041531G432 LEVEL: Error (OS)
PID : 13542 TID : 4063074816 PROC : db2hadrp
(TDSAPP) 0
INSTANCE: db2inst8 NODE : 000 DB : TDSAPP
FUNCTION: DB2 UDB, oper system services, sqloPdbBindSocket, probe:20
MESSAGE : ZRC=0x810F001B=-2129723365=SQLO_ADDR_IN_USE "Address already
in use"
CALLED : OS, -, bind OSERR: EADDRINUSE
(98)

Is there a problem in setting up 2 HADR databases in the same instance?
Any other things I should check for?

Nov 12 '05 #1
6 5228
Does each database on a server that is configured for HADR need its own
hadr_local_svc port in /etc/services? Or can all databases on the same
server share the port?

I am not talking about the port for the instance, but for the HADR
service (hadr_local_svc).

Nov 12 '05 #2
I tried setting up separate ports for the hadr_local_svc for each
database on the same machine that participates in HADR, and it worked.

So each DB2 database that uses HADR on a given physical server needs
its own hadr_local_svc port in /etc/services.

Nov 12 '05 #3
Yes, that's correct. Unfortunately, that information is not yet in the
main HADR documentation topics.
A documentation update exists, with the following statement:

Value restrictions for the HADR local host and local service
parameters

When specifying values for the high availability disaster recovery
(HADR) local host and local service parameters
(HADR_LOCAL_SVC and HADR_REMOTE_SVC) while preparing
an update database configuration command, the values must be
ports that are not in use for any other service. If the parameters
are being configured using the UNIX or Linux command line,
the values should be also set in the /etc/services file.

(ref:
http://publib.boulder.ibm.com/infoce...e/r0012049.htm)

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

Nov 12 '05 #4
"Steve Pearson (news only)" <st*******@my-deja.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Yes, that's correct. Unfortunately, that information is not yet in the
main HADR documentation topics.
A documentation update exists, with the following statement:

Value restrictions for the HADR local host and local service
parameters

When specifying values for the high availability disaster recovery
(HADR) local host and local service parameters
(HADR_LOCAL_SVC and HADR_REMOTE_SVC) while preparing
an update database configuration command, the values must be
ports that are not in use for any other service. If the parameters
are being configured using the UNIX or Linux command line,
the values should be also set in the /etc/services file.

(ref:
http://publib.boulder.ibm.com/infoce...e/r0012049.htm)

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


The updated doc still does not seem quite clear to me. I think you need to
explicitly state that each database must have its own port for
HADR_LOCAL_SVC. So if you have two databases defined for HADR on a given
server, they each must have their own port.
Nov 12 '05 #5
Here's a sneak peek at the text used in the next major docs revision,
i.e., where the document update referred to above will be taken up into
the main docs topics.

When you specify values for the high availability disaster recovery
(HADR) local service and remote service parameters
(HADR_LOCAL_SVC and HADR_REMOTE_SVC) while preparing
an update database configuration command, the values you specify
must be ports that are not in use for any other service, including
other DB2 components or other HADR databases. In particular,
you cannot set either parameter value to the TCP/IP port used by
the server to await communications from remote clients (the
SVCENAME database manager configuration parameter) or the next
port (SVCENAME + 1).

Let me know if this is still unclear, in which case I will open a
follow-up defect report to ensure that it is revisited by the
information development folks.

Thanks.

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

Nov 12 '05 #6
"Steve Pearson (news only)" <st*******@my-deja.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Here's a sneak peek at the text used in the next major docs revision,
i.e., where the document update referred to above will be taken up into
the main docs topics.

When you specify values for the high availability disaster recovery
(HADR) local service and remote service parameters
(HADR_LOCAL_SVC and HADR_REMOTE_SVC) while preparing
an update database configuration command, the values you specify
must be ports that are not in use for any other service, including
other DB2 components or other HADR databases. In particular,
you cannot set either parameter value to the TCP/IP port used by
the server to await communications from remote clients (the
SVCENAME database manager configuration parameter) or the next
port (SVCENAME + 1).

Let me know if this is still unclear, in which case I will open a
follow-up defect report to ensure that it is revisited by the
information development folks.

Thanks.

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


I think the reference to "or other HADR databases" is more clearly spelled
out and is satisfactory.
Nov 12 '05 #7

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

Similar topics

1
3711
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...
1
4009
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...
7
10521
by: Mark A | last post by:
If server 01 running HADR in the primary role crashes, and the DBA does a HADR takeover by force on the 02 server to switch roles, then the 02 server is now the primary. What happens when the...
16
21686
by: gumby | last post by:
I'm having trouble getting HADR to work with the sample databases on two HS20 xSeries blades, Red Hat ES4 up3, DB2 8.2.4, getting the following error. SQL1768N Unable to start HADR. Reason code...
6
4062
by: RayRay | last post by:
I was hoping I might be able to get an answer regarding DB2 and HADR. Let me preface this by saying that I know very little about networking and I'm not familiar with the HADR product or...
3
2840
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...
0
2028
by: vbace2 | last post by:
Using DB2 v9.1 fixpak 2 (WSE with HADR feature) on Windows 2003 Servers We are trying to set up HADR for two production databases. The two primary databases reside on two different servers. We...
2
5116
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
2411
by: deshaipet | last post by:
Hi - We have primary and standby databases on different servers. Here is my /etc/service entry for HADR pair : On Primary : "vi /etc/services
0
7007
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7171
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
7220
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...
1
6893
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
5468
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3098
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
295
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.