Table of Contents Previous Next PDF


Configuring Tuxedo for Propagating ECID

Configuring Tuxedo for Propagating ECID
This topic includes the following sections:
Overview
Tuxedo is enhanced to support ECID propagation from its 12c (12.1.1) release. As Figure 19‑1 shows, it supports the propagation of ECID across various Tuxedo boundaries.
Figure 19‑1 ECID Propagation
With this feature enabled, as the receiving side, Tuxedo will check whether there is an ECID in each request call across boundaries. If yes, the received ECID will be propagated along the whole call path; otherwise, as the boundary node, the domain gateway will try to generate an ECID for this call and propagate it once correctly configured.
For a call initiated by a Tuxedo component, say, a native client, a WS client, or a Jolt client, the client can generate an ECID for it once correctly configured.
Note:
This section describes following four scenarios of ECID propagation.
Propagating ECID from Tuxedo to Database
Tuxedo supports to propagate the ECID to Oracle DB via Oracle Call Interface (OCI). This is a one-way propagation. Since the OCI/DB never initiates a request call in theory, it’s not necessary to support the propagation in opposite direction (from DB to Tuxedo).
The OCI provides a registration API and a callback function interface. The implementation of the callback function handles the details of propagation. The process is showed as below:
1.
2.
3.
Propagating ECID Between Tuxedo and WLS
WTC provides interoperability between WLS applications and Tuxedo services. As an interface, WTC takes full responsibility of ECID’s propagation between Tuxedo and WLS.
a.
b.
c.
a.
b.
c.
Propagating ECID within Tuxedo
The ECID propagation within Tuxedo (both intra-domain and across domains) utilizes the META_TCM field in the messages. Tuxedo client, server, and domain gateway are all enhanced to support to get or set ECID in META_TCM section of a message.
Inside the Tuxedo, the ECID generation/propagation happens with following three ATMI APIs:
Generating ECID by Native/WS/Jolt clients and Domain Gateway
As boundary components, native/WS/Jolt client and domain gateway can generate the ECID for each request message once configured correctly.
Interoperability
If there is a domain/machine with an Oracle Tuxedo version lower than 12c in the call path, the end-to-end ECID propagation depends on specific user scenarios.
For example, let's consider the following interoperability scenario.
There are three domains: DOM1, DOM2 and DOM3. DOM1 and DOM3 are in Oracle Tuxedo 12c, DOM2 is in Tux11gR1; DOM1 enables both ECID_USERLOG and ECID_CREATE but DOM3 only enables ECID_USERLOG.
On one hand, if client on DOM1 invokes tpcall service1 on DOM2 and then service1 invokes tpcall service2 on DOM3 (allocating a new buffer via tpalloc), ECID will not be found in DOM3's ULOG. Thus, ECID information from DOM1 cannot be kept.
On the other hand, if client on DOM1 invokes tpcall service1 on DOM2 and then service1 invokes tpcall service2 on DOM3 (reusing the buffer with which service1 is invoked), ECID will be found in DOM3's ULOG. Thus, ECID information from DOM1 can be propagated and retrieved by DOM3.
Configurations
This section covers the following configurations to enable ECID propagation:
Enabling and Disabling ECID Propagation
In RESOURCES section of UBBCONFIG(5), the OPTIONS field is extended with new flags to enable and specify the behavior for handling the ECID.
Option 'ECID_CREATE': ECID creation functionality is enabled. The boundary nodes (including Native/WS/Jolt client and domain gateway) can generate the ECID.
Option 'ECID_USERLOG': With this option on, if not a null string, the ECID will be appended to the userlog.
If neither of above options is set, the ECID propagation around Tuxedo is enabled by default, but ECID can neither be created nor printed in ULOG in this domain. In such scenario, "tmadmin > psr -v" can be used to get the ECID. The two of above options can also be updated by MIB operation.
Configuring the Server to Propagate ECID via OCI
To perform ECID propagation to Oracle DB via OCI callback functions, the related server must be specified by a “-L” option. For example:
simpserv CLOPT="-A -L default --" SRVGRP=GROUP1 SRVID=2
Once activated with a specified "–L", a server will call the registration API of OCI for ECID propagation.
-LD or -L default
Loads default OCI library, that is, "oci.dll" for WIN32 platform and "libclntsh.so" for other platforms.
-L oci_lib_name
Loads the OCI library with the name specified by oci_lib_name. Such oci_lib_name can be an absolute path or a leaf name, which can be found through the system library path.
Tracing ECID with Tuxedo System
The userlog is enhanced to print out the ECID of current active call if 'ECID_USERLOG' is configured in UBBCONFIG. For example:
233331.lclnx16!simpserv.19461.2664420416.0: ECID <004fVWEOfCE6iKO5IjK6yf0004k8000000>: sleep 15
The tmadmin printserver (psr -v) command is enhanced to print out ECID if the server is currently in service. For example:
Group ID: GROUP1, Server ID: 1
Machine ID: SITE1
Process ID: 19461, Request Qaddr: 1009713159, Reply Qaddr: 1009713159
Server Type: USER
Prog Name: /nfs/ucfhomes/xuhchen/lclnx16/TUX12gR164/LC/bld/samples/atmi/simpapp/simpserv
Queue Name: 00001.00001
Options: ( none )
Generation: 1, Max message type: 1073741824
Creation time: Tue Sep 27 23:32:44 2011
Up time: 0:05:22
Requests done: 2
Load done: 100
Current Service: TOUPPER,(ecid: c9ca469656eb23b5:79482783:132ae1bef3b:-8000-0000000000000010)
See Also
File Formats, Data Descriptions, MIBs, and System Processes Reference

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