RMAN Run Clause

Combine several RMAN commands into a single task, if any one command fails RMAN uses some intelligent logic and can cancel the remainder of the combined task.

Syntax:

   RUN { 
     …
   }


Example

RUN
{
ALLOCATE CHANNEL dev1 DEVICE TYPE DISK FORMAT '/fs1/%U';
ALLOCATE CHANNEL dev2 DEVICE TYPE DISK FORMAT '/fs2/%U';
BACKUP
(TABLESPACE system,finance,marketing FILESPERSET 20)
(DATAFILE 62,63,64);
}

Some commands are only valid inside a RUN block e.g. HOST commands and RMAN script commands - see the documentation for more on RMAN scripting.

"In today's economy there are no experts, no 'best and brighest' with all the answers. It's up to each one of us.
The only way to screw up is to not try anything” ~ Tom Peters


Related Oracle Commands:

BACKUP - Back up database files, archive logs, backups, or copies.
CROSSCHECK
- Check whether backup items still exist.
DELETE
- Delete backups from disk or tape
RECOVER
- Perform media recovery from RMAN backups and copies.
RESTORE
- Restore RMAN backups and copies.


 
Copyright © 1999-2024 SS64.com
Some rights reserved