sun.com | docs.sun.com |  | How To Buy | My Sun | Worldwide Sites |

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

User Commands | 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 administation password.

> W adminpasswordfile

>   The file from which the HADBM administration password is 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 | Go To Top | Last Changed 22 Dec 2004

Company Info | Contact | Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.