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

## hadbm-deletedomain(1)

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

#### NAME

hadbm deletedomain– removes the HADB management domain

#### SYNOPSIS

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

#### DESCRIPTION

Before using the `hadbm deletedomain` command, the following prerequisites must be met:

- An HADB management domain must already exist

- All agents in the domain must be running

- No databases exist in the domain

After successfully executing , the `hadbm deletedomain` command, the management agents of the removed hosts are stopped, and the repository of the deleted hosts is cleaned up. If the agents are restarted, they will not be part of any domain. To have the restarted agents associated with a domain, create a new management domain using the `hadbm createdomain` command.

#### 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.

#### EXAMPLES

##### Example 1 Deleting the Management Domain

    hadbm deletedomain
    This command will delete the domain host1,host2,host3.
    Type "yes" or "y" to confirm this
    operation, anything else to cancel: y
    Domain hostlist has been deleted.

#### EXIT STATUS

0

  command executed successfully

1

  error in executing the command

#### ERROR CODES

22192

  the management domain does not exist

22194

  hosts cannot be removed because they contain databases

22196

  the URL used to connect to management agents spans hosts which are not in the management domain

#### SEE ALSO

hadbm(1), hadbm-create(1), hadbm-createdomain(1), hadbm-extenddomain(1), hadbm-listdomain(1), hadbm-reducedomain(1)

J2EE SDK 1.4 Last Revised 31 Jan 2005

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

- © 2010, Oracle Corporation and/or its affiliates