Informix Error -1813: Only the current connection can be made dormant.
Cause and resolution
Only the current connection can be made dormant.
You used the SET CONNECTION DORMANT statement incorrectly. You attempted to put a connection that was already dormant into the dormant state. Or you attempted to put a connection that is in use by another thread in a dormant state.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1813 fires when SET CONNECTION ... DORMANT is misused — per the official guidance, this
happens either when trying to make an already-dormant connection dormant again, or when trying
to make a connection dormant that another thread is actively using.
- A connection that's already dormant targeted by another
SET CONNECTION ... DORMANT, per the official guidance — the first named cause. - A connection currently in active use by another thread targeted for dormant state, per the official guidance — the second named cause.
Solutions / Resolution
- Only target the current connection with
SET CONNECTION ... DORMANT, per the official guidance's own title — check the connection isn't already dormant or in use elsewhere before attempting it.
Examples
N/A
No specific triggering statement is documented — check the target connection's current state (dormant or actively in use by another thread) before attempting to make it dormant.
Diagnostic Checks
- Check whether the target connection is already dormant, or is currently in use by another
thread, before attempting
SET CONNECTION ... DORMANT.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -1813 in this set yet.
SET CONNECTION ... DORMANT only applies to the current, active connection — check the target
connection's state first.