Job Management Partner 1/Automatic Operation GUI and Command Reference
This command forces all the databases to be deleted, re-creates them, and then recovers them using the backup data obtained by the hcmdsdbtrans command. You use this command when any of the databases is corrupted and the restoresystem and hcmdsdbtrans commands cannot restore the database.
hcmdsdbrepair
/trans backup-data
Common-Component-installation-folder\bin
Execute the command as a user with Administrator permissions.
The following table lists the return codes from the command.
| Return code | Description |
|---|---|
| 0 | The command succeeded. |
| 1 | The argument is invalid. |
| 245 | Importing the database failed. |
| 246 | The definition file is invalid. |
| 247 | An attempt to undo setup of the database failed. |
| 248 | Stopping a service or database failed. |
| 249 | The command cannot be executed on the standby node. |
| 250 | The backup data is invalid. (Some files are missing or extracting the archive file failed.) |
| 251 | The command has been interrupted due to inconsistency in the product or product version. |
| 252 | Setting up the database failed. |
| 253 | Starting the service for database failed. |
| 254 | The database cannot be re-created due to its incomplete setup. |
| 255 | The command terminated abnormally. |
The following command shows an example of how to force all the databases to be deleted, re-create them, and then recover them using backed up data:
hcmdsdbrepair /trans C:\bkfile1
All Rights Reserved. Copyright (C) 2012, 2013,Hitachi, Ltd.