Having restored the most recent database save using option 1 on the Database Recovery menu, you must now carry out this procedure to replay all changes logged since the last save so as to bring the database up to date.
Note: tlmenu can only restore complete
clean logs. To selectively restore from a clean log, use the
y
to
start the restore procedure.tlmenu 'looks' for the first clean log on the database disk. This will be the clean log that was active at the time that the save was carried out. It will therefore be incomplete. Hence, a message prompt similar to the following is displayed:
Clean Log CLOG990730-05 does not exist on disk, or is incomplete on disk. Do you want to restore Clean Log CLOG990730-05 from tape (y/n/q) ? :
Enter y
to continue with the restore.
You are then asked to confirm that the correct tape is loaded on the selected tape device:
Is correct tape mounted on tape unit n (y/n/q) ? :
Ensure that the correct tape is loaded onto the selected device, then
enter y
to load the clean log onto the database.
You are then prompted to replay updates from the clean log onto the database with a prompt similar to:
Do you want to tlrestore CLOG990730-05 (y/n/q) :
where CLOG990730-05 is the clean log just loaded onto
the database. Enter y
to continue with the restore.
The clean log is then restored and if the TL-REJECT file does not exist, it is created. Messages similar to the following are displayed:
Transaction logging restore of CLOG990730-05 complete 149087 applied 1 rejected Next log CLOG990730-06
You are then prompted to load the next clean log in sequence either from tape, or from disk. Repeat steps 2 to 6 until you reach the last clean log before Transaction Logging was stopped, when you are prompted with:
Clean Log CLOG990730-0n exists in Clean Log Directory. Do you want to create a D-ptr to it on the database (y/n/q) ? :
The most
recent clean log will still be on your system, but the recently restored save
will not contain a y
to create the pointer.
You are then prompted:
Do you want to tlrestore CLOG990730-0n (y/n/q) ? :
Enter y
to start the restore. The last clean log is then restored, so that the database
is fully recovered. Now you must start logging again using option 2 on the
Configuration and Setup menu.