首页 > Linux操作系统 > Linux操作系统 > RMAN Run Clause
RMAN Run Clause
Combine several RMAN commands into a single task, if any one command fails RMAN uses some vaguely intelligent logic and may or may not abort 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 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.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23898243/viewspace-694032/ ,如需转载,请注明出处,否则将追究法律责任。