berkdb dbrename API Ref

berkdb rename
	[-encrypt]
	[-encryptaes passwd]
	[-encryptany passwd]
	[-env env]
	[--]
	file
	[database
	newname]
Description(berkdb dbrename)

Renames the Berkeley DB database specified by the database name file and [database] name arguments to the new name given. If no database is specified, the physical file represented by file is renamed.

No reference count of database use is maintained by Berkeley DB. Applications should not rename databases that are currently in use.

The options are as follows:


-encrypt -encryptaes passwd -encryptany passwd -env env --

The berkdb dbrename command returns 0 on success, and in the case of error, a Tcl error is thrown.


APIRef

Copyright (c) 1996,2008 Oracle. All rights reserved.