Informix Error -26200: The RETAINUPDATELOCKS session environment cannot be set on secondary server in a high-availability cluster.
Cause and resolution
The RETAINUPDATELOCKS session environment cannot be set on secondary server in a high-availability cluster.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26200 fires when RETAINUPDATELOCKS is set while connected to a secondary server in an
HA cluster — per the official guidance.
- The session is connected to a secondary server (HDR/RSS/SD), per the official
guidance — the direct, only cause;
RETAINUPDATELOCKSrequires the primary.
Solutions / Resolution
- Set
RETAINUPDATELOCKSonly while connected to the primary server, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond setting RETAINUPDATELOCKS on a
secondary.
Diagnostic Checks
- Check whether the connected server is a secondary in an HA cluster, and connect to
the primary before setting
RETAINUPDATELOCKS.
Related Errors / Related Topics
- -26199 — "The RETAINUPDATELOCKS session environment cannot be set in a nonlogging
database." A related
RETAINUPDATELOCKSrestriction, on non-logging databases rather than HA secondary servers.
RETAINUPDATELOCKS was set on an HA secondary server — connect to the primary instead.