IBM DB2 Manual page 452

Table of Contents

Advertisement

|
436
Application Programming Guide and Reference for Java
1. Allocate and load the z/OS Application Connectivity to DB2 for z/OS libraries.
2. On all DB2 for z/OS servers to which you plan to connect, set subsystem
parameter DESCSTAT to YES. DESCSTAT corresponds to installation field
DESCRIBE FOR STATIC on panel DSNTIPF.
This step is necessary for SQLJ support.
3. In z/OS UNIX System Services, edit your .profile file to customize the
environment variable settings. You use this step to set the libraries, paths, and
files that the IBM Data Server Driver for JDBC and SQLJ uses.
4. On all DB2 for z/OS servers to which you plan to connect, enable the
DB2-supplied stored procedures that are used by the IBM Data Server Driver
for JDBC and SQLJ.
5. In z/OS UNIX System Services, run the DB2Binder utility against the z/OS
system on which you are installing z/OS Application Connectivity to DB2 for
z/OS to bind the packages for the IBM Data Server Driver for JDBC and SQLJ
at all DB2 for z/OS servers to which you plan to connect. You need to run
DB2Binder once for each server.
6. If you plan to use IBM Data Server Driver for JDBC and SQLJ type 4
connectivity to implement distributed transactions against DB2 UDB for
OS/390 and z/OS Version 7 servers: In z/OS UNIX System Services, run the
DB2T4XAIndoubtUtil against each of those servers.
7. If you plan to use LOB locators to access DBCLOB or CLOB columns in DB2
tables on DB2 for z/OS servers: Create tables on the database servers that are
needed for fetching data from DBCLOB or CLOB columns using LOB locators.
Use one of the following techniques.
v On the DB2 for z/OS servers, customize and run job DSNTIJMS. That job is
located in data set prefix.SDSNSAMP.
v On the client, in z/OS UNIX System Services, run the
com.ibm.db2.jcc.DB2LobTableCreator utility against each of the DB2 for z/OS
servers.
8. Verify the installation by running a simple JDBC application.
Related concepts
"Environment variables for the IBM Data Server Driver for JDBC and SQLJ" on
page 415
"Customization of IBM Data Server Driver for JDBC and SQLJ configuration
properties" on page 416
"Verify the installation of the IBM Data Server Driver for JDBC and SQLJ" on
page 432
"Run-time environment for Java routines" on page 160
Related tasks
"Enabling the DB2-supplied stored procedures and defining the tables used by
the IBM Data Server Driver for JDBC and SQLJ" on page 418
"Connecting distributed database systems" (DB2 Installation Guide)
"Connecting systems with TCP/IP" (DB2 Installation Guide)
Related reference
" IBM Data Server Driver for JDBC and SQLJ configuration properties" on page
239
"DB2Binder utility" on page 421
"DB2T4XAIndoubtUtil for distributed transactions with DB2 UDB for OS/390
and z/OS Version 7 servers" on page 428
"DB2LobTableCreator utility" on page 431

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents