Oracle8i Recovery Manager User's Guide and Reference Release 2 (8.1.6) Part Number A76990-01 |
|
Recovery Manager Command Syntax, 16 of 50
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: use any command legal within a run command in the script. The script is not executed immediately; use the execute script command (see "run") to run it.
Note the following restrictions:
For descriptions of the individual commands that you can use in a stored script, see the appropriate entry, for example, "backup". Note that the @@ command exhibits special behavior when you execute it within a script. For information on the execute script command, see "run".
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 type disk; allocate channel d2 type disk; allocate channel d3 type disk; backup incremental level 0 tag b_whole_l0 filesperset 6 database; sql 'ALTER SYSTEM ARCHIVE LOG CURRENT'; backup filesperset 20 archivelog all delete input; } RMAN-03022: compiling command: create script RMAN-03023: executing command: create script RMAN-08085: created script b_whole_10 run { execute script b_whole_10; }
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|