Clearing the HADB

You may want to clear the HADB in the following circumstances:

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.

Table 0-13  hadbm clear Options 

Long Form

Short Form

Default

Description

--fast

-F

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

--spares

-s

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.

--dbpassword

-p

none

Specifies the HADB system user password. You can use --dbpasswordfile instead. For details, see "Using the hadbm Command".

--dbpasswordfile

-P

none

Specifies a file that stores the password for the HADB system user. For details, see "Using the hadbm Command".

dbname

none

hadb

Specifies the database name.


Legal Notices