restoreJournal

The restoreJournal command initiates a restore of the transaction journal file specified in the journal argument.

Information or errors from the backup operation are recorded in the recovery.log file located in the default database directory (specified by using the path argument).

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

jdbutilb path=database-path
         ini=initialization-file-name
         restoreJournal
         backupDir=backup-directory
         journal=log-file-number
         [lastJournal=journal-file-number]
         [nostatus]

The following example shows the use of the restoreJournal command in the jdbutilb command line to restore transaction journal number 45 from the e:\jade\backup230304 backup directory.

jdbutilb path=d:\testjade\db ini=d:\testjade\jade.ini restoreJournal backupDir=e:\jade\backup230304 journal=45 nostatus

In this example, the restore operation expects to find the database control file in the d:\testjade\db directory and the transaction journal will be restored to the current log directory for the database.

For more details, see "Using the Restore Journals Command", earlier in this chapter.