Table of Contents Previous Next PDF


Configuring Oracle TMA TCP Gateway

Configuring Oracle TMA TCP Gateway
The following configuration files must be set up prior to running Oracle Tuxedo Mainframe Adapter for TCP Gateway (hereafter referenced as TMA TCP Gateway):
This document explains the following tasks for configuring TMA TCP Gateway:
Updating the Oracle Tuxedo UBBCONFIG File
As with any Tuxedo server, you must establish a server group for TMA TCP Gateway by adding entries for TMA TCP Gateway in the UBBCONFIG file for the local region. Specifically, you must add records to:
The GROUPS section
The SERVERS section
The SERVICES section
See the Oracle Tuxedo Administrator’s Guide for more information about the UBBCONFIG file. For information about the UBBCONFIG file specific to the gateway, refer to the “Updating the GROUPS Section to Establish a Server Group” and “Updating the SERVERS Section” sections.
Note:
Updating the GROUPS Section to Establish a Server Group
To establish a server group for TMA TCP Gateway, you must add the following items to the GROUPS section of the Oracle Tuxedo UBBCONFIG file:
Note:
For Windows NT, the LMID must be in uppercase
Syntax
The syntax of the configuration file entry is as follows.
Listing 5‑1 Syntax for GROUPS Section of UBBCONFIG File
groupname LMID=logical_machine_identifier
GROUPNO=group_number
 
The variable definitions follow.
 
Example
Here is an example of a UBBCONFIG entry that establishes a server group.
Listing 5‑2 Establishing a Server Group
NODE2GATE LMID=NODE2
GROUPNO=1
 
Updating the SERVERS Section
This section explains how to specify TMA TCP Gateway servers in the Oracle Tuxedo configuration.
The TMA TCP Gateway product provides the gateway you need to list in the SERVERS section of the Oracle Tuxedo UBBCONFIG configuration file.
For each TMA TCP Gateway server group, you can specify one gateway. There must also be entries for domain administration (DMADM) and gateway administration (GWADM) servers.
Syntax
The syntax of each configuration file entry is as follows.
Listing 5‑3 Syntax for SERVER Section of UBBCONFIG File
DMADM SVRGRP=groupname SRVID=integer
GWADM SVRGRP=groupname SRVID=integer
GWIDOMAIN SVRGRP=groupname SRVID=integer
CLOPT="-A -- -r"
 
The following table describes the parts of the syntax.
 
-A specifies the command line option string that is used to initialize TMA TCP Gateway when it is invoked. This is the default for Oracle Tuxedo server processes.
-r after the double dashes specifies that the server should record, in its standard error file, a log of services performed. This log may be analyzed by the txrpt command. When using this option, ensure that the ULOGDEG variable is not set to “y”.
For more information about Oracle Tuxedo servers and related configuration parameters, see the Oracle Tuxedo Administrator’s Guide.
Using the Request Logging Option
Output from the -r command line option should be capable of being processed by txrpt command. The txrpt command analyzes the standard error output of a Oracle Tuxedo server and provides a summary of service processing time within the server. The report shows the number of times each service was dispatched and the average amount of time it took for each service to process a request during the specified period. txrpt takes its input from the standard input or from a standard error file redirected as input.
Notes:
The -r option applies to servers but does not apply to GWIDOMAIN because it is a Gateway.
Other Options for Configuring Servers
As with other Tuxedo servers, you can use some of Oracle Tuxedo system server boot options with TMA TCP Gateway servers. Boot options must be specified with CLOPT parameter (before the CLOPT double-dash separator).
Note:
For more information about these and other boot options, see servopts(5) in the Oracle Tuxedo Administrator’s Guide.
Specifying Parameters in the GWICONFIG File
The GWICONFIG file is the mechanism that system administrators use to configure TMA TCP Gateway. The particular file the gateway uses is determined by the environment variable GWICONFIG. The configuration file is similar to the Tuxedo Transaction Manager UBBCONFIG file, both in structure and in composition. This makes it possible for experienced Oracle Tuxedo administrators to configure TMA TCP Gateway without extensive training.
Note:
GWICONFIG is a generic filename. You are free to choose other filenames just as with the Tuxedo UBBCONFIG file and DMCONFIG file. Be sure that the name of the GWICONFIG file is specified in the GWICONFIG environment variable. Also, the GWICONFIG file should be saved to the application directory.
The GWICONFIG file is divided into the following required sections:
 
