Table of Contents Previous Next PDF


UDB Linking

UDB Linking
Installation Time UDB Linking
The file makefile_intg is provided as an example to help you generate a runtime linked with UDB, you can adapt it for other uses (partial linking with UDB, linking with DB2 connect, etc.).
CICS Runtime servers can be linked with an Oracle database or a UDB (LUW) database using a makefile named makefile_intg. This makefile detects the database that you are using thru the following environment variables: DB2DIR or ORACLE_HOME.
If DB2DIR exists, the makefile links the servers with UDB libraries instead of the Oracle libraries, binds or rebinds the impacted servers and builds the TMS_UDB.
If ORACLE_HOME exists, the makefile links or relinks the servers with Oracle libraries and builds the TMS_ORA.
If both variables (DB2DIR and ORACLE_HOME) exist or neither of these variables exist, the makefile stops and publishes a clear error message.
You can also change the DATABASE variable in the makefile_intg file to force the UDB or Oracle linking, as shown in the following example:
Listing A‑1 Setting the Database Variable
#DATABASE=$(DATABASE_U)$(DATABASE_O)
DATABASE=UDB
 
Rebuilding Servers for UDB
The servers delivered are built to be used with Oracle, to rebuild these servers for UDB:
1.
Check that the DB2DIR variable is set .
2.
Check that the ORACLE_HOME variable is not set (or change the makefile).
3.
Open the tools directory.
4.
Run make -f makefile_intg all
Note:
UDB_XA:db2xa_switch_std:-L${DB2DIR}/lib64 -ldb2

Copyright © 1994, 2017, Oracle and/or its affiliates. All rights reserved.