Use the hadbm clearhistory command to clear the history files on the database. The directory to which the history files are to be saved must exist and must be writeable. The history file of the named database will be truncated. You can verify by checking the size of the history file. The database state remains unchanged. If a database is identified, it should already exist. If a database is not named, the default database history files are cleared. The default database is hadb.
In interactive mode, the hadbm clearhistory command prompts for a confirmation before clearing the history.
The path to where the old history files are to be saved.
The actual HADBM administation password as defined in the environment variables of the Management Agent.
The file containing the HADBM administration password and defined in your environment variables of the Management Agent. The adminstration password should be defined in the following form: HADBM_ADMINPASSWORD=password. Where password is the actual administrator password.
Identifies the URL to the Management Agent. The default is localhost:1862.
hadbm clearhistory mydatabase This command will clear the history file of the database. Type "yes" or "y" to confirm this operation, anything else to cancel: y Database history file successfully cleared
hadbm clearhistory --saveto=/var/tmp mydatabase This command will clear the history file of the database. Type "yes" or "y" to confirm this operation, anything else to cancel: y Database history file successfully cleared
specified database does not exist
directory does not exist
specified location is not a directory
directory is not writeable