Informix Error -11015: Unable to connect to data source.
Cause and resolution
Unable to connect to data source.
This Informix CLI error code is the same as SQLSTATE value 08001. The following functions can return this error code: SQLBrowseConnect(), SQLConnect(), and SQLDriverConnect().
The driver cannot establish a connection with the data source. Check that the database server name, user ID, and password are correctly specified and that the database server is available.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11015 fires when the driver can't establish a connection to the data source — per the
official guidance, this is the same as SQLSTATE value 08001, returnable by
SQLBrowseConnect(), SQLConnect(), and SQLDriverConnect().
- An incorrect database server name, user ID, or password, per the official guidance — the first named cause.
- The database server being unavailable, per the official guidance — the second named cause.
Solutions / Resolution
- Check that the database server name, user ID, and password are correctly specified, per the official guidance.
- Confirm the database server is available, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a failed connection attempt.
Diagnostic Checks
- Verify the server name, user ID, and password, and confirm the target server is up and reachable.
Related Errors / Related Topics
- -11016 — "Connection in use." A related connection-establishment error, about exclusive-use conflict rather than an outright inability to connect.
- -11017 — "Connection not open." A related connection-state error, about acting on a handle that was never successfully connected.
- -11018 — "Data source rejected establishment of connection." A related connection-establishment error, about an explicit rejection rather than a general inability to connect.
The driver couldn't establish a connection — check the server name, credentials, and server availability.