Converting Jdbc/Sqlj Driver For Os/390 And Z/Os Serialized Profiles To Ibm Data Server Driver For Jdbc And Sqlj Serialized Profiles - IBM DB2 Manual

Table of Contents

Advertisement

Table 96. JDBC/SQLJ Driver for OS/390 and z/OS properties and their IBM Data Server Driver for JDBC and SQLJ
equivalents (continued)
JDBC/SQLJ Driver for OS/390 and z/OS
property
db2.connpool.connect.create.timeout
Converting JDBC/SQLJ Driver for OS/390 and z/OS serialized profiles
to IBM Data Server Driver for JDBC and SQLJ serialized profiles
Although only the DB2 Driver for JDBC and SQLJ is supported in DB2 Version 9.1
for z/OS, you can convert serialized profiles that you customized in previous
releases of DB2 for z/OS to a format that is compatible with the IBM Data Server
Driver for JDBC and SQLJ. To do that, run the db2sqljupgrade utility.
Before you can run the db2sqljupgrade utility, the IBM Data Server Driver for
JDBC and SQLJ must be installed.
To convert your serialized profiles, follow these steps:
1. Determine the correct collection for a serialized profile that you plan to convert:
2. Run the db2sqljupgrade utility.
3. Set the db2.jcc.pkList or db2.jcc.planName configuration property.
Chapter 9. Migrating from the JDBC/SQLJ Driver for OS/390 and z/OS to the IBM Data Server Driver for JDBC and SQLJ
IBM Data Server Driver for JDBC
and SQLJ equivalent
None
a. Run the db2profp utility.
b. Locate the program name in the db2profp output. The program name is the
stem for each of the four DBRMs that the SQLJ customizer produces for a
serialized profile.
For example, db2profp output from sample program Sample02.sqlj looks
like this:
===================================================
printing contents of profile Sample02_SJProfile0
created 1137709347170 (Thu Jan 19 14:22:27 PST 2006)
DB2 consistency token is x'00000108E4C2F162'
DB2 program version string is null
DB2 program name is "SQLJ01"
associated context is Sample02ctx
profile loader is sqlj.runtime.profile.DefaultLoader@6a049a03
contains 1 customizations
COM.ibm.db2os390.sqlj.custom.DB2SQLJCustomizer@38f81a03
original source file: null
contains 2 entries
===================================================
The program name is SQLJ01, so the four DBRMs, and the packages into
which they are bound, are SQLJ011, SQLJ012, SQLJ013, and SQLJ014.
c. Query catalog table SYSIBM.SYSPACKAGE to determine the collection ID
that is associated with the four packages.
For example:
SELECT NAME, COLLID
FROM SYSIBM.SYSPACKAGE
WHERE NAME IN ('SQLJ011', 'SQLJ012', 'SQLJ013', 'SQLJ014')
For example:
db2sqljupgrade -collection SQLJ01 Sample02_SJProfile0.ser
Notes
Not needed for the IBM Data Server
Driver for JDBC and SQLJ.
445

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents