Hitachi

JP1 Version 12 JP1/Integrated Management 2 - Manager Command and Definition File Reference


jimdbrecovery

Organization of this page

Function

This command recovers a database from its backup. The command can recover the following types of data:

Recovery for error recovery

In the event of a database failure, the command recovers the database from backup data that was acquired previously.

Recovery for expansion

Before you expand the size of a database, temporarily back up the data.

Format

jimdbrecovery -i backup-file-name
                -m {MAINT|EXPAND}
                [-h logical-host-name]
                [-q]

Execution permission

In Windows: Administrator permissions (if the Windows UAC feature is enabled, the command is executed from the administrator console)

In UNIX: Superuser permissions

Storage directory

In Windows:

Manager-path\bin\imdb\

In UNIX:

/opt/jp1imm/bin/imdb/

Arguments

-i backup-file-name

Specifies the absolute path name of the file to which the database was backed up by the jimdbbackup command. The characters permitted for the file name are alphanumeric characters, the underscore (_), dot (.), hash mark (#), and at mark (@). You must specify a logical drive for the backup file. This option is mandatory.

An error results if you specify a network drive, a UNC path, or a Windows reserved device file.

-m {MAINT|EXPAND}

Specifies the database recovery format. The permitted characters are uppercase letters. This option is mandatory.

  • MAINT: Specifies recovery for error recovery

  • EXPAND: Specifies recovery for expansion

When you execute recovery for error recovery, specify the backup file that was acquired by a backup for error recovery; when you execute recovery for expansion, specify the backup file that was acquired by a backup for expansion. An error results if the specified argument does not match the type of backup file.

-h logical-host-name

When you are operating in a cluster system, this option specifies the logical host name of the host where the command is executed. The command recovers the database that corresponds to the specified logical host. If this option is omitted, the logical host name specified in the JP1_HOSTNAME environment variable is assumed. If the JP1_HOSTNAME environment variable is not specified, the physical host name is assumed. If you are not using a cluster system, specification of this option is not needed. Note that JP1_DEFAULT cannot be specified for the logical host name. In addition, the logical host name is case sensitive.

-q

Specifies that the command is to be executed without requesting confirmation from the user.

Return values

0

Recovery terminated normally

1

Recovery terminated abnormally

Notes