For the Java Transaction API
jndi.zip
For the Java Naming and Directory Interface API
The files jta.zip and jndi.zip are part of the standard JDK, but Oracle recommends you use those
included in the lib directory (and those that Oracle distributes) for compatibility with Oracle
classes in the classesXXX.zip file.
The content in these directories varies with the version of JDBC drivers installed. The preceding
directories and files are from Version 8.1.6.
2.2.1.2 Setting environment variables
After the client software installation, add the name of the appropriate classesXXX.zip file to your
CLASSPATH environment variable setting. If you are using J2EE, also add the appropriate
classesXXX.zip file to your J2EE_CLASSPATH setting. Be sure to specify only one
classesXXX.zip file; otherwise, you will encounter unexpected behavior and errors. For example,
if your Oracle Client software is installed on Microsoft Windows NT in the C:\Oracle\Ora81\
directory, then you need to add the following file to your CLASSPATH and J2EE_CLASSPATH
environment variables:
c:\oracle\ora81\jdbc\lib\classes12.zip;
In addition, you also need to add the Oracle Client binaries to your PATH. For example, if your
Oracle Client software is installed on Windows NT in C:\Oracle\Ora81\, then you need to add the
following to your PATH statement:
c:\oracle\ora81\bin;
For Unix, you need to add the Oracle Client binaries to your LD_LIBRARY_PATH setting. For
example, if your Oracle Client software is installed in /u01/app/oracle/product/8.1.6, then you
need to add the following to your LD_LIBRARY_PATH setting:
/u01/app/oracle/product/8.1.6/lib:
2.2.2 Installing the Thin Driver
To install the Thin driver software, follow these steps:
1. Install the Oracle Thin driver from the Oracle client distribution CD.
2. Add the appropriate classesXXX.zip file to your CLASSPATH environment variable.
3. If you are using Java 2 Enterprise Edition (J2EE), add the appropriate classesXXX.zip file
to your J2EE_CLASSPATH environment variable.
2.2.2.1 Install the Thin driver class files
If you are going to use the Thin driver, you can use the Oracle Universal Installer as I specified for
the OCI driver, but this time select only the appropriate Thin driver for installation. Alternatively,
you can simply locate the appropriate classesXXX.zip file on the distribution media and copy it to
an appropriate location on your computer. Then add the desired classesXXX.zip file to your
CLASSPATH and J2EE_CLASSPATH settings. Once again, be sure to specify only one
classesXXX.zip file; otherwise, you will encounter unexpected behavior and errors.
You can also obtain the Thin driver, and an updated version of the OCI driver, via the Oracle
Technology Network (OTN) at:
http://technet.oracle.com/software/tech/java/sqlj_jdbc/software_index.htm. To get
access to the drivers you must be an OTN member. Membership is free, and there is a wealth of
valuable information available, such as documentation, discussion forums, and technology tracks