Include sqlj.zip in the CLASSPATH if you plan to prepare SQLJ
applications that include only JDBC 3.0 and earlier functions.
Include sqlj4.zip in the CLASSPATH if you plan to prepare SQLJ
applications that include JDBC 4.0 and later functions, as well as JDBC
3.0 and earlier functions.
Important: Include sqlj.zip or sqlj4.jar in the CLASSPATH. Do not include
both files.
db2jcc_license_cisuz.jar
A license file that permits access to the DB2 server.
Modify your CLASSPATH to include these files. If the IBM Data Server Driver
for JDBC and SQLJ is installed in /usr/lpp/db2910_jdbc, modify CLASSPATH
as follows:
For JDBC 3.0 and earlier support:
export CLASSPATH=/usr/lpp/db2910_jdbc/classes/db2jcc.jar: \
/usr/lpp/db2910_jdbc/classes/db2jcc_javax.jar: \
/usr/lpp/db2910_jdbc/classes/sqlj.zip: \
/usr/lpp/db2910_jdbc/classes/db2jcc_license_cisuz.jar: \
$CLASSPATH
For JDBC 4.0 and later, and JDBC 3.0 and earlier support:
export CLASSPATH=/usr/lpp/db2910_jdbc/classes/db2jcc4.jar: \
/usr/lpp/db2910_jdbc/classes/db2jcc_javax.jar: \
/usr/lpp/db2910_jdbc/classes/sqlj4.zip: \
/usr/lpp/db2910_jdbc/classes/db2jcc_license_cisuz.jar: \
$CLASSPATH
If you use Java stored procedures, you need to set additional environment
variables in a JAVAENV data set.
Related concepts
Chapter 2, “Supported drivers for JDBC and SQLJ,” on page 3
“WLM application environment values for Java routines” on page 159
“Run-time environment for Java routines” on page 160
Related tasks
“Running JDBC and SQLJ programs” on page 192
“Installing the z/OS Application Connectivity to DB2 for z/OS feature” on
page 435
Chapter 9, “Migrating from the JDBC/SQLJ Driver for OS/390 and z/OS to the
IBM Data Server Driver for JDBC and SQLJ,” on page 439
“Upgrading the IBM Data Server Driver for JDBC and SQLJ to a new version”
on page 434
Customization of IBM Data Server Driver for JDBC and SQLJ
configuration properties
The IBM Data Server Driver for JDBC and SQLJ configuration properties let you
set property values that have driver-wide scope. Those settings apply across
applications and DataSource instances. You can change the settings without having
to change application source code or DataSource characteristics.
Each IBM Data Server Driver for JDBC and SQLJ configuration property setting is
of this form:
property=value
416 Application Programming Guide and Reference for Java
™
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|