Oracle9i Recovery Manager Reference Release 1 (9.0.1) Part Number A90136-02 |
|
RMAN Commands , 49 of 60
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 tbs_1
offline, restores it, then performs complete media recovery:
RUN { SQL "ALTER TABLESPACE tbs_1 OFFLINE IMMEDIATE"; RESTORE TABLESPACE tbs_1; RECOVER TABLESPACE tbs_1; SQL "ALTER TABLESPACE tbs_1 ONLINE"; }
This example executes the stored script backupdb
:
RUN { EXECUTE SCRIPT BACKUPDB; }
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|