About backing up a database
If you are in a RAC environment and you chose one of the archive log schemes that are described in the previous topic, you can perform a backup with typical RMAN scripts.
In the following example, RMAN backs up the database, including all of the archive logs. This example assumes that the archive logs are accessible by each node in the cluster. If they are not, then the archive logs need to be backed up separately on each node.
Note:
This example works only if the backup is not load balanced across multiple nodes, because NB_ORA_CLIENT=$NB_ORA_CLIENT evaluates only to the node on which the RMAN script is executed.
RUN
{
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';SEND 'NB_ORA_CLIENT=$NB_ORA_CLIENT,NB_ORA_SERV=$NB_ORA_SERV';
BACKUP
DATABASE;
sql 'alter system archive log current';
RELEASE CHANNEL ch00;
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';SEND 'NB_ORA_CLIENT=$NB_ORA_CLIENT,NB_ORA_SERV=$NB_ORA_SERV';
BACKUP
ARCHIVELOG ALL ;
RELEASE CHANNEL ch00;
}