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