DB2 Version 10.1 for Linux, UNIX, and Windows

DB2 JDBC Type 2 Driver is discontinued

The DB2® JDBC Type 2 Driver for Linux, UNIX, and Windows operating systems is discontinued. You should use the IBM® Data Server Driver for JDBC and SQLJ instead.

Details

The DB2 JDBC Type 2 Driver for Linux, UNIX, and Windows which was packaged in the db2java.zip file was deprecated in Version 8.2. This driver allowed Java™ applications to make calls to DB2 servers through JDBC. The DB2 JDBC Type 2 Driver used the DB2 CLI interface to communicate with DB2 data servers. The Java applications that used this driver had to run on a DB2 client. This driver supported all of the methods that are described in the JDBC 1.2 and 2.0 specifications.

The IBM Data Server Driver for JDBC and SQLJ allows Java applications to make JDBC type 2 and JDBC type 4 connections using a single driver instance. The type 2 driver behavior of the IBM Data Server Driver for JDBC and SQLJ is referred to as IBM Data Server Driver for JDBC and SQLJ type 2 connectivity. This driver supports all of the methods that are described in the JDBC 3.0 and 4.0 specifications.

Note: The db2java.zip file is seen in the product installation but its use is discontinued.

Resolution

Use the IBM Data Server Driver for JDBC and SQLJ instead of the DB2 JDBC Type 2 Driver. Refer to the task Upgrading database applications and subtask Upgrading Java applications that use DB2 JDBC Type 2 driver.

If you use the DB2 JDBC Type 2 Driver to compile your Java applications or routines, you will receive an error as the driver cannot be found.