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

## hadbm-delete(1)

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

#### NAME

hadbm delete– removes the database

#### SYNOPSIS

`hadbm delete` [`––adminpassword=password` | `––adminpasswordfile=filename`] [`––agent=ma_url`] [dbname]

#### DESCRIPTION

Use the `hadbm delete` command to remove the database, configuration files, device files, history and log files. If a database is identified, it should already exist and should be in a stopped state. If a database is not named, the default database is used. The default database is hadb.

In interactive mode, the `hadbm delete` command prompts for a confirmation before removing the database.

#### OPTIONS

`–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 delete

    hadbm delete
    This command will remove the database and all configuration,
    history and log files. Type "yes" or "y" to confirm this
    operation, anything else to cancel: y
    Database successfully deleted

##### Example 2 Using delete with a database identified

    hadbm delete mydatabase
    This command will remove the database and all configuration,
    history and log files. Type "yes" or "y" to confirm this
    operation, anything else to cancel: y
    Database successfully deleted

#### EXIT STATUS

0

  command executed successfully

1

  error in executing the command

#### ERROR CODES

22002

  specified database does not exist

22065

  database not in a stopped state

22066

  database could not be removed

#### SEE ALSO

hadbm-addnodes(1), hadbm-clear(1), hadbm-create(1), hadbm-list(1), hadbm-refragment(1), hadbm-restart(1), hadbm-start(1), hadbm-status(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