Describes all native systems. Use the gateway name, specified in the GWI_GWNAME environment variable, to distinguish different gateways in the same configuration file.
Describes local services that are accessible in the Oracle Tuxedo domain through the TMA TCP Gateway. Each local service is linked to a native system using the NATIVE parameter. For each local service, TMA TCP Gateway uses the TCP port number and IP address of the corresponding native system to establish a TCP listening endpoint.
Describes remote services that are accessible from the Oracle Tuxedo domain. Each remote service describes a TCP service on a foreign system. For each remote service, the FOREIGN parameter defines the name of the foreign system. TMA TCP Gateway uses the TCP port number and IP address of the foreign system to connect to the remote TCP service.
WARNING:
The GWICONFIG file must contain the required sections in the order shown in Listing 5‑4. Each section requires the asterisk (*) in the name.
Listing 5‑4 Sample GWICONFIG File
*GLOBAL
NWDEVICE="/dev/tcp"
CONNECT_TIME=20
OUTREQ_TIME=20
LATENCY=-2
SECURE=N
MULTIPLEX=2
DFLTWRAP="TPS"
DFLTTYPE="MVS"
*NATIVE
LOCAL IPADDR="//beasun2"
TCP_PORT=9002
IDLE_TIME=20

*FOREIGN
RIGHTY WRAP="TPS"
TYPE="MVS"
IPADDR="//beasun2"
TCP_PORT=9004
MULTIPLEX=2
IDLE_TIME=30
RMTACCT="zeke"
PASSWORD="maple"

MIKE WRAP="TPS"
TYPE="MVS"
IPADDR="//dalvs3"
TCP_PORT=9001
MULTIPLEX=6

*LOCAL_SERVICES
TUXTOUPPER

ECHO

*REMOTE_SERVICES
TUXTOLOWER
OUTREQ_TIME=20

BEASVR07
OUTRECTYPE="VIEW:weird"

TST1V
 
