IBM JDBC Driver CLI0647E Error allocating DB2 environment handle, rc=db2jdbc

Technote (FAQ)
Problem
Use the IBM DB2 JDBC Application driver "COM.ibm.db2.jdbc.app.DB2Driver" gets the error message:

IBM JDBC Driver CLI0647E Error allocating DB2 environment handle, rc=db2jdbc
Solution
The error CLI0647E is not documented in the DB2's documentations.

Most likely the cause of the CLI0647E is the process which starts WebSphere Application Server does not have the environment variable DB2INSTANCE set. This DB2INSTANCE environment variable should be set to the DB2 instance that WAS connects to.












Document Information

Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server
Operating system(s): AIX, HPUX, Solaris
Software version: 3.0.2, 3.0.2.1, 3.0.2.2, 3.5, 3.5.1, 3.5.2
Software edition: Standard, Advanced
Reference #: 1044529
IBM Group: Software Group
Modified date: 2002-11-18