Background documentationautorecover Locate this document in the navigation structure

 

You start the automatic recovery of the database instance.

The system uses the backup history to determine which backups to use for the recovery. If the backups are files or were created with third-party backup tools, the system also checks whether the corresponding backups can be accessed.

Prerequisites

  • You have the server authorization Recovery.

  • You have opened a database session (see: db_connect).

Structure

autorecover [LOG] [UNTIL <date> <time>] [<backup_spec>]

<backup_spec> :: = <key_label_spec> | IBID <backup_ID>

<key_label_spec> :: = KEY <key> LABEL <label>

Options

Option

Description

LOG

Only log backups are used to recover the database instance.

The Database Manager default value uses data backups and log backups.

UNTIL <date> <time>

<date> ::= <yyyymmdd>

<time> ::= <hhmmss>

All database system content up to this point in time will be recovered.

<date>: year, month, day

<time>: hours, minutes, seconds

If you do not specify this option, the Database Manager uses all available data backups and log backups and the content of the Log-Volume to restore the most recent possible state of the database system.

KEY <key>

Key of the first backup to be read

You can find this value in the backup history.

LABEL <label>

Backup ID of the first backup to be read

You can find this value in the backup history.

IBID <backup_ID>

Backup ID consisting of a <key> and <label>, separated by a vertical slash (|)

This notation refers to the output in the backup history and makes it possible to simply copy this specification from the backup history to the DBM command.

Result

OK

...

...

Values for the Reply Fields

Value

Description

Date

Date

Time

Start time for backup

Server

Name of the database computer

Database

Name of the database

Kernel Version

Version of the database kernel

Pages Transferred

Number of pages transferred

Pages Left

Number of pages still to be transferred

Volumes

Number of data carriers used

Medianame

Name of the backup template

Location

File or device name

Errortext

Error message text

See also:

Messages documentation

Label

Backup ID

Is Consistent

Only for data backup: Backup is internally consistent

First LOG Page

For data backup: first page of log backup to be read

For log backup: first page saved in log

Last LOG Page

For log backup only: last page saved in log

DB Stamp 1 Date DB Stamp 1 Time

Time stamp for first page of log backup

DB Stamp 2 Date DB Stamp 2 Time

Time stamp for last page of log backup

Page Count

Total number of pages backed up

Devices Used

Number of backup devices used

Database ID

Database ID used to identify data and log backups which belong together

In the event of errors, see Reply Format.

More Information

Database Administration, Restoring Databases