95 lines
2.9 KiB
HTML
95 lines
2.9 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation">
|
|
<title>db2xa_recover()--Recover XA Transactions</title>
|
|
<!-- Begin Header Records ========================================== -->
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<!-- Change History: -->
|
|
<!-- YYMMDD USERID Change description -->
|
|
<!-- UNIX11 SCRIPT A converted by B2H R4.1 (346) (CMS) by V2DCIJB at -->
|
|
<!-- RCHVMW2 on 1 Jun 1999 at 16:14:12 -->
|
|
<!-- End Header Records -->
|
|
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
|
</head>
|
|
<body>
|
|
<!-- Java sync-link -->
|
|
<script type="text/javascript" language="Javascript" src="../rzahg/synch.js">
|
|
</script>
|
|
|
|
<a name="Top_Of_Page"></a>
|
|
|
|
<h2>db2xa_recover()--Recover XA Transaction Branches (Job Scoped Locks)</h2>
|
|
<div class="box" style="width: 70%;">
|
|
<br>
|
|
Syntax<br>
|
|
<pre>
|
|
#include <xa.h>
|
|
|
|
int db2xa_switch.xa_recover_entry(XID <em>*xids</em>,
|
|
long <em>count</em>, int <em>rmid</em>, long <em>flags</em>);
|
|
</pre>
|
|
|
|
<br>
|
|
Default Public Authority: *USE<br>
|
|
<!-- iddvc RMBR -->
|
|
<br>
|
|
Service Program: QTNXADTP<br>
|
|
<!-- iddvc RMBR -->
|
|
<br>
|
|
Threadsafe: Yes<br>
|
|
<!-- iddvc RMBR -->
|
|
<br>
|
|
</div>
|
|
|
|
<p>A transaction manager calls <strong>db2xa_recover()</strong> during recovery
|
|
to obtain a list of transaction branches that are currently in a prepared or
|
|
heuristically completed state. Multiple calls to this function can be made in a
|
|
single recovery scan. The <em>flags</em> parameter defines when a recovery
|
|
scan should start or end.</p>
|
|
|
|
<p>For additional information
|
|
about parameters, authorities required, return values, and error conditions,
|
|
see the <a href="dxatlrec.htm">xa_recover()</a> API.</p>
|
|
|
|
<br>
|
|
<h3>Example</h3>
|
|
<p>See <a href="../apiref/aboutapis.htm#codedisclaimer">Code disclaimer information</a>
|
|
for information pertaining to code examples.</p>
|
|
<pre>
|
|
#include <xa.h>
|
|
|
|
main() {
|
|
XID xids[10];
|
|
int rmid;
|
|
long count=10;
|
|
long flags=TMSTARTRSCAN+TMENDRSCAN;
|
|
int retcode;
|
|
extern struct xa_switch_t db2xa_switch;
|
|
|
|
retcode =
|
|
db2xa_switch.xa_recover_entry(xids, count,
|
|
rmid, flags);
|
|
}
|
|
</pre>
|
|
|
|
<br>
|
|
<hr>
|
|
API introduced: V4R3
|
|
|
|
<hr>
|
|
<center>
|
|
<table cellpadding="2" cellspacing="2">
|
|
<tr align="center">
|
|
<td valign="middle" align="center"><a href="#Top_Of_Page">Top</a> | <a href=
|
|
"unix.htm">UNIX-Type APIs</a> | <a href="aplist.htm">APIs by category</a> </td>
|
|
</tr>
|
|
</table></center>
|
|
</body>
|
|
</html>
|
|
|