CLI0129E An attempt to allocate a handle failed because there are no more handles to allocate.Explanation: A CLI handle is a variable that refers to a data object allocated andmanaged by DB2 CLI. There are four typ...
显示全部CLI0129E An attempt to allocate a handle failed because there are no
more handles to allocate.
Explanation:
A CLI handle is a variable that refers to a data object allocated and
managed by DB2 CLI. There are four types of handles in CLI:
* Environment handle
* Connection handle
* Statement handle
* Descriptor handle
This message is returned when all handles that can be allocated have
been allocated, and an attempt is made to allocate a handle using one of
the following functions:
* SQLAllocEnv
* SQLAllocConnect
* SQLAllocStmt
* SQLAllocHandle
* SQLExecute
* SQLExecDirect
User response:
Free handles that are no longer being used in the application by calling
SQLFreeEnv, SQLFreeConnect, or SQLFreeStmt, or SQLFreeHandle.
To reduce the incidence of this error take one or both of the following
actions:
* Modify the application to release handles more frequently.
* Increase the number of statement handles that can be allocated by
increasing the CLIPkg CLI/ODBC configuration parameter using the BIND
command.
Related information
Handles in CLI
SQLFreeHandle function (CLI) - Free handle resources
BIND command
CLIPkg CLI/ODBC configuration keyword
收起