IBM Support

How to resolve SQL1768N Unable to start HADR. Reason code = "7". on db2 connect to <database_name> on Primary when Standby is offline

Troubleshooting


Problem

Connect or activate database on Primary server gets SQL1768N Reason code = "7"

Symptom

Standby database is offline. Primary database is offline also. There is a need to start up via connect or activate database on the Primary. Connect or activate database commands error with SQL1768N Reason code = "7".
This is due to the fact that on database activation DB2 starts the HADR edus and these fail to connect to the Standby.

Note in the db2diag.log entries below, the function "sqledint, probe:230" fails with
FFFFF918 which is -1768 (use db2diag -rc FFFFF918 to check for this):

A)
$ db2 connect to hadrsamp
SQL1768N Unable to start HADR. Reason code = "7".

B)
$ db2 activate database hadrsamp
SQL1768N Unable to start HADR. Reason code = "7".


2011-09-09-17.35.38.136208+060 I800187A552 LEVEL: Error
PID : 14865 TID : 13 PROC : db2sysc 0
INSTANCE: db2inst2 NODE : 000 DB : HADRSAMP
APPHDL : 0-9 APPID: *LOCAL.db2inst2.110909163335
AUTHID : DB2INST2
EDUID : 13 EDUNAME: db2agent (HADRSAMP) 0
FUNCTION: DB2 UDB, High Availability Disaster Recovery, hdrEduStartup, probe:21300
MESSAGE : HADR EDU sqlcode:
DATA #1 : Hexdump, 4 bytes
0x000000020287715C : FFFF F918 ....

2011-09-09-17.35.38.136366+060 I800740A500 LEVEL: Severe
PID : 14865 TID : 13 PROC : db2sysc 0
INSTANCE: db2inst2 NODE : 000 DB : HADRSAMP
APPHDL : 0-9 APPID: *LOCAL.db2inst2.110909163335
AUTHID : DB2INST2
EDUID : 13 EDUNAME: db2agent (HADRSAMP) 0
FUNCTION: DB2 UDB, base sys utilities, sqledint, probe:230
DATA #1 : Hexdump, 4 bytes
0x000000020287715C : FFFF F918 ....

2011-09-09-17.35.38.136527+060 I801241A522 LEVEL: Severe
PID : 14865 TID : 13 PROC : db2sysc 0
INSTANCE: db2inst2 NODE : 000 DB : HADRSAMP
APPHDL : 0-9 APPID: *LOCAL.db2inst2.110909163335
AUTHID : DB2INST2
EDUID : 13 EDUNAME: db2agent (HADRSAMP) 0
FUNCTION: DB2 UDB, base sys utilities, sqeLocalDatabase::FirstConnect, probe:125
DATA #1 : Hexdump, 4 bytes
0x000000020287715C : FFFF F918 ....

2011-09-09-17.35.38.231654+060 E801764A470 LEVEL: Event
PID : 14865 TID : 13 PROC : db2sysc 0
INSTANCE: db2inst2 NODE : 000 DB : HADRSAMP
APPHDL : 0-9 APPID: *LOCAL.db2inst2.110909163335
AUTHID : DB2INST2
EDUID : 13 EDUNAME: db2agent (idle) 0
FUNCTION: DB2 UDB, base sys utilities, sqeLocalDatabase::TermDbConnect, probe:2000
STOP : DATABASE: HADRSAMP : DEACTIVATED: NO

[{"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"High Availability - HADR","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.8;9.7;9.5;10.1;10.5","Edition":"Advanced Enterprise Server;Advanced Workgroup Server;Enterprise Server;Workgroup Server","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
30 April 2025

UID

swg21515222