Chapter 2. Environment Configuration

Table of Contents

2.1. Tmax Environment Configuration
2.2. Server Usage

This chapter describes how to configure Tmax environment and use MultipleRM server.

2.1. Tmax Environment Configuration

Since a MultipleRM server supports multiple RMs, it cannot use the existing configuration that only allows a single RM per server group. To support MultipleRM, add 'MTMAX' and 'STMAX' to the SVGTYPE item and add the SVGLIST and RMID fields.

MTMAX is a group of STMAX server groups. The servers that belong to MTMAX become MultipleRM servers, and so they can use RMs of the STMAXs specified in the SVGLIST.

For example, if Tibero and Oracle must run in the same process and be included in a single transaction, add Tibero and Oracle to the STMAX server groups. To enable MultipleRM, create a MTMAX server group, add the STMAX server groups to SVGLIST, and then add a server that beongs to the MTMAX server group to SERVER.

The following is an example of the previous environment configuration.

*SVRGROUP
svg_s1        NODENAME = hahehihol,
              DBNAME = ORACLE,
              OPENINFO="Oracle_Xa+SqlNet=KOR04+Acc=P/scott/tiger+SesTm=60",
              TMSNAME = tms_ora,
              SVGTYPE = STMAX

svg_s2        NODENAME = hahehihol,
              DBNAME = TIBERO,
              OPENINFO ="TIBERO_XA:user=scott,pwd=tiger, sestm=60,db=kor01_tibero",
              TMSNAME = tms_tbr,
              SVGTYPE = STMAX

svgm1         NODENAME = hahehihol,
              SVGLIST = "svg_s1,svg_s2",
              SVGTYPE = MTMAX

The following is the required STMAX configuration items.

ItemDescription
NODENAMENode name.
DBNAMERM name. Currently only 'TIBERO' and 'ORACLE' are supported.
OPENINFOOPENINFO of STMAX. STMAX is a group of XA servers.
TMSNAMETMS process name that manages the server group's database.
SVGTYPEMust be set to 'STMAX'.
RMID

Identifier used to distinguish between STMAXs of a single MTMAX that use the same RM. Not needed if different RMs are used.

In the previous example, RMID is not set because all STMAXs use different RMs. For more information about the RMID configuration, refer to Section 3.2.2, “Environment Configuration ”.

The following are the required MTMAX configuration items.

ItemDescription
NODENAMENode name.
SVGLISTSTMAX server group names. Use a comma(,) as a separator.
SVGTYPEMust be set to 'MTMAX'.

2.2. Server Usage

MultipleRM server can be used similar to TCS and UCS servers. Except for some functions that are used in TCS and UCS, all APIs can be used on MultipleRM server and the program structure is the same.

Program components can vary according to the server type as in the following.

  • TCS, UCS server

    To build TCS and UCS:

    User Code + libsvr(ucs) + db_stub(nodb) library
  • MultipleRM server

    To configure MultipleRM:

    User Code + libsvr(ucs) + libnodb