3
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
4
<!--All rights reserved.-->
5
<!--See the file LICENSE for redistribution information.-->
8
<title>Berkeley DB: env close</title>
9
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
10
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
13
<a name="2"><!--meow--></a>
14
<table width="100%"><tr valign=top>
16
<h1><i>env</i> <b>close</b></h1>
19
<a href="../api_tcl/tcl_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
26
<p>Close the Berkeley DB environment, freeing any allocated resources and closing
27
any underlying subsystems.
28
<p>This does not imply closing any databases that were opened in the
30
<p>Where the environment was initialized with the <b>-txn</b> option,
31
calling <i>env</i> <b>close</b> does not release any locks still held by the
32
closing process, providing functionality for long-lived locks.
33
<p>After <i>env</i> <b>close</b> has been called the <b>env</b> handle may not be
35
<p>The <i>env</i> <b>close</b> command returns 0 on success, and in the case of error, a Tcl error
38
<table width="100%"><tr><td><br></td><td align=right>
39
<a href="../api_tcl/tcl_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
41
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>