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-restart(1)


NAME

 hadbm restart - restarts the database

SYNOPSIS

 hadbm restart [adminpassword=password | adminpasswordfile=filename] [agent=ma_url] [no-rolling] [dbname]

DESCRIPTION

Use the hadbm restart command to restart the database. Once the database is restarted, it returns to the previous state or better. If the database name is specified, the database must exist. If the database name is not specified, the default database is restarted. The default database is hadb.

In interactive mode, the hadbm restart command prompts for a confirmation before restarting 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.

-g no-rolling

This option restarts all nodes in the HADB at once with possible loss of service. If this option is not specified, the hadbm restarts the nodes one by one and maintains the availability of the HADB. If the option is specified, it stops al nodes in parallel and starts them in parallel. During this period, the HADB is not available.

OPERANDS

dbname

The name of the database. The default database is hadb.

EXAMPLES

Example 1. Using restart with a database identified
hadbm restart mydatabase
This command will restart the named database.
Type "yes" or "y" to confirm this operation, anything else to cancel: y
Database successfully restarted
Example 2. Using restart with no rolling
hadbm restartnode --no-rolling mydatabase
This command will restart the named database.
Type "yes" or "y" to confirm this operation, anything else to cancel: y
Database successfully restarted

EXIT STATUS

0

command executed successfully

1

error in executing the command

ERROR CODES

22002

specified database does not exist

22105

database is not running

22106

database could not be restarted

22107

database could not return to a previous state

22108

invalid database state

SEE ALSO

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


J2EE SDK 1.4Go To TopLast Changed 22 Dec 2004