Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Reference Manual

## hadbm-clearhistory(1)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | OPERANDS | EXAMPLES | EXIT STATUS | ERROR CODES | SEE ALSO

#### NAME

hadbm clearhistory– clears the history files on the database

#### SYNOPSIS

`hadbm clearhistory` [`––adminpassword=password` | `––adminpasswordfile=filename`] [`––saveto=path`] [`––agent=ma_url`] [dbname]

#### DESCRIPTION

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.

#### OPTIONS

`–w` `––adminpassword`

  The actual HADBM administration password.

`–W` `––adminpasswordfile`

  The file from which the passwords are read.

`-o` `––saveto`

  The path to where the old history files are to be saved.

`–w` `––adminpassword`

  The actual HADBM administration password.

`–W` `––adminpasswordfile`

  The file from which the passwords are read.

`–m` `––agent`

  Identifies the URL to the Management Agent. The default is localhost:1862.

#### OPERANDS

dbname

  The name of the database. The default database is hadb.

#### EXAMPLES

##### Example 1 Using clearhistory with a database identified

    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

##### Example 2 Using clearhistory with the saveto option

    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

#### EXIT STATUS

0

  command executed successfully

1

  error in executing the command

#### ERROR CODES

22002

  specified database does not exist

22111

  directory does not exist

22112

  specified location is not a directory

22113

  directory is not writeable

#### SEE ALSO

hadbm-status(1), hadbm-list(1), hadbm-addnodes(1), hadbm-clear(1), hadbm-refragment(1), hadbm-delete(1), hadbm-start(1), hadbm-restart(1), hadbm-stop(1)

J2EE SDK 1.4 Last Revised 31 Jan 2005

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | OPERANDS | EXAMPLES | EXIT STATUS | ERROR CODES | SEE ALSO

- © 2010, Oracle Corporation and/or its affiliates