Sun Java System Application Server Enterprise Edition 8.1 2005Q2 High Availability Administration Guide

- Previous: Starting a Database
- Next: Restarting a Database

### Stopping a Database

When you stop and start a database in separate operations, data is unavailable while it is stopped. To keep data available, you can restart a database as described in Restarting a Database.

Stop a database to:

- Remove the database.

- Perform system maintenance that affects all HADB nodes.

Before stopping a database, either stop dependent Application Server instances that are using the database, or configure them to use a Persistence Type other than `ha`.

When you stop the database, all the running nodes in the database are stopped and the status of the database becomes Stopped. For more information about database states, see Getting the Status of HADB.

To stop a database, use the `hadbm stop` command. The command syntax is:

    hadbm stop
    [--adminpassword=password | --adminpasswordfile= file]
    [--agent=maurl]
    [dbname]

The dbname operand specifies the database name. The default is `hadb`.

See General Options for a description of command options. For more information, see hadbm-stop(1).

##### Example 3–10 Example of stopping a database

    hadbm stop

- Previous: Starting a Database
- Next: Restarting a Database

- © 2010, Oracle Corporation and/or its affiliates