This is a discussion on error try to use db2jcc do binding within the DB2 forums, part of the Database Server Software category; --> Hi, we are using db2 ESE v8.2.3 on windows, i try to use command window to do binding D:\Program ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, we are using db2 ESE v8.2.3 on windows, i try to use command window to do binding D:\Program Files\IBM\SQLLIB\bnd>java -cp "D:\program files\ibm\sqllib \java\db2jcc.jar" com.ibm.db2.jcc.DB2Binder -url xxx -user xxx - password xxx -s xxxx DB2Binder stopped: Failure to create connection for binding SQL code: -99999 SQL state: null Message: The version of the IBM Universal JDBC driver in use is not licensed for connectivity to QDB2/NT databases. To connect to this DB2 server, please obtain a licensed copy of the IBM DB2 Unive rsal Driver for JDBC and SQLJ. An appropriate license file db2jcc_license_*.jar for this target platform must be installed to the application classpath. Connectivity to QDB2/NT databases is enabled by any of the following license files: { db2jcc_license_cu.jar, db2jcc_license_cisuz.jar } but by checking classpath, i do have those jars .;D:\PROGRA~1\IBM \SQLLIB\java\db2java.zip;D:\PROGRA~1\IBM\SQLLIB\ja va\db2jcc.jar;D: \PROGRA~1\IBM\SQLLIB\java\sqlj.zip;D:\PROGRA~1\IBM \SQLLIB\java \db2jcc_license_cisuz.jar;D:\PROGRA~1\IBM\SQLLIB\j ava \db2jcc_license_cu.jar;D:\PROGRA~1\IBM\SQLLIB\bin; D:\PROGRA~1\IBM \SQLLIB\java\common.jar also we are using licensing copy of db2, the solution i am doing is use original db2jcc from long time ago. Could somebody help me out what is the best way? thanks |
| ||||
| You need to add the db2 license jar (db2jcc_license_cu.jar) to your classpath. This would do the trick: java -cp "D:\program files\ibm\sqllib\java\db2jcc.jar;D:\program files \ibm\sqllib\java\db2jcc_license_cu.jar" com.ibm.db2.jcc.DB2Binder -url xxx -user xxx - password xxx -s xxxx |