recover

The recover command enables you to perform a roll-forward recovery, specifying termination conditions, of a database restored from backup to its final production location. Use this command to initiate the recovery of an online backup that has been restored separately; for example, direct from tape.

Roll-forward recovery reapplies transactions in the journals; that is, all database activity since a full backup was taken.

The syntax of the recover command in the jdbutilb command line is as follows.

jdbutilb path=database-path
         ini=initialization-file-name
         recover
         [recoverTo=date time|lastJournal=journal-file-number
                    |lastSerialNumber=audit-record-number]
         [clearSDSRole]
         [nostatus]

The following example shows the use of the recover command in the jdbutilb command line to recover all committed transactions up to 8:41am on 14 July 2011.

jdbutilb path=d:\jade\newdb ini=d:\jade\jade.ini recover recoverTo=14\07\2011 08:41:09

By default, the recovery command applies all committed transactions contained in journals up to and including the latest current transaction journal, unless you specify the optional recoverTo argument described earlier in this chapter.

For more details, see "Recovery Concepts and Strategies" and "Using the Initiate Recovery Command", elsewhere in this document.