DB2 7.2 is the database that has the most connection issues. JDBC drivers for database versions are not compatible, neither are they compatible across fix packs.

Updating your DB2 JDBC driver to the version which you are using is always a good idea. The DB2 Server installation provides JDBC drivers for the version and fix pack in use. You may copy the provided JDBC driver and overwrite the driver provided by ADS. You can copy the /sqllib/java/db2java.zip that comes with your installation, rename its file extension to .jar, and overwrite the /ADS_INSTALLATION/lib/drivers/db2java.jar file.

The DB2 7.2 JDBC driver does not connect directly to the DB2 Server, but to a proxy server that is installed with the DB2 Server. This proxy server can be started with the db2jstrt[.exe], which defaults to port 6789. The process is enabled by default in most installations.

Contents

Driver Location

You may locate the latest DB2 7.2 JDBC drivers at the following location ...

Vendor: IBM
Driver URL: DB2 Server Installation ([DB2 Install]\java\db2java.zip)
Database Product: DB2 7.2

You may locate the JDBC drivers for your installed version of DB2 in the DB2 server or DB2 client installations. Below is a directory listing of the driver files in the [DB2_INSTALL]\java directory. The db2java.zip file is the DB2 JDBC driver required by ADS. This is the file you need to copy and whose extension you need to rename to .jar and use to overwrite the db2java.jar file.

C:\Program Files\SQLLIB\java>dir
 Volume in drive C has no label.
 Volume Serial Number is 7C2B-F9B7

 Directory of C:\Program Files\SQLLIB\java

09/03/2002  12:39p      DIR          .
09/03/2002  12:39p      DIR          ..
06/17/2003  07:02p             554,911 cc_cmn.jar
06/17/2003  07:02p             266,631 cc_nav.jar
06/17/2003  06:58p             809,313 common.jar
03/07/2003  07:20p             234,244 databean.jar
06/27/2003  04:23p           1,146,367 db2java.zip
06/18/2003  04:37a               5,342 db2vcsql.jar
09/03/2002  11:21a      DIR          images
09/03/2002  11:19a      DIR          java12
09/03/2002  12:36p      DIR          jdk
06/17/2003  07:01p             239,966 jgraph.jar
09/03/2002  12:35p      DIR          jre
09/03/2002  12:40p      DIR          prime
06/17/2003  06:22p             338,990 runtime.zip
06/17/2003  06:58p           1,253,896 sqlasst.jar
06/17/2003  06:22p           1,671,552 sqlj.zip
06/17/2003  09:29p           2,458,220 swingall.jar
              11 File(s)      8,979,432 bytes
               7 Dir(s)   5,216,145,408 bytes free

C:\Program Files\SQLLIB\java>

Updating Driver Contents for use DB2 7.2

To update the Aqua Data Studio JDBC drivers for DB2 7.2 you need to overwrite the Aqua Data Studio db2java.jar, db2jcc.jar and db2jcc_license_cu.jar files. Below is a listing of the Aqua Data Studio library directory [ADS_INSTALL]\lib\drivers\ ...

WINDOWS

[ADS_INSTALL]\lib\drivers\db2java.jar
[ADS_INSTALL]\lib\drivers\db2jcc.jar
[ADS_INSTALL]\lib\drivers\db2jcc_license_cu.jar

C:\Program Files\Aqua Data Studio 13.0 - 64bit\lib\drivers>dir
 Volume in drive C has no label.
 Volume Serial Number is 40F4-2392

 Directory of C:\Program Files\Aqua Data Studio 13.0 - 64bit\lib\drivers

11/23/2012  08:58 AM    <DIR>          .
11/23/2012  08:58 AM    <DIR>          ..
11/22/2012  11:13 AM            35,701 cassandra-clientutil.jar
11/22/2012  11:13 AM            64,465 cassandra-jdbc.jar
11/22/2012  11:13 AM           948,351 cassandra-thrift.jar
11/22/2012  11:13 AM         1,146,367 db2java.jar
11/22/2012  11:13 AM         3,348,681 db2jcc.jar
11/22/2012  11:13 AM             1,015 db2jcc_license_cu.jar
11/22/2012  11:13 AM         2,703,892 derby.jar
11/22/2012  11:13 AM           535,985 derbyclient.jar
11/22/2012  11:13 AM           242,891 derbynet.jar
11/22/2012  11:13 AM           812,386 ifxjdbc.jar
11/22/2012  11:13 AM         1,660,765 jconnect70.jar
11/22/2012  11:13 AM           141,648 jsqlparser-src.zip
11/22/2012  11:13 AM           142,861 jsqlparser.jar
11/22/2012  11:13 AM         4,581,825 jt400.jar
11/22/2012  11:13 AM           350,273 jtds-src.jar
11/22/2012  11:13 AM           329,228 jtds.jar
11/22/2012  11:13 AM           291,946 mongo.jar
11/22/2012  11:13 AM           651,205 mysql-src.jar
11/22/2012  11:13 AM           745,416 mysql.jar
11/22/2012  11:13 AM           445,188 ncluster.jar
11/22/2012  11:13 AM         2,714,189 ojdbc6.jar
11/22/2012  11:13 AM         1,656,248 orai18n.jar
11/22/2012  11:13 AM           346,944 paraccel-jdbc.jar
11/22/2012  11:13 AM           561,969 postgresql.jar
11/22/2012  11:13 AM         3,516,830 sqlite-jdbc.jar
11/22/2012  11:13 AM           286,773 util400.jar
11/22/2012  11:13 AM           262,740 xdb6.jar
11/22/2012  11:13 AM           839,982 xmlparserv2.jar
              28 File(s)     29,365,764 bytes
               2 Dir(s)  88,341,790,720 bytes free

C:\Program Files\Aqua Data Studio 13.0 - 64bit\lib\drivers>
LINUX

[ADS_INSTALL]/lib/drivers/db2java.jar
[ADS_INSTALL]/lib/drivers/db2jcc.jar
[ADS_INSTALL]/lib/drivers/db2jcc_license_cu.jar

OSX

Aqua Data Studio.app/Contents/Java/drivers/db2java.jar
Aqua Data Studio.app/Contents/Java/drivers/db2jcc.jar
Aqua Data Studio.app/Contents/Java/drivers/db2jcc_license_cu.jar

The Java class path for the drivers are already configured for ADS in the datastudio.ini for launching ADS with datastudio.exe and in datastudio.bat/.sh and datastudio-bundled.bat/.sh for launching Aqua Data Studio from the command line.




  • No labels