Hitachi

JP1 Version 12 JP1/Automatic Operation Command and API Reference 


1.7.2 hcmds64dbrepair (re-creating the database)

Description

This command forces all the databases to be deleted, re-creates them, and then recovers them using the backup data obtained by the hcmds64dbtrans command. You use this command if any of the databases is corrupted and using the restoresystem command and the hcmds64dbtrans command with the import option specified cannot restore the database.

Syntax

hcmds64dbrepair
     /trans backup-data

Arguments

/trans backup-data

This option specifies the backup data obtained using the hcmds64dbtrans command. Make sure that you specify the path specified in the /workpath or file option of the hcmds64dbtrans command.

Located in

In Windows:

Common-Component-installation-folder\bin

In Linux:

/opt/HiCommand/Base64/bin

Execute permission

Execute the command as a user with Administrator or root permissions.

Remarks

Return code

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.

Example

The following example shows how to use the command to force all the databases to be deleted, re-create them, and then recover them by using backed up data, in Windows:

hcmds64dbrepair /trans C:\bkfile1