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

- NAME
- SYNOPSIS
- DESCRIPTION
- OPTIONS
- OPERANDS
- EXAMPLES
- EXIT STATUS
- ERROR CODES
- SEE ALSO

## NAME

> hadbm restartnode - restarts the specified node

## SYNOPSIS

> `hadbm restartnode` [adminpassword=password | adminpasswordfile=filename] [agent=ma_url] [startlevel=level] node_number [dbname]

## DESCRIPTION

> Use the `hadbm restartnode` command to restart the node. The node is restarted by running the startup procedure on the node. The mirror node of the node to be restarted must be up. The node is restarted in the specified start level. The start level indicates the environmental conditions the node should take into consideration while starting. The valid start levels are:

> Start Level | Description
> --- | ---
> normal (default) | This start level is used when the node has been stopped earlier in a controlled way (default).
> repair | This start level forces an active node to repair data from its mirror node.
> clear | This start level reinitializes the devices for the node, and forces a repair of data from its mirror node.

> In interactive mode, the `hadbm restartnode` command prompts for a confirmation before restarting the node.

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

> l startlevel

>   Identifies the start level to be used to restart the named node. The default start level is normal.

## OPERANDS

> node_number

>   A positive integer. The node number must be an existing node that is in a running state in the database.

> dbname

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

## EXAMPLES

> Example 1. Using restartnode on the default database

> > >     hadbm restartnode 2
> > >     This command will restart the node.
> > >     Type "yes" or "y" to confirm this operation, anything else to cancel: y
> > >     Node successfully restarted

> Example 2. Using restartnode with a database identified

> > >     hadbm restartnode 2 mydatabase
> > >     This command will restart the node.
> > >     Type "yes" or "y" to confirm this operation, anything else to cancel: y
> > >     Node successfully restarted

## EXIT STATUS

> 0

>   command executed successfully

> 1

>   error in executing the command

## ERROR CODES

> 22002

>   specified database does not exist

> 22082

>   start level is not a recognized level

> 22087

>   mirror node of the specified node is not running

> 22088

>   node is not running

> 22091

>   node could not be restarted

## SEE ALSO

> `hadbm-addnodes`(1), `hadbm-list`(1), `hadbm-startnode`(1), `hadbm-stopnode`(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.