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>Preface</title>
7    <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8    <meta name="generator" content="DocBook XSL Stylesheets V1.62.4" />
9    <link rel="home" href="index.html" title="Getting Started with Berkeley DB Transaction Processing" />
10    <link rel="up" href="index.html" title="Getting Started with Berkeley DB Transaction Processing" />
11    <link rel="previous" href="index.html" title="Getting Started with Berkeley DB Transaction Processing" />
12    <link rel="next" href="introduction.html" title="Chapter 1. Introduction" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">Preface</th>
19        </tr>
20        <tr>
21          <td width="20%" align="left"><a accesskey="p" href="index.html">Prev</a> </td>
22          <th width="60%" align="center"> </th>
23          <td width="20%" align="right"> <a accesskey="n" href="introduction.html">Next</a></td>
24        </tr>
25      </table>
26      <hr />
27    </div>
28    <div class="preface" lang="en" xml:lang="en">
29      <div class="titlepage">
30        <div>
31          <div>
32            <h2 class="title"><a id="preface"></a>Preface</h2>
33          </div>
34        </div>
35        <div></div>
36      </div>
37      <div class="toc">
38        <p>
39          <b>Table of Contents</b>
40        </p>
41        <dl>
42          <dt>
43            <span class="sect1">
44              <a href="preface.html#conventions">Conventions Used in this Book</a>
45            </span>
46          </dt>
47          <dd>
48            <dl>
49              <dt>
50                <span class="sect2">
51                  <a href="preface.html#moreinfo">For More Information</a>
52                </span>
53              </dt>
54            </dl>
55          </dd>
56        </dl>
57      </div>
58      <p>
59        This document describes how to use transactions with your Berkeley DB
60        applications. It is intended to describe how to
61        transaction protect your application's data. The APIs used to perform this task
62        are described here, as are the environment infrastructure and administrative tasks
63        required by a transactional application. This book also
64        describes multi-threaded <span>and
65        multi-process</span> DB applications and the requirements they
66        have for deadlock detection.
67    </p>
68      <p>
69        This book is aimed at the software engineer responsible for writing a
70        transactional DB application.
71    </p>
72      <p>
73        This book assumes that you have already read and understood the
74        concepts contained in the
75        <span><i class="citetitle">Getting Started with Berkeley DB</i>
76        guide.</span>
77        
78        
79     </p>
80      <div class="sect1" lang="en" xml:lang="en">
81        <div class="titlepage">
82          <div>
83            <div>
84              <h2 class="title" style="clear: both"><a id="conventions"></a>Conventions Used in this Book</h2>
85            </div>
86          </div>
87          <div></div>
88        </div>
89        <p>
90        The following typographical conventions are used within in this manual:
91    </p>
92        <p>
93        Structure names are represented in <tt class="classname">monospaced font</tt>, as are <tt class="methodname">method
94        names</tt>. For example: "<tt class="methodname">DB-&gt;open()</tt> is a method
95		on a <tt class="classname">DB</tt> handle."
96    </p>
97        <p>
98        Variable or non-literal text is presented in <span class="emphasis"><em>italics</em></span>. For example: "Go to your
99        <span class="emphasis"><em>DB_INSTALL</em></span> directory."
100    </p>
101        <p>
102        Program examples are displayed in a <tt class="classname">monospaced font</tt> on a shaded background.
103        For example:
104    </p>
105        <pre class="programlisting">/* File: gettingstarted_common.h */
106typedef struct stock_dbs {
107    DB *inventory_dbp; /* Database containing inventory information */
108    DB *vendor_dbp;    /* Database containing vendor information */
109
110    char *db_home_dir;       /* Directory containing the database files */
111    char *inventory_db_name; /* Name of the inventory database */
112    char *vendor_db_name;    /* Name of the vendor database */
113} STOCK_DBS; </pre>
114        <p>
115        In some situations, programming examples are updated from one chapter to the next. When
116        this occurs, the new code is presented in <b class="userinput"><tt>monospaced bold</tt></b> font. For example:
117    </p>
118        <pre class="programlisting">typedef struct stock_dbs {
119    DB *inventory_dbp; /* Database containing inventory information */
120    DB *vendor_dbp;    /* Database containing vendor information */
121    <b class="userinput"><tt>DB *itemname_sdbp; /* Index based on the item name index */</tt></b>
122    char *db_home_dir;       /* Directory containing the database files */
123    <b class="userinput"><tt>char *itemname_db_name;  /* Itemname secondary database */</tt></b>
124    char *inventory_db_name; /* Name of the inventory database */
125    char *vendor_db_name;    /* Name of the vendor database */
126} STOCK_DBS; </pre>
127        <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
128          <h3 class="title">Note</h3>
129          <p>
130            Finally, notes of special interest are represented using a note block such
131            as this.
132        </p>
133        </div>
134        <div class="sect2" lang="en" xml:lang="en">
135          <div class="titlepage">
136            <div>
137              <div>
138                <h3 class="title"><a id="moreinfo"></a>For More Information</h3>
139              </div>
140            </div>
141            <div></div>
142          </div>
143          <p>
144            Beyond this manual, you may also find the following sources of information useful when building a
145            transactional DB application:
146        </p>
147          <div class="itemizedlist">
148            <ul type="disc">
149              <li>
150                <p>
151                    <a href="http://www.oracle.com/technology/documentation/berkeley-db/db/gsg/C/index.html" target="_top">
152                        Getting Started with Berkeley DB for C
153                    </a>
154                    
155                     
156
157
158                     
159                     
160                     
161                </p>
162              </li>
163              <li>
164                <p>
165                        <a href="http://www.oracle.com/technology/documentation/berkeley-db/db/gsg_db_rep/C/index.html" target="_top">
166                                Berkeley DB Getting Started with Replicated Applications for C
167                        </a>
168                        
169                        
170                </p>
171              </li>
172              <li>
173                <p>
174                    <a href="http://www.oracle.com/technology/documentation/berkeley-db/db/ref/toc.html" target="_top">
175                        Berkeley DB Programmer's Reference Guide
176                    </a>
177                </p>
178              </li>
179              <li>
180                <p>
181                    <a href="http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/frame.html" target="_top">
182                        Berkeley DB C API
183                    </a>
184                    
185                    
186
187                    
188                </p>
189              </li>
190            </ul>
191          </div>
192        </div>
193      </div>
194    </div>
195    <div class="navfooter">
196      <hr />
197      <table width="100%" summary="Navigation footer">
198        <tr>
199          <td width="40%" align="left"><a accesskey="p" href="index.html">Prev</a> </td>
200          <td width="20%" align="center">
201            <a accesskey="u" href="index.html">Up</a>
202          </td>
203          <td width="40%" align="right"> <a accesskey="n" href="introduction.html">Next</a></td>
204        </tr>
205        <tr>
206          <td width="40%" align="left" valign="top">Getting Started with Berkeley DB Transaction Processing </td>
207          <td width="20%" align="center">
208            <a accesskey="h" href="index.html">Home</a>
209          </td>
210          <td width="40%" align="right" valign="top"> Chapter 1. Introduction</td>
211        </tr>
212      </table>
213    </div>
214  </body>
215</html>
216