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

| See
Also:
The syntax diagrams for "RUN"
to determine which commands are included in the |
To create a script and store it in the recovery catalog. 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 EXECUTE SCRIPT.
| 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.CREATE SCRIPT once
and then use this same script on multiple target databases. You must connect to
a specific target database and then run CREATE SCRIPT
to create a script for this specific target. Each script is associated with one
and only one target database.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".
| Syntax Element | Description |
|---|---|
|
|
Creates a stored script with the specified name. The statements
allowable within the brackets of the Note: To run the stored script, specify |
The following UNIX shell script creates a recovery catalog script
called b_whole_10 that backs up the database and archived redo
logs, then executes b_whole_10:
#!/usr/bin/tcsh rman TARGET / CATALOG rman/rman@catdb <<EOF # creates recovery catalog script to back up database and archived logs CREATE SCRIPT b_whole_l0 { BACKUP INCREMENTAL LEVEL 0 TAG b_whole_l0 DATABASE PLUS ARCHIVELOG; } # runs the recovery catalog script b_whole_10 RUN { EXECUTE SCRIPT b_whole_10; } EOF
|
![]() Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |