04.04.2013 Views

Addressing OLTP Solutions with CICS: The Transaction Server ... - Ibm

Addressing OLTP Solutions with CICS: The Transaction Server ... - Ibm

Addressing OLTP Solutions with CICS: The Transaction Server ... - Ibm

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

92 <strong>CICS</strong> for AIX as the <strong>Transaction</strong> <strong>Server</strong><br />

database will be accessed as a non-XA database even though the RDBMS may<br />

be XA capable.<br />

Figure 27 shows the relationship between <strong>CICS</strong> and a resource manager for<br />

both an XA- and a non-XA-enabled database. In the case of the XA-enabled<br />

database, transactional information is exchanged between <strong>CICS</strong> and the<br />

resource manager. <strong>The</strong>re is no such exchange for the non-XA-enabled<br />

database.<br />

Figure 27. XA-Enabled and Non-XA-Enabled Relational Databases<br />

If an XA-enabled database connection has been defined in a <strong>CICS</strong> for AIX region,<br />

that connection will always be used. It is not possible to deactivate the use of<br />

the XA interface once the region has started. If you want to use a non-XA<br />

definition, the entry must be removed from the XAD stanza file, and the <strong>CICS</strong> for<br />

AIX region must be restarted.<br />

Simultaneous access to an XA-enabled database and a non-XA-enabled<br />

database from a <strong>CICS</strong> for AIX region is not supported, that is, only databases<br />

defined in the XAD entry for a <strong>CICS</strong> region can be accessed by a transaction<br />

running <strong>with</strong>in that region.<br />

You can use a non-XA connection to the second database concurrently <strong>with</strong> an<br />

XA connection to the first database, that is, one-phase and two-phase supporting<br />

databases can be accessed concurrently <strong>with</strong>in a transaction, but the one-phase<br />

supporting database is restricted to read-only access. <strong>CICS</strong> establishes implicit<br />

connection to the first database through the XA interface according to the XAD<br />

entry during <strong>CICS</strong> startup time. To connect to the second database, you have to<br />

connect explicitly by using an EXEC SQL CONNECT call. To reconnect to the first<br />

database, you have to connect to it explicitly by using an EXEC SQL CONNECT<br />

call even though the first database is defined in the XAD entry.<br />

Table 5 on page 93 compares an XA-enabled relational database and a<br />

non-XA-enabled relational database. <strong>The</strong> resource manager is DB2 for AIX.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!