berkdb dbrename

berkdb dbrename
	[-encryptaes passwd]
	[-encryptany passwd]
	[-env env]

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:

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