Closed markddrake closed 1 year ago
@markddrake The error SQL5005C is returned by the Db2 server and not the client. It report issues about database manager configuration file. Please contact the IBM Support with db2 traces to look into the issue. Thanks.
Understood, however please note that I have only seen this error when using the connection pool. If I get a new connection every time I do not see the issue. BTW is there any way to dispose of a connection pool connection, so that it is closed rather than returned to the pool ?
@markddrake To avoid connection going back to pool when closed, you can call conn.realClose()
or conn.realCloseSync()
APIs.
We see this error on server. ibm_db is just returning the error message that it received from server. Hence, closing this issue. Thanks.
Target Db2 Server Version: 11.5.7 (Official IBM DB2 Docker container) node.js Version: 17.7.2 ibm_db version: 2.8.1
I am getting intermittent SQL5005C errors when using a connection pool to manage database connectivity.
The following error is reported:
If I simply catch the error and retry the operation it works. The code I am using to obtain the connection is shown below:
the DB2Error classes lostConnection() method that returns true if the sqlcode is -5005.
Any idea why this occuring and how to stop it...