Informix Error -11043: Driver's SQLAllocEnv failed.
Cause and resolution
Driver's SQLAllocEnv failed.
This Informix CLI error code is the same as SQLSTATE value IM004. The following Informix CLI functions can return this error code: SQLBrowseConnect(), SQLConnect(), and SQLDriverConnect(). The function called the driver version of SQLAllocEnv(), which returned an error. The CLI driver does not return this error.
The most common failure could be attributed to a memory allocation failure. Driver Manager's call to SQLAllocEnv could not succeed. See the error message returned by SQLError in the szErrorMsg to describe any driver specific SQLSTATE or error message if returned for other reasons.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11043 fires when the driver manager's call to the driver's SQLAllocEnv() returns an
error — per the official guidance, this is the same as SQLSTATE value IM004, returnable by
SQLBrowseConnect(), SQLConnect(), and SQLDriverConnect(); the CLI driver itself does
not return this error.
- A memory allocation failure in the driver's
SQLAllocEnv(), per the official guidance — the most common named cause.
Solutions / Resolution
- Call
SQLError()to retrieve the driver-specific error message, per the official guidance, for the detail behind the failure.
Examples
N/A
No specific triggering statement is documented beyond a driver-level SQLAllocEnv()
failure.
Diagnostic Checks
- Call
SQLError()immediately after this error, and check system memory availability.
Related Errors / Related Topics
- -11044 — "Driver's SQLAllocConnect failed." The same class of driver-manager-level allocation failure, one step later in connection setup.
The driver manager's call to the driver's SQLAllocEnv() failed, most often due to memory
pressure — call SQLError() for the driver-specific detail.