Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

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 Commandshadbm-stop(1)


NAME

 hadbm stop - gracefully stops the database

SYNOPSIS

 hadbm stop [adminpassword=password | adminpasswordfile=filename] [agent=ma_url] [dbname]

DESCRIPTION

Use the hadbm stop command to stop the database gracefully. It is a good practice to stop the database if some maintenance activity is planned that affects the mirror nodes simultaneously. The data is intact in a database that is stopped gracefully, in contrast to the one that has not been stopped gracefully. Once you stop the database using the hadbm stop command, use the hadbm start command to start the database. If the database name is specified, the named database must exist. If the database name is not identified, the default database is used. The default database is hadb.

In interactive mode, the hadbm stop command prompts for a confirmation before stopping the node.

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 stop with a database identified
hadbm stop mydatabase
This command will stop the named database. 
Type "yes" or "y" to confirm this operation, anything else to cancel: y
Database successfully stopped

EXIT STATUS

0

command executed successfully

1

error in executing the command

ERROR CODES

22002

specified database does not exist

22101

database could not be stopped

22102

database is already in a stopped state

22103

database is not fully stopped

SEE ALSO

hadbm-addnodes(1), hadbm-clear(1), hadbm-delete(1), hadbm-list(1), hadbm-refragment(1), hadbm-restart(1), hadbm-start(1), hadbm-status(1)


J2EE SDK 1.4Go To TopLast Changed 31 Jan 2005