1<!--$Id: admin.so,v 10.17 2001/03/02 21:01:21 bostic Exp $--> 2<!--Copyright (c) 1997,2008 Oracle. All rights reserved.--> 3<!--See the file LICENSE for redistribution information.--> 4<html> 5<head> 6<title>Berkeley DB Reference Guide: Environment infrastructure</title> 7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> 8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++"> 9</head> 10<body bgcolor=white> 11<a name="2"><!--meow--></a> 12<table width="100%"><tr valign=top> 13<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Berkeley DB Transactional Data Store Applications</dl></b></td> 14<td align=right><a href="../transapp/nested.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../transapp/deadlock.html"><img src="../../images/next.gif" alt="Next"></a> 15</td></tr></table> 16<p align=center><b>Environment infrastructure</b></p> 17<p>When building transactional applications, it is usually necessary to 18build an administrative infrastructure around the database environment. 19There are five components to this infrastructure, and each is 20supported by the Berkeley DB package in two different ways: a standalone 21utility and one or more library interfaces.</p> 22<p><ul type=disc> 23<li>Deadlock detection: <a href="../../utility/db_deadlock.html">db_deadlock</a>, 24<a href="../../api_c/lock_detect.html">DB_ENV->lock_detect</a>, <a href="../../api_c/env_set_lk_detect.html">DB_ENV->set_lk_detect</a> 25<li>Checkpoints: <a href="../../utility/db_checkpoint.html">db_checkpoint</a>, <a href="../../api_c/txn_checkpoint.html">DB_ENV->txn_checkpoint</a> 26<li>Database and log file archival: 27<a href="../../utility/db_archive.html">db_archive</a>, <a href="../../api_c/log_archive.html">DB_ENV->log_archive</a> 28<li>Log file removal: <a href="../../utility/db_archive.html">db_archive</a>, <a href="../../api_c/log_archive.html">DB_ENV->log_archive</a> 29<li>Recovery procedures: <a href="../../utility/db_recover.html">db_recover</a>, <a href="../../api_c/env_open.html">DB_ENV->open</a> 30</ul> 31<p>When writing multithreaded server applications and/or applications 32intended for download from the Web, it is usually simpler to create 33local threads that are responsible for administration of the database 34environment as scheduling is often simpler in a single-process model, 35and only a single binary need be installed and run. However, the 36supplied utilities can be generally useful tools even when the 37application is responsible for doing its own administration because 38applications rarely offer external interfaces to database 39administration. The utilities are required when programming to a Berkeley DB 40scripting interface because the scripting APIs do not always offer 41interfaces to the administrative functionality.</p> 42<table width="100%"><tr><td><br></td><td align=right><a href="../transapp/nested.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../transapp/deadlock.html"><img src="../../images/next.gif" alt="Next"></a> 43</td></tr></table> 44<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 45</body> 46</html> 47