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

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