Informix Error -1803: Connection does not exist.
Cause and resolution
Connection does not exist.
The connection name in a SET CONNECTION or DISCONNECT statement does not refer to an established connection. Check your program to see that the connection was made and, if so, that it was not disconnected. Also, check the spelling of the connection name in the statement that is failing.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1803 fires when a SET CONNECTION or DISCONNECT statement's connection name doesn't refer
to an established connection — per the official guidance, common causes include the connection
never having been made, having already been disconnected, or a spelling mistake in the
connection name.
- The connection never actually established, per the official guidance's first named check.
- The connection already disconnected, per the official guidance's second named check.
- A misspelled connection name in the failing statement, per the official guidance's third named check.
Solutions / Resolution
- Check your program to see that the connection was made, per the official guidance.
- Check that it was not already disconnected, per the official guidance.
- Check the spelling of the connection name in the failing statement, per the official guidance.
Examples
A misspelled connection name
CONNECT TO 'stores7@server_a' AS conn1;
SET CONNECTION conn_1;
-- -1803: conn1 (no underscore), not conn_1, was the established name
Corrected
SET CONNECTION conn1;
Diagnostic Checks
- Trace the program's connection lifecycle for the named connection, and check its exact spelling against the failing statement.
Related Errors / Related Topics
- -1802 — "Connection name in use." The mirror-image restriction:
CONNECT TOreusing an already-established name, rather thanSET CONNECTION/DISCONNECTreferencing one that isn't established.
The referenced connection isn't established — check it was made, wasn't already disconnected, and is spelled correctly.