| Home | Downloads | Contact Us |
![]() |
![]() |
| Home >> Resources >> Oracle >> Oracle9i Recovery Manager Reference Release 2 (9.2) |
RMAN Commands , 48 of 59

backupCommands::=
restoreCommands::=
maintenanceCommands::=
miscellaneousCommands::=
To compile and execute job commands, which are one or more statements
executed within the braces of RUN. The RUN command
compiles the list of job commands into one or more job steps and then executes
them immediately.
Refer to individual entries for information about commands that you can run from the RMAN prompt.
This example backs up a database by using a single manually allocated channel to perform the backup:
RUN { ALLOCATE CHANNEL c1 TYPE sbt; BACKUP DATABASE; }
This example takes tablespace tools offline, restores
it, then performs complete media recovery:
RUN { SQL "ALTER TABLESPACE tools OFFLINE IMMEDIATE"; RESTORE TABLESPACE tools; RECOVER TABLESPACE tools; SQL "ALTER TABLESPACE tools ONLINE"; }
This example executes the stored script backup_db:
RUN { EXECUTE SCRIPT backup_db; }
|
![]() Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |