JDBC Type 4 driver
Important: As of DB2 UDB v8.1.2 the Universal JDBC driver requires a
license JAR file to be in the CLASSPATH along with the db2jcc.jar file.
Here are the required license JAR files:
For Cloudscape™ Network Server V5.1: db2jcc_license_c.jar
For DB2 UDB V8 for Linux, UNIX, and Windows servers:
For DB2 UDB for iSeries® and z/OS servers (provided with DB2 Connect and
DB2 Enterprise Server Edition): db2jcc_license_cisuz.jar
Gerald Khin wrote:
> I've installed DB2 8.1 UDB WSE with FixPack 2. There I found the Type
> 4 JDBC driver db2jcc.jar and two additional jar files
> db2jcc_license_cu.jar and db2jcc_license_cisuz.jar.
> If I use the db2jcc.jar in my client application without adding at
> least one of db2jcc_license_cu.jar or db2jcc_license_cisuz.jar
> additionaly to the classpath of my application, then I encounter a
> SQLException with error code -99999 (SQLState is null) and the
> following message text:
> "The version of the IBM Universal JDBC driver in use
> is not licensed for connectivity to DB2 for Unix/Windows
> To connect to this DB2 server, please obtain a licensed
> copy of the IBM DB2 Universal Driver for JDBC and SQLJ."
> Is this the correct behavior? I couldn't find any doentation about
> these jar files. Why do I need these files?