Oracle® Database Backup and Recovery Reference 11g Release 1 (11.1) Part Number B28273-01 |
|
|
View PDF |
Purpose
Use the PRINT SCRIPT
command to print a local or global stored script to standard output or to a file.
Prerequisites
Execute PRINT
SCRIPT
only at the RMAN prompt. RMAN must be connected to a target database and a recovery catalog. The recovery catalog database must be open.
If the specified script is a local script, then RMAN must be connected to the target database that it was connected to when you created or replaced the script.
Usage Notes
If GLOBAL
is not specified, then RMAN looks for a local or global script script_name
to print. If a local script is found, then it is printed. If no local script is found, but a global script script_name
is found, then the global script is printed.
Syntax
printScript::=
Semantics
Syntax Element | Description |
---|---|
GLOBAL |
Identifies the script as global.
If See Also: "Usage Notes" for an explanation of the difference between global and local scripts |
script_name |
Specifies the name of the script to print. Quotes must be used around the script name when the name contains either spaces or reserved words. |
TO FILE ' filename ' |
Sends output to the specified file instead of standard output. |
Examples