Environment Variables For The Ibm Data Server Driver For Jdbc And Sqlj - IBM DB2 Manual

Table of Contents

Advertisement

Environment variables for the IBM Data Server Driver for
JDBC and SQLJ
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You need to set environment variables so that the operating system can locate the
IBM Data Server Driver for JDBC and SQLJ.
The environment variables that you must set are:
STEPLIB
Modify STEPLIB to include the SDSNEXIT, SDSNLOAD, and SDSNLOD2 data
sets. For example:
export STEPLIB=DSN910.SDSNEXIT:DSN910.SDSNLOAD:DSN910.SDSNLOD2:$STEPLIB
PATH
Modify PATH to include the directory that contains the shell scripts that
invoke IBM Data Server Driver for JDBC and SQLJ program preparation and
debugging functions.
For example, if the IBM Data Server Driver for JDBC and SQLJ is installed in
/usr/lpp/db2910_jdbc, modify PATH as follows:
export PATH=/usr/lpp/db2910_jdbc/bin:$PATH
LIBPATH
The IBM Data Server Driver for JDBC and SQLJ contains the following
dynamic load libraries (DLLs):
v libdb2jcct2zos.so
v libdb2jcct2zos_64.so
Those DLLs contain the native (C or C++) implementation of the IBM Data
Server Driver for JDBC and SQLJ. The driver uses this code when you use IBM
Data Server Driver for JDBC and SQLJ type 2 connectivity.
Modify LIBPATH to include the directory that contains these DLLs.
For example, if the IBM Data Server Driver for JDBC and SQLJ is installed in
/usr/lpp/db2910_jdbc, modify LIBPATH as follows:
export LIBPATH=/usr/lpp/db2910_jdbc/lib:$LIBPATH
CLASSPATH
The IBM Data Server Driver for JDBC and SQLJ contains the following class
files:
db2jcc.jar or db2jcc4.jar
Contains all JDBC classes and the SQLJ runtime classes for the IBM Data
Server Driver for JDBC and SQLJ.
Include db2jcc.jar in the CLASSPATH if you plan to use the version of the
IBM Data Server Driver for JDBC and SQLJ that includes only JDBC 3.0
and earlier functions.
Include db2jcc4.jar in the CLASSPATH if you plan to use the version of the
IBM Data Server Driver for JDBC and SQLJ that includes JDBC 4.0 and
later functions, as well as JDBC 3.0 and earlier functions.
Important: Include db2jcc.jar or db2jcc4.jar in the CLASSPATH. Do not
include both files.
sqlj.zip or sqlj4.zip
Contains the classes that are needed to prepare SQLJ applications for
execution under the IBM Data Server Driver for JDBC and SQLJ.
Chapter 8. Installing the IBM Data Server Driver for JDBC and SQLJ
415

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents