SAP Knowledge Base Article - Preview

3844401 - DB6: Node failover does not occur due to SQL1668N RC 12

Symptom

  • Primary server was not reachable due to infrastructure issue, due to which, the automatic failover did not happen.

  • Manual take over on secondary failed with following error:
    SQL1668N The operation failed because the operation is not supported with this environment. Reason code: "12".

  • OS log on secondary database

    Oct  9 13:18:20 2nd_node db2(rsc_Db2_db2abc_PAC)[3897009]: INFO: DB2 database db2abc(0)/ABC has HADR status PRIMARY/DISCONNECTED/DISCONNECTED and will be promoted
    Oct  9 13:18:20 2nd_node pacemaker-execd[64227]: notice: rsc_Db2_db2abc_PAC promote (call 66, PID 3897009) exited with status 1 (execution time 358ms)
    Oct  9 13:18:20 2nd_node pacemaker-controld[64230]: notice: Result of promote operation for rsc_Db2_db2abc_PAC on 2nd_node: error
    Oct  9 13:18:20 2nd_node pacemaker-controld[64230]: notice: Transition 3 aborted by operation rsc_Db2_db2abc_PAC_promote_0 'modify' on 2nd_node: Event failed
    Oct  9 13:18:20 2nd_node pacemaker-controld[64230]: notice: Transition 3 action 18 (rsc_Db2_db2abc_PAC_promote_0 on 2nd_node): expected 'ok' but got 'error'
    Oct  9 13:18:20 2nd_node pacemaker-controld[64230]: notice: Initiating notify operation rsc_Db2_db2abc_PAC_post_notify_promote_0 locally on 2nd_node
    Oct  9 13:18:20 2nd_node pacemaker-attrd[64228]: notice: Setting last-failure-rsc_Db2_db2abc_PAC#promote_0[2nd_node] in instance_attributes: (unset) -> 1791551900
    Oct  9 13:18:20 2nd_node pacemaker-controld[64230]: notice: Requesting local execution of notify operation for rsc_Db2_db2abc_PAC on 2nd_node
    Oct  9 13:18:20 2nd_node pacemaker-attrd[64228]: notice: Setting fail-count-rsc_Db2_db2abc_PAC#promote_0[2nd_node] in instance_attributes: (unset) -> 1
    Oct  9 13:18:20 2nd_node pacemaker-execd[64227]: notice: executing - rsc:rsc_Db2_db2abc_PAC action:notify call_id:67

     

    Oct  9 13:18:22 2nd_node db2(rsc_Db2_db2abc_PAC)[3897304]: ERROR: DB2 database db2abc(0)/ABC is not working
    Oct  9 13:18:22 2nd_node db2(rsc_Db2_db2abc_PAC)[3897304]: ERROR: DB2 message: SQL1668N  The operation failed because the operation is not supported with #012this environment. Reason code: "12".


  • db2diag.log on secondary database

    2026-10-09-13.18.23.101902+000 I931933E885           LEVEL: Severe
    PID     : 4189515              TID : 139755954104000 PROC : db2sysc 0
    INSTANCE: db2abc               NODE : 000            DB   : ABC
    APPHDL  : 0-3
    HOSTNAME: 2nd_node
    EDUID   : 178                  EDUNAME: db2agent (ABC) 0
    FUNCTION: DB2 UDB, catalog services, sqlrlInstallWlmDefaultEnv, probe:6098
    RETCODE : ZRC=0x8012006D=-2146303891=SQLR_CA_BUILT
              "SQLCA has already been built"
    DATA #1 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes
     sqlcaid : SQLCA     sqlcabc: 136   sqlcode: -1668   sqlerrml: 3
     sqlerrmc: 12 
     sqlerrp : SQL12013


Read more...

Environment

  • IBM Db2 on LUW version 11.5 or 12.1

  • HADR environment with Db2 integrated pacemaker

Product

SAP Customer Relationship Management all versions ; SAP NetWeaver 7.4 ; SAP NetWeaver 7.5

Keywords

HADR, takeover, SQL1668N, RC 12 , KBA , BC-DB-DB6 , DB2 Universal Database for Unix / NT , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.