![]() |
![]() |
![]() |
![]() |
![]() |
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, bindsor rebinds theimpacted servers and builds the TMS_UDB.
• remark1 for ARTTSQ: ARTTSQ server uses a specific module for DB2 or Oracle access, so in the makefile there not only the database library changes, but also the linking of kix_tsrecov_UDB or kix_tsrecov_Oracle to build the ARTTSQ server.
• Remark 2 for ARTTSQ, if you have recoverable TS Queues, and are using DB2 then you nned to create the TS queue table for UBD. This done by using the script crtstable_UDB instead of the script crtstable_Oracle
• If ORACLE_HOME exists, the makefile linksorrelinks 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 makefil_intg file to force the UDB or Oracle linking example:Listing A‑1 Setting the Database Variable
1. Check that the DB2DIR variable is set .
2.
3. Open the tools directory.
4. Run make -f makefile_intg all