env txn |
env txn [-nosync] [-nowait] [-parent txnid] [-sync]Description(env txn)
The env txn command begins a transaction. The returned transaction handle is bound to a Tcl command of the form env.txnX, where X is an integer starting at 0 (for example, env0.txn0 and env0.txn1). It is through this Tcl command that the script accesses the transaction methods.
The options are as follows:
This behavior may be set for an entire Berkeley DB environment as part of the berkdb env call.
This behavior is the default for Berkeley DB environments unless the -nosync option was specified to the berkdb env call.
The env txn command returns a transaction handle on success.
In the case of error, a Tcl error is thrown.
Copyright (c) 1996,2008 Oracle. All rights reserved.