What is retried, what is restartable, and what command you use to restart the restore depends on what failed and how serious it was. You can save some failed restores even if restartable restore is turned off. For example, if the restore fails because of a storage-manager or storage-device error, you can fix the tape drive or storage-manager problem, remount a tape, and then continue the restore.
Table 14 shows what results to expect when physical restore fails. Assume that BAR_RETRY > 1 in each case.
Table 15 shows what results to expect when logical restore fails.
Type of Error | RESTARTABLE_
RESTORE Setting |
What to Do When a Logical Restore Fails? |
---|---|---|
Database server or ON–Bar error in a cold restore (database server is still running) | ON | Issue the onbar -RESTART command.
The logical restore restarts at the last checkpoint. If this restore fails, shut down and restart the database server to initiate fast recovery of the logical logs. All logical logs not restored are lost. |
Database server or ON–Bar error (database server is still running) | ON or OFF | Issue the onbar -r -l command.
The restore should restart at the failed logical log.
If onbar -r -l still fails, shut down and restart the database server. The database server will complete fast recovery. All logical logs that were not restored are lost. If fast recovery does not work, you have to do a cold restore. |
Database server error | ON | If the cold logical restore failed, issue onbar -RESTART.
If the warm logical restore failed, issue the onbar -r -l command. If that fails, restart the entire restore from the beginning. |
Storage-manager error (IDS) | ON or OFF | ON–Bar retries each failed logical restore. If the retried restore fails, the logical restore is suspended. Fix the storage-manager error. Then issue the onbar -r -l command. The restore should restart at the failed logical log. |