Informix Error -934
-934 Connection to remote site no longer valid.
This statement uses data from another computer system, but the connection has been lost. Roll back the transaction, and try again after you reestablish the connection.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-934 fires when a statement uses data from another computer system, but the connection to it has since been lost — per the official guidance, this is a mid-operation connection loss, distinct from -930's initial-connection-attempt failure.
- A network interruption partway through a distributed operation, per the official guidance — the connection was valid when the operation started but dropped before it completed.
- The remote site's database server stopping or restarting while a connection to it was still in use locally.
Solutions / Resolution
- Roll back the transaction, per the official guidance — the documented, required first step, since the operation can't be assumed to have completed successfully.
- Reestablish the connection, per the official guidance, before retrying.
- Try again after the connection is reestablished, per the official guidance.
Examples
Rollback, reconnect, retry
ROLLBACK WORK;
-- reestablish the connection to the remote site
DATABASE sales@remote_server;
-- retry the original operation
Diagnostic Checks
- Confirm the transaction was rolled back before attempting any further work.
- Check the remote site's current reachability before retrying.
Related Errors / Related Topics
- -930 — "Cannot connect to database server servername." A related connectivity error, at the initial connection-attempt stage rather than a connection lost mid-operation.
- -912 — "Network error - Could not write to database server." A related network-failure error, at the individual read/write level rather than the connection as a whole being deemed invalid.
- -913 — "Network error - Could not read from database server." Same family, read-side.
Roll back first, reestablish the connection, then retry — don't assume the operation completed before the connection dropped.