| 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>What other services does Berkeley DB provide?</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="intro.html" title="Chapter 1. Introduction" /> |
| 11 | <link rel="prev" href="intro_need.html" title="Do you need Berkeley DB?" /> |
| 12 | <link rel="next" href="intro_distrib.html" title="What does the Berkeley DB distribution include?" /> |
| 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">What other services does Berkeley DB provide?</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="intro_need.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 1. |
| 26 | Introduction |
| 27 | </th> |
| 28 | <td width="20%" align="right"> <a accesskey="n" href="intro_distrib.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="intro_what"></a>What other services does Berkeley DB provide?</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <p>Berkeley DB also provides core database services to developers. These |
| 42 | services include:</p> |
| 43 | <div class="variablelist"> |
| 44 | <dl> |
| 45 | <dt> |
| 46 | <span class="term">Page cache management:</span> |
| 47 | </dt> |
| 48 | <dd>The page cache provides fast access to a cache of database pages, |
| 49 | handling the I/O associated with the cache to ensure that dirty pages |
| 50 | are written back to the file system and that new pages are allocated on |
| 51 | demand. Applications may use the Berkeley DB shared memory buffer manager to |
| 52 | serve their own files and pages.</dd> |
| 53 | <dt> |
| 54 | <span class="term">Transactions and logging:</span> |
| 55 | </dt> |
| 56 | <dd>The transaction and logging systems provide recoverability and atomicity |
| 57 | for multiple database operations. The transaction system uses two-phase |
| 58 | locking and write-ahead logging protocols to ensure that database |
| 59 | operations may be undone or redone in the case of application or system |
| 60 | failure. Applications may use Berkeley DB transaction and logging subsystems |
| 61 | to protect their own data structures and operations from application or |
| 62 | system failure.</dd> |
| 63 | <dt> |
| 64 | <span class="term">Locking:</span> |
| 65 | </dt> |
| 66 | <dd>The locking system provides multiple reader or single writer access to |
| 67 | objects. The Berkeley DB access methods use the locking system to acquire |
| 68 | the right to read or write database pages. Applications may use the |
| 69 | Berkeley DB locking subsystem to support their own locking needs.</dd> |
| 70 | </dl> |
| 71 | </div> |
| 72 | <p>By combining the page cache, transaction, locking, and logging systems, |
| 73 | Berkeley DB provides the same services found in much larger, more complex and |
| 74 | more expensive database systems. Berkeley DB supports multiple simultaneous |
| 75 | readers and writers and guarantees that all changes are recoverable, even |
| 76 | in the case of a catastrophic hardware failure during a database update.</p> |
| 77 | <p>Developers may select some or all of the core database services for any |
| 78 | access method or database. Therefore, it is possible to choose the |
| 79 | appropriate storage structure and the right degrees of concurrency and |
| 80 | recoverability for any application. In addition, some of the subsystems |
| 81 | (for example, the Locking subsystem) can be called separately from the |
| 82 | Berkeley DB access method. As a result, developers can integrate non-database |
| 83 | objects into their transactional applications using Berkeley DB.</p> |
| 84 | </div> |
| 85 | <div class="navfooter"> |
| 86 | <hr /> |
| 87 | <table width="100%" summary="Navigation footer"> |
| 88 | <tr> |
| 89 | <td width="40%" align="left"><a accesskey="p" href="intro_need.html">Prev</a> </td> |
| 90 | <td width="20%" align="center"> |
| 91 | <a accesskey="u" href="intro.html">Up</a> |
| 92 | </td> |
| 93 | <td width="40%" align="right"> <a accesskey="n" href="intro_distrib.html">Next</a></td> |
| 94 | </tr> |
| 95 | <tr> |
| 96 | <td width="40%" align="left" valign="top">Do you need Berkeley DB? </td> |
| 97 | <td width="20%" align="center"> |
| 98 | <a accesskey="h" href="index.html">Home</a> |
| 99 | </td> |
| 100 | <td width="40%" align="right" valign="top"> What does the Berkeley DB distribution include?</td> |
| 101 | </tr> |
| 102 | </table> |
| 103 | </div> |
| 104 | </body> |
| 105 | </html> |