Example of restoring a database
Restoring the database from the nodes where the backup was performed is straightforward and identical to a typical RMAN restore.
In this example, the backup images to be restored must all be accessible by the client name saturn in the image database on the master server jupiter.
Note:
This example works only if the backup is not load balanced across multiple nodes. The reason is because NB_ORA_CLIENT=$NB_ORA_CLIENT evaluates only to the node on which the RMAN script is executed.
The following example restores the entire database from any node:
RUN {
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
SEND 'NB_ORA_CLIENT=saturn,NB_ORA_SERV=jupiter';
RESTORE
DATABASE;
RECOVER
DATABASE;
RELEASE CHANNEL ch00;
}