Use the PRINT SCRIPT
command to print a local or global stored script to standard output or to a file.
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.
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 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. |