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 ––dbpassword=password 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.
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 option, but having two or more ensures high availability.
The password used for the system user of the database. This password must be valid and is expected to be passed in other commands that require data access.
Identifies the file containing the password to be used for the system user of the database.
The actual HADBM administation password.
The file containing the HADBM administration password. The adminstration password is defined in the following form: HADBM_ADMINPASSWORD=password. Where password is the actual administrator password.
Identifies the URL to the Management Agent(s) (hostlist:port).
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