| 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>Chapter 13. Distributed 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="index.html" title="Berkeley DB Programmer's Reference Guide" /> |
| 11 | <link rel="prev" href="rep_ex_chan.html" title="Ex_rep_chan: a Replication Manager channel example" /> |
| 12 | <link rel="next" href="ch13s02.html" title="Berkeley DB XA Implementation" /> |
| 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">Chapter 13. |
| 22 | Distributed Transactions |
| 23 | </th> |
| 24 | </tr> |
| 25 | <tr> |
| 26 | <td width="20%" align="left"><a accesskey="p" href="rep_ex_chan.html">Prev</a> </td> |
| 27 | <th width="60%" align="center"> </th> |
| 28 | <td width="20%" align="right"> <a accesskey="n" href="ch13s02.html">Next</a></td> |
| 29 | </tr> |
| 30 | </table> |
| 31 | <hr /> |
| 32 | </div> |
| 33 | <div class="chapter" lang="en" xml:lang="en"> |
| 34 | <div class="titlepage"> |
| 35 | <div> |
| 36 | <div> |
| 37 | <h2 class="title"><a id="xa"></a>Chapter 13. |
| 38 | Distributed Transactions |
| 39 | </h2> |
| 40 | </div> |
| 41 | </div> |
| 42 | </div> |
| 43 | <div class="toc"> |
| 44 | <p> |
| 45 | <b>Table of Contents</b> |
| 46 | </p> |
| 47 | <dl> |
| 48 | <dt> |
| 49 | <span class="sect1"> |
| 50 | <a href="xa.html#xa_intro">Introduction</a> |
| 51 | </span> |
| 52 | </dt> |
| 53 | <dt> |
| 54 | <span class="sect1"> |
| 55 | <a href="ch13s02.html">Berkeley DB XA Implementation</a> |
| 56 | </span> |
| 57 | </dt> |
| 58 | <dt> |
| 59 | <span class="sect1"> |
| 60 | <a href="xa_build.html">Building a Global Transaction Manager</a> |
| 61 | </span> |
| 62 | </dt> |
| 63 | <dd> |
| 64 | <dl> |
| 65 | <dt> |
| 66 | <span class="sect2"> |
| 67 | <a href="xa_build.html#idp52778488">Communicating with multiple Berkeley DB environments</a> |
| 68 | </span> |
| 69 | </dt> |
| 70 | <dt> |
| 71 | <span class="sect2"> |
| 72 | <a href="xa_build.html#idp52779432">Recovering from GTM failure</a> |
| 73 | </span> |
| 74 | </dt> |
| 75 | <dt> |
| 76 | <span class="sect2"> |
| 77 | <a href="xa_build.html#idp52703176">Managing the Global Transaction ID (GID) name space</a> |
| 78 | </span> |
| 79 | </dt> |
| 80 | <dt> |
| 81 | <span class="sect2"> |
| 82 | <a href="xa_build.html#idp52758336">Maintaining state for each distributed transaction.</a> |
| 83 | </span> |
| 84 | </dt> |
| 85 | <dt> |
| 86 | <span class="sect2"> |
| 87 | <a href="xa_build.html#idp52777008">Recovering from the failure of a single environment</a> |
| 88 | </span> |
| 89 | </dt> |
| 90 | <dt> |
| 91 | <span class="sect2"> |
| 92 | <a href="xa_build.html#idp52779896">Recovering from GTM failure</a> |
| 93 | </span> |
| 94 | </dt> |
| 95 | </dl> |
| 96 | </dd> |
| 97 | <dt> |
| 98 | <span class="sect1"> |
| 99 | <a href="xa_xa_intro.html">XA Introduction</a> |
| 100 | </span> |
| 101 | </dt> |
| 102 | <dt> |
| 103 | <span class="sect1"> |
| 104 | <a href="xa_xa_config.html">Configuring Berkeley DB with the Tuxedo System</a> |
| 105 | </span> |
| 106 | </dt> |
| 107 | <dd> |
| 108 | <dl> |
| 109 | <dt> |
| 110 | <span class="sect2"> |
| 111 | <a href="xa_xa_config.html#idp52786896">Update the Resource Manager File in Tuxedo</a> |
| 112 | </span> |
| 113 | </dt> |
| 114 | <dt> |
| 115 | <span class="sect2"> |
| 116 | <a href="xa_xa_config.html#idp52812512">Build the Transaction Manager Server</a> |
| 117 | </span> |
| 118 | </dt> |
| 119 | <dt> |
| 120 | <span class="sect2"> |
| 121 | <a href="xa_xa_config.html#idp52759288">Update the UBBCONFIG File</a> |
| 122 | </span> |
| 123 | </dt> |
| 124 | </dl> |
| 125 | </dd> |
| 126 | <dt> |
| 127 | <span class="sect1"> |
| 128 | <a href="xa_xa_restrict.html">Restrictions on XA Transactions</a> |
| 129 | </span> |
| 130 | </dt> |
| 131 | <dt> |
| 132 | <span class="sect1"> |
| 133 | <a href="xa_faq.html">XA: Frequently Asked Questions</a> |
| 134 | </span> |
| 135 | </dt> |
| 136 | </dl> |
| 137 | </div> |
| 138 | <div class="sect1" lang="en" xml:lang="en"> |
| 139 | <div class="titlepage"> |
| 140 | <div> |
| 141 | <div> |
| 142 | <h2 class="title" style="clear: both"><a id="xa_intro"></a>Introduction</h2> |
| 143 | </div> |
| 144 | </div> |
| 145 | </div> |
| 146 | <p>An application must use distributed transactions whenever it wants transactional semantics either |
| 147 | across operations in multiple Berkeley DB environments (even if they are on the same machine) |
| 148 | or across operations in Berkeley DB and some other database systems (for example, Oracle server). |
| 149 | Berkeley DB provides support for distributed transactions using a two-phase |
| 150 | commit protocol. In order to use the two-phase commit feature of Berkeley DB, an application |
| 151 | must either implement its own global transaction manager or use an |
| 152 | XA-compliant transaction manager such as Oracle Tuxedo (as Berkeley DB can act as an XA-compliant |
| 153 | resource manager). |
| 154 | </p> |
| 155 | <p>This chapter explains Berkeley DB's XA-compliant resource manager, which can be used in any X/Open |
| 156 | distributed transaction processing system, and explains how to configure |
| 157 | Oracle Tuxedo to use the Berkeley DB resource manager. |
| 158 | </p> |
| 159 | </div> |
| 160 | </div> |
| 161 | <div class="navfooter"> |
| 162 | <hr /> |
| 163 | <table width="100%" summary="Navigation footer"> |
| 164 | <tr> |
| 165 | <td width="40%" align="left"><a accesskey="p" href="rep_ex_chan.html">Prev</a> </td> |
| 166 | <td width="20%" align="center"> </td> |
| 167 | <td width="40%" align="right"> <a accesskey="n" href="ch13s02.html">Next</a></td> |
| 168 | </tr> |
| 169 | <tr> |
| 170 | <td width="40%" align="left" valign="top">Ex_rep_chan: a Replication Manager |
| 171 | channel example </td> |
| 172 | <td width="20%" align="center"> |
| 173 | <a accesskey="h" href="index.html">Home</a> |
| 174 | </td> |
| 175 | <td width="40%" align="right" valign="top"> Berkeley DB XA Implementation</td> |
| 176 | </tr> |
| 177 | </table> |
| 178 | </div> |
| 179 | </body> |
| 180 | </html> |