Debian Codegraph @

docs/programmer_reference/transapp_admin.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>Environment infrastructure</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="transapp.html" title="Chapter 11.  Berkeley DB Transactional Data Store Applications" />
11 <link rel="prev" href="transapp_nested.html" title="Nested transactions" />
12 <link rel="next" href="transapp_deadlock.html" title="Deadlock detection" />
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">Environment infrastructure</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="transapp_nested.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 11. 
26 Berkeley DB Transactional Data Store Applications
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="transapp_deadlock.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="transapp_admin"></a>Environment infrastructure</h2>
38 </div>
39 </div>
40 </div>
41 <p>When building transactional applications, it is usually necessary to
42 build an administrative infrastructure around the database environment.
43 There are five components to this infrastructure, and each is
44 supported by the Berkeley DB package in two different ways: a standalone
45 utility and one or more library interfaces.</p>
46 <div class="itemizedlist">
47 <ul type="disc">
48 <li>Deadlock detection: <a href="../api_reference/C/db_deadlock.html" class="olink">db_deadlock</a> utility, <a href="../api_reference/C/lockdetect.html" class="olink">DB_ENV-&gt;lock_detect()</a>, <a href="../api_reference/C/envset_lk_detect.html" class="olink">DB_ENV-&gt;set_lk_detect()</a></li>
49 <li>Checkpoints: the <a href="../api_reference/C/db_checkpoint.html" class="olink">db_checkpoint</a> utility, <a href="../api_reference/C/txncheckpoint.html" class="olink">DB_ENV-&gt;txn_checkpoint()</a></li>
50 <li>Database and log file archival: the <a href="../api_reference/C/db_archive.html" class="olink">db_archive</a> utility, <a href="../api_reference/C/logarchive.html" class="olink">DB_ENV-&gt;log_archive()</a></li>
51 <li>Log file removal: <a href="../api_reference/C/db_archive.html" class="olink">db_archive</a> utility, <a href="../api_reference/C/logarchive.html" class="olink">DB_ENV-&gt;log_archive()</a></li>
52 <li>Recovery procedures: <a href="../api_reference/C/db_recover.html" class="olink">db_recover</a> utility, <a href="../api_reference/C/envopen.html" class="olink">DB_ENV-&gt;open()</a></li>
53 </ul>
54 </div>
55 <p>When writing multithreaded server applications and/or applications
56 intended for download from the Web, it is usually simpler to create
57 local threads that are responsible for administration of the database
58 environment as scheduling is often simpler in a single-process model,
59 and only a single binary need be installed and run. However, the
60 supplied utilities can be generally useful tools even when the
61 application is responsible for doing its own administration because
62 applications rarely offer external interfaces to database
63 administration. The utilities are required when programming to a Berkeley DB
64 scripting interface because the scripting APIs do not always offer
65 interfaces to the administrative functionality.</p>
66 </div>
67 <div class="navfooter">
68 <hr />
69 <table width="100%" summary="Navigation footer">
70 <tr>
71 <td width="40%" align="left"><a accesskey="p" href="transapp_nested.html">Prev</a> </td>
72 <td width="20%" align="center">
73 <a accesskey="u" href="transapp.html">Up</a>
74 </td>
75 <td width="40%" align="right"> <a accesskey="n" href="transapp_deadlock.html">Next</a></td>
76 </tr>
77 <tr>
78 <td width="40%" align="left" valign="top">Nested transactions </td>
79 <td width="20%" align="center">
80 <a accesskey="h" href="index.html">Home</a>
81 </td>
82 <td width="40%" align="right" valign="top"> Deadlock detection</td>
83 </tr>
84 </table>
85 </div>
86 </body>
87 </html>