Compiling TMS
Transaction Management Server (TMS) is a process of a Tmax system that is responsible for database management and distributed transaction processing. This appendix describes how to create a binary TMS for Tibero, Oracle, and Informix DBMSs.
DBMS stub provided by Tmax is available in any versions of Tmax.
1. TMS for Tibero DBMS
Create a binary TMS file for Tibero by compiling tms_tbr.mk, provided by Tmax, located in the following directory. TMAXDIR is the Tmax installation directory.
TMAXDIR/sample/server
The following are the steps for compiling tms_tbr.mk.
-
Log in to Tmax with a Tmax user account.
$su – tmax
-
Export Tibero environment variables. Copy them to a shell configuration file and apply them.
The following is an example of Tibero environment variables.
## Tibero Environment ## export TB_HOME=/program/tibero4 export TB_SID=tibero export TB_PROF_DIR=$TB_HOME/bin/prof export PATH=.:$TB_HOME/bin:$TB_HOME/client/bin:$PATH export LD_LIBRARY_PATH=$TB_HOME/lib:$TB_HOME/client/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH_64=$LD_LIBRARY_PATH_64:$TB_HOME/lib:$TB_HOME/client/lib export SHLIB_PATH=${SHLIB_PATH}:$TB_HOME/lib:$TB_HOME/client/lib
-
Go to the $TMAXDIR/sample/server directory.
cd $TMAXDIR/sample/server
-
Compile tms_tbr.mk to create a binary TMS file for Tibero.
$make –f tms_tbr.mk all
-
The binary TMS file is generated in the following directory. The file is loaded to memory when Tmax starts and supports two-phase commit in a Tmax system to enable global transactions through an XA interface.
$TMAXDIR/appbin
For more information about the Tmax configuration file required to run TMS for Tibero, refer to $TMAXDIR/config/sample.m. |
2. TMS for Oracle DBMS
Create a binary TMS file for Oracle by compiling tms_ora.mk, provided by Tmax, located in the following directory. TMAXDIR is the Tmax installation directory.
TMAXDIR/sample/server
The following are the steps for compiling tms_ora.mk.
-
Log in to Tmax with a Tmax user account.
$su – tmax
-
Export Oracle environment variables. Copy them to a shell configuration file and apply them.
The following is an example of Oracle environment variables.
## Oracle Environment ## ORACLE_HOME=/oracle/app/oracle/product/8.0.5; export ORACLE_HOME PATH=$PATH:$ORACLE_HOME/bin; export PATH ORACLE_SID=ora805; export ORACLE_SID NLS_LANG=American_America.KO16KSC5601; export NLS_LANG ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data; export ORA_NLS33 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib; export LD_LIBRARY_PATH
-
Go to the $TMAXDIR/sample/server directory.
cd $TMAXDIR/sample/server
-
Compile tms_ora.mk to create a binary TMS file for Oracle.
$make –f tms_ora.mk all
-
The binary TMS file is generated in the following directory. The file is loaded to memory when Tmax starts and supports two-phase commit in a Tmax system to enable global transactions through an XA interface.
$TMAXDIR/appbin
For more information about the Tmax configuration file required to run TMS for Oracle, refer to $TMAXDIR/config/sample.m. |
3. TMS for Informix DBMS
Create a binary TMS file for Informix by compiling tms_info.mk, provided by Tmax, located in the following directory. TMAXDIR is the Tmax installation directory.
TMAXDIR/sample/server
The following are the steps for compiling tms_info.mk.
-
Log in to Tmax with a Tmax user account.
$su – tmax
-
Export Informix environment variables. Copy them to a shell configuration file and apply them.
The following is an example of Informix environment variables.
## Informix Environment ## export PATH=$PATH:/data2/informix/bin:$HOME/bin export INFORMIXDIR=/data2/informix export INFORMIXDIR=/data2/ids93fc export INFORMIXSERVER=ids93fc export LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql export TERMCAP=$INFORMIXDIR/etc/termcap
-
Go to the $TMAXDIR/sample/server directory.
$cd $TMAXDIR/sample/server
-
Compile tms_info.mk to create a binary TMS file for Informix.
$make –f tms_info.mk all
-
The binary TMS file is generated in the following directory. The file is loaded to memory when Tmax starts and supports two-phase commit in a Tmax system to enable global transactions through an XA interface. (The -lifxa flag of INFOLIBS enables to use an XA interface that supports two-phase commit.)
$TMAXDIR/appbin
For more information about the Tmax configuration file required to run TMS for Informix, refer to $TMAXDIR/config/sample.m. |