Note:
Changes to the GWCONFIG file must be made when upgrading from previous releases of TMA TCP. See the Oracle Tuxedo Mainframe Adapter for TCP Release Notes for specific upgrade information.
Defining the GLOBAL Section of the GWICONFIG File
The following sections describe parameters that are associated with the GLOBAL section of the GWICONFIG file. These parameters describe global characteristics for the gateway.
The format of the GLOBAL section of the GWICONFIG file is shown in the following listing.
Listing 5‑5 Syntax for GLOBAL Section of GWICONFIG File
[ # A comment (from "#" to end of line)]

*GLOBAL
[ NWDEVICE=
TCP_device ]
[ CONNECT_TIME=n]
[ IDLE_TIME=n]
[ OUTREQ_TIME=n]
[ LATENCY=n|1 ]
[ SECURE=Y|N ]
[ MULTIPLEX=n|1 ]
[ DFLTWRAP=wrapper name ]
[ DFLTTYPE=translation type ]
 
The following table describes the parameters that are set in the GLOBAL section.
 
NWDEVICE="TCP_device"
CONNECT_TIME=n seconds
IDLE_TIME=n seconds
OUTREQ_TIME=n seconds
Specifies the default timeout value, in seconds, for requests sent to foreign gateways.
LATENCY=n seconds
If SECURE=Y, then the TMA TCP Gateway supplies user information to remote services and applies remote user information to local services using the appkey.
If SECURE=N, then the TMA TCP Gateway does not supply user information to remote services and does not apply remote user information to local services using the appkey.
If SECURE=N and the Tuxedo domain is set with SECURITY=ACL in the UBBCONFIG file, a request to a local service can fail even if ACLs are in place.
DFLTWRAP=wrapper name
Specifies the name of the default wrapping library to use for wrapping and unwrapping messages for machines without a FOREIGN section or without a WRAP parameter in the FOREIGN section. A corresponding wrapper object WRAP<wrapper name> must exist. The wrapper name TPS is used in most cases. Specify TPSD if data area security is used. For more information about data area security, refer to “Setting Up Security for Oracle TMA TCP Gateway.”
Specifies the default foreign system type for encoding and decoding message buffers. If you specify TYPE in the FOREIGN section, that TYPE definition overrides this default value. For normal C-to-COBOL encoding, specify DFLTYPE="MVSC" to enable COBOL data encoding.
Defining the NATIVE Section of the GWICONFIG File
The following sections describe parameters that are associated with the NATIVE section of the GWICONFIG file. These parameters are specific to the local system. You can specify multiple native systems in the same configuration file allowing multiple gateway processes to access the same configuration file. This makes a single repository of connectivity services. The link between the gateway process and the native system entry is made through the GWINAME environment variable.
The format of the NATIVE section of the GWICONFIG file is illustrated in the following listing.
Listing 5‑6 Syntax for NATIVE Section of GWICONFIG File
[ # A comment (from "#" to end of line)]
*NATIVE
<
GATEWAY_NAME>
[ IPADDR=ip_address ]
[ TCP_PORT=port number ]
[ IDLE_TIME=n]
[ MULTIPLEX=n]
[ POLL_TIME=n]
[ MAXCONNECT=n]
 
The following table describes for each local system that are specified in the NATIVE section.
 
<GATEWAY_NAME>
The GATEWAY_NAME parameter must match an entry in the DM_LOCAL_DOMAINS section of the DMCONFIG file.
IPADDR=ip_address
Specifies the IP address for the local system. The IPADDR can be in the hexadecimal format 0xaaaaaaaa, the dotted decimal format //#.#.#.#, or the DNS format //host[.domainname].
TCP_PORT=port number
Defining the FOREIGN Section of the GWICONFIG File
The FOREIGN section of the GWICONFIG file contains parameters that collectively describe foreign systems.
The format of the FOREIGN section of the GWICONFIG file is illustrated in the following listing.
Listing 5‑7 Syntax for FOREIGN Section of GWICONFIG File
[ # A comment (from "#" to end of line)]
*FOREIGN
<SYSTEM_NAME>
IPADDR=ip_address
[TYPE=system_type]
[WRAP=wrapper name]
[TCP_PORT=port number]
[MULTIPLEX=n sessions]
[IDLE_TIME=n seconds]
[RMTACCT=”userid”]
[PASSWORD=”password”]
[CICS=Y | N]
[CICSHAND=<name>]
[MAXCONNECT=n]
[CONNSYNC=Y|N]
[CONNECT_TIME=n]
[CICSDATA="string"]
 
The following table describes the parameters that are set for the each foreign system that you specify in the FOREIGN section.
The following table describes the parameters that are specified in the FOREIGN section.
 
Table 5‑4 Parameters for the FOREIGN Section
<SYSTEM_NAME>
The SYSTEM_NAME parameter must match an entry in the DM_REMOTE_DOMAINS section of the DMCONFIG file.
IPADDR=ip_address
Specifies the IP address for the remote system. The IPADDR can be in the hexadecimal format 0xaaaaaaaa, the dotted decimal format //#.#.#.#, or the DNS format //host[.domainname].
TYPE=system type
Specifies the foreign system type for encoding and decoding the Tuxedo buffers (application data). TYPE values of MVS and MVSC support C-to-COBOL or COBOL data encoding. If you do not specify TYPE, the value in DFLTYPE in the GLOBAL section is used.
WRAP=wrapper name
Specify TPSD if data area security is used. For more information about data area security, refer to “Setting Up Security for Oracle TMA TCP Gateway.”
If WRAP is not specified in the FOREIGN section, the value for DFLTWRAP in the GLOBAL section is used.
TCP_PORT=port number
MULTIPLEX=n sessions per connection
IDLE_TIME=n seconds
If CICS=Y and you are not using IBM TCP/IP or your remote gateway is not TMA TCP for CICS, the transaction does not process correctly.
CICSHAND=<name>
RMTACCT=”userid”
PASSWORD=”password”
Value from GLOBAL section
CICSDATA=”string”
Defining the LOCAL_SERVICES Section of the GWICONFIG File
The LOCAL_SERVICES section of the GWICONFIG file contains parameters for each local service specified in the DMCONFIG file. Each service entry name matches the remote name of the service in the DM_LOCAL_SERVICES section.
The format of the LOCAL_SERVICES section of the GWICONFIG file is illustrated in the following listing.
Listing 5‑8 Syntax for LOCAL_SERVICES Section of GWICONFIG File
[ # A comment (from "#" to end of line)]
*LOCAL_SERVICES
<SERVICE_NAME>
[INRECTYPE=”foreign_incoming_buffer_type”]
[OUTRECTYPE=”foreign_outgoing_buffer_type”]
[SECURE=Y | N]
[CONV=Y | N]
 
The following section describes the parameters set for each service you specify in the LOCAL_SERVICES section.
 
<SERVICE_NAME>
This parameter is a 1-78 alphanumeric character string that represents the local service name that matches the service name value in the DM_LOCAL_SERVICES section of the DMCONFIG file.
INRECTYPE=”foreign_incoming_buffer_type”
Specifies the foreign buffer type for replies to remote clients. If you do not specify INRECTYPE, the default is no type. In this case, the type of buffer is unchanged.
OUTRECTYPE=”foreign_outgoing_buffer_type”
Match the INRECTYPE value
N
If SECURE=Y, then the TMA TCP Gateway applies remote user information to local services using the appkey.
If SECURE=N, then the TMA TCP Gateway does not apply remote user information to local services using the appkey.
If SECURE=N and the Tuxedo domain is set with SECURITY=ACL in the UBBCONFIG file, a request to a local Tuxedo service can fail even if ACLs are in place.
Defining the REMOTE_SERVICES Section of the GWICONFIG File
The REMOTE_SERVICES section of the GWICONFIG file contains parameters for each remote service specified in the DMCONFIG file. Each service entry name matches the remote name of the service in the DM_REMOTE_SERVICES section.
The format of the REMOTE_SERVICES section of the GWICONFIG file is illustrated in the following listing.
Listing 5‑9 Syntax for REMOTE_SERVICES Section of GWICONFIG File
[ # A comment (from "#" to end of line)]
*REMOTE_SERVICES
<SERVICE_NAME>
[INRECTYPE=”foreign_outgoing_buffer_type”]
[OUTRECTYPE=”foreign_incoming_buffer_type”]
[OUTREQ_TIME=n]
[SECURE=Y | N]
[CONV=Y | N]
 
The following table describes the parameters set for each service you specify in the REMOTE_SERVICES section.
 
<SERVICE_NAME>
This parameter is a 1-78 alphanumeric character string that represents the local service name that matches the RNAME value in the DM_REMOTE_SERVICES section of the DMCONFIG file. If RNAME is not specified, this name matches the Tuxedo service name.
INRECTYPE=”foreign_outgoing_buffer_type”
Specifies the foreign buffer type for requests to remote servers. If you do not specify INRECTYPE, the default is no type. In this case, the type of buffer is changed.
OUTRECTYPE=”foreign_incoming_buffer_type”
Match the OUTBUFTYPE value
Specifies the foreign buffer type for replies from remote servers. If you do not specify OUTRECTYPE, the default is no type. In this case, the type of buffer is unchanged.
Value from GLOBAL section
Specifies the timeout value, in seconds, for requests sent to this service. If you do not specify this parameter, the value for OUTREQ_TIME in the GLOBAL section is used. If OUTREQ_TIME is not specified in this section or the GLOBAL section, an error message occurs.
If SECURE=Y, then the TMA TCP Gateway supplies user information to remote services.
If SECURE=N, then the TMA TCP Gateway does not supply user information to remote services.
Defining Domain Configurations in the DMCONFIG File
The domain configuration file (DMCONFIG) is made up of specification sections. Lines beginning with an asterisk (*) indicate the beginning of a specification section. Each such line contains the name of the section immediately following the *. The asterisk is required when specifying a section name. Allowable section names are: DM_LOCAL_DOMAINS, DM_REMOTE_DOMAINS, DM_LOCAL_SERVICES, DM_REMOTE_SERVICES, DM_ROUTING, and DM_ACCESS_CONTROL.
Note:
The DM_LOCAL_DOMAINS section must precede the DM_REMOTE_DOMAINS.
The following paragraphs describe the significant parameters within specific sections of the DMCONFIG file that define new gateway configurations.
DM_LOCAL_DOMAINS Section
This section identifies local domains and their associated gateway groups. The section must have an entry for each gateway group (local domain). Each entry specifies the parameters required for the domain gateway processes running in that group.
The format of the DM_LOCAL_DOMAINS section of the DMCONFIG file is illustrated in the following listing.
Listing 5‑10 Syntax for DM_LOCAL_DOMAINS Section of DMCONFIG File
LDOM required parameters [optional parameters]
 
LDOM is an identifier value used to name each local domain and must be unique within a particular configuration. In the description of the DM_LOCAL_SERVICES section, LDOM is the identifier that connects local services with a particular gateway group.
The following table describes the parameters that are set in the DM_LOCAL_SERVICES section.
 
GWGRP = identifier
Specifies the name of the gateway server group (the name provided in the TUXCONFIG file) representing this local domain. A one-to-one relationship must exist between a DOMAINID and the name of the gateway server group; each GWGRP must have its own unique DOMAINID.
TYPE = identifier
Is used for grouping local domain into classes. TYPE can be set to TDOMAIN or any other domain gateway type. The TDOMAIN value indicates that this local domain can only communicate with another Tuxedo System/Domain. For use with TMA TCP Gateway, specify TYPE=IDOMAIN. Domain types must be defined in the $TUXDIR/udataobj/DMTYPE file.
DOMAINID = string
Is used to identify the local domain. DOMAINID must be unique across both local and remote domains. The value of string can be a sequence of characters (for example, "BA.CENTRAL01"), or a sequence of hexadecimal digits preceded by "0x" (for example, "0x0002FF98C0000B9D6"). DOMAINID must be 32 octets or fewer in length. If the value is a string, it must be 31 characters or fewer.
AUDITLOG = string
Specifies the name of the audit log file for this local domain. The audit log feature is activated from the dmadmin command and records all the operations within this local domain. If the audit log feature is active and this parameter is not specified, the file DMmmddyy.LOG (where mm=month, dd=day, and yy=year) is created in the directory specified by the $APPDIR environment variable or the APPDIR keyword of the MACHINES section of the TUXCONFIG file.
BLOCKTIME = numeric
The value of BLOCKTIME parameter specified in the TUXCONFIG file
Specifies the maximum wait time allowed for a blocking call. The value sets a multiplier of the SCANUNIT parameters specified in the TUXCONFIG file. The value SCANUNIT * BLOCKTIME must be greater than or equal to SCANUNIT and less than 32,768 seconds.
CODEPAGE = table-identifier
Specifies the mapping to use with remote hosts that are not specified in the DMCONFIG file. CODEPAGE designates a bidirectional translation table for ASCII to EBCDIC conversion between a local Tuxedo application and a remote mainframe application. The table-identifier describes a file containing a translation table. The name of the file, located in the $TUXDIR/udatajobj/codepage directory, is a composite of the code page numbers used for the translation. This parameter specifies the mapping to use with remote hosts that are not specified in the DMCONFIG file.
For example, specifying CODEPAGE=00819x00297 designates the translation table for converting ASCII CP-00819 characters to French EBCDIC CP-00297 characters, and vice versa. The translation tables can be modified. For complete character listings, refer to “Code Page Translation Tables.”
DMTLOGDEV = string
Specifies the Tuxedo file system that contains the Domain transaction log (DMTLOG) for this machine. The DMTLOG is stored as a Tuxedo System VTOC table on the device. If this parameter is not specified, the domain gateway group is not allowed to process requests in transaction mode. Local domains running on the same machine can share the same DMTLOGDEV file system, but each local domain must have its own log (a table in the DMTLOGDEV) named as specified by the DMTLOGNAME keyword.
DMTLOGNAME = identifier
DMTLOG
Specifies the name of the domain transaction log for this domain. This name must be unique when the same DMTLOGDEV is used for several local domains. The name must be 30 characters or less.
DMTLOGSIZE = numeric
MAXDATALEN = numeric
MAXRDOM = numeric
Specifies the maximum number of connections (or dialogs if the domain is of type OSITP) allowed per gateway. There is no limit if this parameter is not specified.
MAXRDTRAN = numeric
MAXTRAN = numeric
MAXSENDLEN = numeric
DM_REMOTE_DOMAINS Section
This section identifies the known set of remote domains and their characteristics.
The format of the DM_REMOTE_DOMAINS section of the DMCONFIG file is illustrated in the following listing.
Listing 5‑11 Syntax for DM_REMOTE_DOMAINS Section of DMCONFIG
RDOM required parameters [optional parameters]
 
RDOM is an identifier value used to identify each remote domain known to this configuration and must be unique within the configuration.
The following table describes the parameters that are set in the DM_REMOTE_DOMAINS section.
 
TYPE = identifier
Is used for grouping remote domain into classes. TYPE can be set to TDOMAIN or any other domain gateway type. The TDOMAIN value indicates that this remote domain can only communicate with another Tuxedo System/Domain. The OSITP value indicates that this remote domain communicates with another TP domain via the OSI-TP protocol. For use with TMA TCP Gateway, specify TYPE=IDOMAIN.
DOMAINID = string
Is used to identify a remote domain. DOMAINID must be 32 octets or fewer in length. If the value is a string, it must be 31 characters or fewer. DOMAINID must be unique across remote domains. The value of string can be a sequence of characters or a sequence of hexadecimal digits preceded by "0x".
CODEPAGE = table-identifier
Is used to designate a bidirectional translation table for ASCII to EBCDIC conversion between a local Tuxedo application and a remote mainframe application. The table-identifier describes a file containing a translation table. The name of the file, located in the $TUXDIR/udatajobj/codepage directory, is a composite of the code page numbers used for the translation.
For example, specifying CODEPAGE=00819x00297 designates the translation table for converting ASCII CP-00819 characters to French EBCDIC CP-00297 characters, and vice versa. The translation tables can be modified. For complete character listings, refer to “Code Page Translation Tables.”
DM_ACCESS_CONTROL Section
This section is optional in the DMCONFIG file and specifies the access control lists used by local domain.
The format of the DM_ACCESS_CONTROL section of the DMCONFIG file is illustrated in the following listing.
Listing 5‑12 Syntax for DM_ACCESS_CONTROL Section of DMCONFIG
ACL_NAME required parameters
 
ACL_NAME is a name (identifier) used to identify a particular access control list; it must be 15 characters or less in length.
 
ACLIST = identifier [,identifier]
An ACLIST is composed of one or more remote domain names (RDOM) separated by commas. The wildcard character (*) can be used to specify that all the remote domains defined in the DM_REMOTE_DOMAINS section can access a local domain.
DM_LOCAL_SERVICES Section
This section provides information on the services exported by each local domain. This section is optional and if it is not specified then all local domains defined in the DM_LOCAL_DOMAINS section accept requests to all of the services advertised by the Tuxedo System/Domain application. If this section is defined then it should be used to restrict the set of local services that can be requested from a remote domain.
The format of the DM_LOCAL_SERVICES section of the DMCONFIG file is illustrated in the following listing.
Listing 5‑13 Syntax for DM_LOCAL_SERVICES Section of DMCONFIG File
service [optional parameters]
 
service is the local name (identifier) of the exported service, and it must be 15 characters or fewer in length.
This name corresponds to a name advertised by one or more servers running with the local Tuxedo System/Domain application. Notice that exported services inherit the default or special properties specified for the service in an entry in the SERVICES section of the TUXCONFIG file. Some of these parameters are: LOAD, PRIO, AUTOTRAN, ROUTING, BUFTYPE, and TRANTIME.
 
ACL = identifier
Specifies the name of the access control list (ACL) to be used by the local domain to restrict requests made to this service by remote domains. The name of the ACL is defined in the DM_ACCESS_CONTROL section. If this parameter is not specified, then access control is not performed for requests to this service.
LDOM = identifier
RNAME = string
INBUFTYPE=
type:subtype | FML:servicename
To use an alternate data mapping product, specify FML as the buffer type (regardless of the actual Tuxedo buffer type being passed) and the encoding service name as the subtype. Because the gateway does not do the encoding, the FML buffer type in the DMCONFIG file is a flag for alternate data mapping only. The Tuxedo server and the alternate data mapping product should be configured with the actual Tuxedo buffer type.
OUTBUFTYPE=
type:subtype | FML:servicename
To use an alternate data mapping product, specify FML as the buffer type (regardless of the actual Tuxedo buffer type being passed) and the decoding service name as the subtype. Because the gateway does not do the decoding, the FML buffer type in the DMCONFIG file is a flag for alternate data mapping only. The Tuxedo server and the alternate data mapping product should be configured with the actual Tuxedo buffer type.
DM_REMOTE_SERVICES Section
This section provides information on services “imported” and available on remote domains.
The format of the DM_REMOTE_SERVICES section of the DMCONFIG file is illustrated in the following listing.
Listing 5‑14 Syntax for DM_REMOTE_SERVICES Section of DMCONFIG
service [optional parameters]
 
service is the name (identifier) used by the local Tuxedo System/Domain application for a particular remote service. Remote services are associated with a particular remote domain.
 
N
LDOM = identifier
Specifies the name of a local domain in charge of routing requests to this remote service. The gateway group associated with the local domain advertises service in the Tuxedo System/Domain Bulletin Board. If this parameter is not specified, then all the local domains are able to accept requests to this remote service. The service request is redirected to a remote domain of the same type (see the following definition for RDOM keyword).
RDOM = identifier
Specifies the name of the remote domain responsible for the actual execution of this service. If this parameter is not specified and a routing criteria (see the following definition for ROUTING keyword) is not specified, then the local domain assumes that any remote domain of the same type accepts this service and it selects a known domain (a domain to which a connection already exists) or remote domain from the DM_REMOTE_DOMAINS section.
RNAME = string
ROUTING = identifier
When more than one remote domain offers the same service, a local domain can perform data-dependent routing if this optional parameter is specified. The identifier specifies the name of the routing criteria used for this data-dependent routing. If not specified, data-dependent routing is not done for this service. identifier must be 15 characters or less in length. If multiple entries exist for the same service name but with different RDOM parameters, the ROUTING parameter should be the same for all of these entries.
TRANTIME = integer
INBUFTYPE=type:
subtype
| FML:
servicename”
To use an alternate data mapping product, specify FML as the buffer type (regardless of the actual Tuxedo buffer type being passed) and the encoding service name as the subtype. Because the gateway does not do the encoding, the FML buffer type in the DMCONFIG file is a flag for alternate data mapping only. The Tuxedo application and the alternate data mapping product should be configured with the actual Tuxedo buffer type.
OUTBUFTYPE=type:
subtype
| FML:servicename
To use an alternate data mapping product, specify FML as the buffer type (regardless of the actual Tuxedo buffer type being passed) and the decoding service name as the subtype. Because the gateway does not do the decoding, the FML buffer type in the DMCONFIG file is a flag for alternate data mapping only. The Tuxedo application and the alternate data mapping product should be configured with the actual Tuxedo buffer type.
DM_ROUTING Section
This section is optional in the DMCONFIG file and provides information for data-dependent routing of service requests using FML, VIEW, X_C_TYPE, and X_COMMON typed buffers.
The format of the DM_ROUTING section of the DMCONFIG file is illustrated in the following listing.
Listing 5‑15 Syntax for DM_ROUTING Section of DMCONFIG File
CRITERION_NAME required parameters
 
CRITERION_NAME is the (identifier) name of the routing entry that was specified on the services entry. CRITERION_NAME must be 15 characters or less in length.
 
FIELD = identifier
Specifies the name of the routing field. It must be 30 characters or less. This field is assumed to be a field name that is identified in an FML field table (for FML buffers) or an FML view table (for VIEW, X_C_TYPE, or X_COMMON buffers). The FLDTBLDIR and FIELDTBLS environment variables are used to locate FML field tables, and the VIEWDIR and VIEWFILES environment variables are used to locate FML view tables.
RANGES = string
Specifies the ranges and associated remote domain names (RDOM) for the routing field. string must be enclosed in double quotes. The format of string is a comma-separated ordered list of range/RDOM pairs.
The value MIN can be used to indicate the minimum value for the data type of the associated FIELD; for strings and arrays, it is the null string; for character fields, it is 0; for numeric values, it is the minimum numeric value that can be stored in the field.
The value MAX can be used to indicate the maximum value for the data type of the associated FIELD; for strings and arrays, it is effectively an unlimited string of octal-255 characters; for a character field, it is a single octal-255 character; for numeric values, it is the maximum numeric value that can be stored in the field.
Thus, ‘‘MIN - -5’’ is all numbers less than or equal to –5 and ‘‘6 - MAX’’ is all numbers greater than or equal to 6. The meta-character ‘‘*’’ (wildcard) in the position of a range indicates any values not covered by the other ranges previously seen in the entry; only one wildcard range is allowed per entry and it should be last (ranges following it are ignored).
When a field value matches a range, the associated RDOM value specifies the remote domain to which the request should be routed. A RDOM value of ‘‘*’’ indicates that the request can go to any remote domain known by the gateway group.
Within a range/RDOM pair, the range is separated from the RDOM by a ‘‘:’’.
BUFTYPE = ~type1[:subtype1[,subtype2 . . . ]][;type2[:subtype3[, . . . ]]] . . .~
Is a list of types and subtypes of data buffers for which this routing entry is valid. The types are restricted to be either FML, VIEW, X_C_TYPE, or X_COMMON. No subtype can be specified for type FML and subtypes are required for the other types (‘‘*’’ is not allowed). Duplicate type/subtype pairs cannot be specified for the same routing criterion name; more than one routing entry can have the same criterion name as long as the type/subtype pairs are unique.
Sample DMCONFIG File
Listing 5‑16 is a sample DMCONFIG file and must be set up prior to running the TMA TCP Gateway product. For a sample DMCONFIG file that uses alternate data mapping tools, refer to the “Configuring Oracle TMA TCP Gateway for Data Mapping” section.
Listing 5‑16 Sample DMCONFIG File
#
# Copyright (c) 2008 Oracle Systems, Inc
# All Rights Reserved
#
# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF
# Oracle Systems, Inc.
# The copyright notice above does not evidence any
# actual or intended publication of such source code.
#
#
*DM_LOCAL_DOMAINS
LOCAL GWGRP=GROUP
TYPE=IDOMAIN
DOMAINID="LOCAL"

#
*DM_REMOTE_DOMAINS
REMOTE TYPE=IDOMAIN
DOMAINID="REMOTE"

#
*DM_LOCAL_SERVICES
ECHOX RNAME="ZECHOSV4"
TOLOWER RNAME="TUXTOLOWER"
INBUFTYPE=string
OUTBUFTYPE=string

#
*DM_REMOTE_SERVICES
TOUPPER RDOM=REMOTE
LDOM=LOCAL
RNAME="TUXTOUPPER"


ECHOFAR RDOM=REMOTE
LDOM=LOCAL
RNAME="BEASVR07"
INBUFTYPE="VIEW:myview"
OUTBUFTYPE="FML"

NORMAL RDOM=REMOTE
LDOM=LOCAL
RNAME="TST1V"
 

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