hadbm clear [-fast] [-spares=number_of_spares] [ -adminpasswordfile=filename] [ -dbpasswordfile=filename] [-scrollprogress] [-agent=ma_url] [dbname]
Use the hadbm clear command to reinitialize all the data devices and start the database. The hadbm clear command can also be used in the following situations:
Restarting the database after a disaster. A disaster refers to double failures, where one or more mirror node pairs are down simultaneously. For example, due to a power failure, machine reboot, or some other unforeseen disaster. The hadbm status command will indicate a database that is hit by a disaster as “non-functional”.
The password provided at the time the database was created is lost during clear and the new password given in the -dbpasswordfile option will be used when accessing the database in the future. The cleared database will be in an HA Fault Tolerant or Fault Tolerant state.
In interactive mode, the hadbm clear command prompts for a confirmation before clearing the database.
The file from which the administrator user password is read. Passwords can only be supplied interactively or through the password file.
Use this option to skip device initialization to save time. Do not use if the disk storage device is corrupted. The data devices must be initialized for the first time after the database is created.
If specified, identifies the number of spares. The number must be such that there are at least two active nodes. This number of spares must be even and must be less than or equal to the number of active nodes in the database. If not specified, the original number of spare nodes found in the database instance earlier will be preserved. Spare nodes are optional, but having two or more ensures high availability.
Identifies the file containing the password to be used for the system user of the database.
Identifies the URL to the Management Agent(s) (hostlist:port).
If the -scrollprogress option is specified, the progress messages scroll down the screen, instead of being overwritten. The progress bar will not be displayed if the -––quiet option is specified. By default, progress messages are not specified.
hadbm clear Type "yes" or "y" to confirm this operation, anything else to cancel: y Database successfully cleared
hadbm clear mydatabase This command will clear the database. Type "yes" or "y" to confirm this operation, anything else to cancel: y Database successfully cleared