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

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

## NAME

> hadbm stopnode - gracefully stops the specified node

## SYNOPSIS

> `hadbm stopnode` [adminpassword=password | adminpasswordfile=filename] [agent=ma_url] [no-repair] node_number [dbname]

## DESCRIPTION

> The `hadbm stopnode` command stops the node gracefully. The mirror node of the node that is to be stopped must be running. If a node's mirror node is not up, the node will not be stopped and an error message is displayed. By default, a spare node can replace the stopped node by copying the data from the stopped node's mirror. If there is no spare available, an error message is displayed.

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

> R no-repair

>   If specified, a spare will not replace the stopping node.

## OPERANDS

> node_number

>   A positive integer. The node number of the node to be stopped.

> dbname

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

## EXAMPLES

> Example 1. Using stopnode

> > >     hadbm stopnode 1
> > >     This command will stop the node.
> > >     Type "yes" or "y" to confirm this operation, anything else to cancel: y
> > >     Node successfully stopped

> Example 2. Using stopnode with no-repair option

> > >     hadbm stopnode --no-repair 1 mydatabase
> > >     This command will stop the node.
> > >     Type "yes" or "y" to confirm this operation, anything else to cancel: y
> > >     hadbm:Info 22202 Repair was not initiated while stopping the node {0}.

## EXIT STATUS

> 0

>   command executed successfully

> 1

>   error in executing the command

## ERROR CODES

> 22002

>   specified database does not exist

> 22085

>   no spare to pickup (if no-repair is specified)

> 22086

>   node could not be stopped

> 22087

>   no mirror node

> 22088

>   node is not running

> 22202

>   repair not initiated

## SEE ALSO

> `hadbm-get`(1), `hadbm-clear`(1), `hadbm-addnodes`(1), `hadbm-restartnode`(1), `hadbm-start`(1), `hadbm-startnode`(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.