Oracle9i Recovery Manager Reference Release 1 (9.0.1) Part Number A90136-02 |
|
RMAN Commands , 20 of 60
backupCommands::=
restoreCommands::=
maintenanceCommands::=
miscellaneousCommands::=
To create a script and store it in the recovery catalog for future reference. Stored scripts provide a common repository for frequently executed collections of RMAN commands. Any command that is legal within a RUN
command is permitted in the stored script. The script is not executed immediately; run the script with
@
.
See Also:
Oracle9i Recovery Manager User's Guide to learn how to store scripts in the recovery catalog |
Note the following restrictions:
CREATE
SCRIPT
only at the RMAN prompt.
CATALOG
command-line option or the
CONNECT
CATALOG
command, and the catalog database must be open. A connection to the target database is not required.
RUN
command within a stored script.
@
and
@@
commands do not work within CREATE
SCRIPT
.
For descriptions of the individual commands that you can use in a stored script, refer to the appropriate entry, for example, "BACKUP".
This example creates a script called b_whole_10
that backs up the database and archived redo logs, then executes it:
CREATE script b_whole_l0 { ALLOCATE CHANNEL d1 DEVICE TYPE sbt; BACKUP INCREMENTAL LEVEL 0 TAG b_whole_l0 DATABASE PLUS ARCHIVELOG; } RUN { EXECUTE script b_whole_10; }
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|