Debian Codegraph @

docs/programmer_reference/xa_xa_restrict.html

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>Restrictions on XA Transactions</title>
7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB Programmer's Reference Guide" />
10 <link rel="up" href="xa.html" title="Chapter 13.  Distributed Transactions" />
11 <link rel="prev" href="xa_xa_config.html" title="Configuring Berkeley DB with the Tuxedo System" />
12 <link rel="next" href="xa_faq.html" title="XA: Frequently Asked Questions" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">Restrictions on XA Transactions</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="xa_xa_config.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 13. 
26 Distributed Transactions
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="xa_faq.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="xa_xa_restrict"></a>Restrictions on XA Transactions</h2>
38 </div>
39 </div>
40 </div>
41 <p>
42 When you are using Berkeley DB for XA transactions, there are a few
43 restrictions you should be aware of:
44 </p>
45 <div class="itemizedlist">
46 <ul type="disc">
47 <li>
48 <p>
49 Configure environment using the <a href="../api_reference/C/configuration_reference.html" class="olink">DB_CONFIG</a> file
50 </p>
51 <p>
52 For most options, you must configure your environment via
53 the <a href="../api_reference/C/configuration_reference.html" class="olink">DB_CONFIG</a> file because an XA application or server cannot
54 control the environment creation.
55 </p>
56 </li>
57 <li>
58 <p>
59 Snapshot isolation must be configured for the entire
60 environment.
61 </p>
62 <p>
63 Transactions managed by the Berkeley DB X/open compliant XA
64 resource manager can be configured for transaction
65 snapshots using either database open flags or the <a href="../api_reference/C/configuration_reference.html" class="olink">DB_CONFIG</a> file
66 file. To configure using database open flags, open the XA
67 managed database with the flag <a href="../api_reference/C/dbopen.html#dbopen_DB_MULTIVERSION" class="olink">DB_MULTIVERSION</a>. When using
68 DB_CONFIG, include both of the following lines:
69 </p>
70 <pre class="programlisting">set_flags DB_MULTIVERSION
71 set_flags DB_TXN_SNAPSHOT</pre>
72 <p>
73 Note that both methods will results in all transactions
74 using transaction snapshots, there is no way to enable
75 transaction snapshots in just a subset of XA managed
76 transactions.
77 </p>
78 </li>
79 <li>
80 <p>No in-memory logging</p>
81 <p>
82 Upon return from xa_open, Berkeley DB checks to ensure
83 there is no in-memory logging. If in-memory logging is
84 detected, a FAILURE message is returned to the application.
85 </p>
86 </li>
87 <li>
88 <p>
89 No application-level child transactions
90 </p>
91 <p>
92 Berkeley DB verifies in the xa_start and xa_end calls that no
93 XA transaction has a parent. If application-level child
94 transactions are detected, a FAILURE message is returned to the
95 application.
96 </p>
97 </li>
98 <li>
99 <p>
100 All database-level operations, such as create, rename, and
101 remove, must be performed in local BDB transactions, not
102 distributed XA transactions
103 </p>
104 <p>
105 Berkeley DB checks that there is no XA transaction
106 currently active during these operations, and if detected,
107 a FAILURE message is returned to the application.
108 </p>
109 </li>
110 <li>
111 <p>
112 Close cursors before a service invocation returns
113 </p>
114 <p>
115 Berkeley DB checks in the <code class="literal">xa_end</code> call
116 that the <code class="literal">DB_TXN</code> has no active cursors
117 open and and if detected, a FAILURE message is returned to
118 the application.
119 </p>
120 </li>
121 </ul>
122 </div>
123 </div>
124 <div class="navfooter">
125 <hr />
126 <table width="100%" summary="Navigation footer">
127 <tr>
128 <td width="40%" align="left"><a accesskey="p" href="xa_xa_config.html">Prev</a> </td>
129 <td width="20%" align="center">
130 <a accesskey="u" href="xa.html">Up</a>
131 </td>
132 <td width="40%" align="right"> <a accesskey="n" href="xa_faq.html">Next</a></td>
133 </tr>
134 <tr>
135 <td width="40%" align="left" valign="top">Configuring Berkeley DB with the Tuxedo System </td>
136 <td width="20%" align="center">
137 <a accesskey="h" href="index.html">Home</a>
138 </td>
139 <td width="40%" align="right" valign="top"> XA: Frequently Asked Questions</td>
140 </tr>
141 </table>
142 </div>
143 </body>
144 </html>