You may want to clear the HADB in the following circumstances:
inetd
. If the hadbm status
command reveals that the database is Non Operational or that multiple nodes are in the Waiting state. See "Getting the Status of the HADB".
The hadbm clear
command stops the database nodes, clears the database devices, then starts the nodes. The syntax is as follows.
hadbm clear [--fast] [--spares=sparecount] --dbpassword=password |
--dbpasswordfile=file [dbname]
For example:
hadbm clear --fast --spares=2 --dbpassword secret123
The hadbm clear
command options are listed in the following table.
Long Form |
Short Form |
Default |
Description |
---|---|---|---|
|
|
not present |
If present, skips device initialization while initializing the database. Do not use if the disk storage device is corrupted or if you have just created the database and set up |
|
|
previous number of spares |
Specifies the number of spare nodes the reinitialized database will have. This number must be even and must be less than the number of nodes in the database. Spare nodes are optional, but having two or more ensures high availability. |
|
|
none |
Specifies the HADB system user password. You can use |
|
|
none |
Specifies a file that stores the password for the HADB system user. For details, see "Using the hadbm Command". |
dbname |
none |
|
Specifies the database name. |