About restoring archive logs
You can use the typical RMAN script to restore the archive logs under the following circumstances:
If the remote archived log destinations allow write access.
See Figure: Non-CFS local archiving scheme with archive sharing.
If the archive logs reside on a CFS.
In the examples that follow, the client is saturn and the server is jupiter. The backups are stored under the client name saturn.
The following example restores all of the archive logs:
RUN {
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
SEND 'NB_ORA_CLIENT=saturn,NB_ORA_SERV=jupiter';
RESTORE
ARCHIVELOG ALL;
RELEASE CHANNEL ch00;
}If the remote archive logs destinations do not allow write access, use a script such as the following to restore the archive logs:
RUN {
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
SEND 'NB_ORA_CLIENT=saturn,NB_ORA_SERV=jupiter';
SET ARCHIVELOG DESTINATION TO <directory>;
RESTORE
ARCHIVELOG ALL;
RELEASE CHANNEL ch00;
}Where <directory> is the directory into which the archive logs are restored.
Use a script like the preceding one if your configuration is a configuration shown in one of the following topics: