Skip Headers

Oracle® Database Recovery Manager Reference
10g Release 1 (10.1)

Part Number B10770-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Feedback

Go to previous page
Previous
Go to current chapter
Up
Go to next page
Next
View PDF

PRINT SCRIPT

Syntax

printScript::=

Text description of printScript.gif follows


Text description of printScript



Purpose

To print a local or global stored script to standard output or to a file.

For more information about stored scripts, see "CREATE SCRIPT".

Restrictions and Usage Notes

Keywords and Parameters

Syntax Element Description

GLOBAL

With the GLOBAL option, PRINT SCRIPT prints the global script named 'script_name' instead of the local script.

If omitted, RMAN looks for a local or global script script_name to print. If a local script is found, it is printed. If no local script is found, but a global script script_name is found, the global script is printed.

See "CREATE SCRIPT" for more details about local and global stored scripts.

'script_name'

The name of the script to print.

TO FILE 'filename '

With TO FILE 'filename' option, PRINT SCRIPT sends its output to the specified file instead of standard output.

Examples

Printing a Script to a File: Example

The following example prints a script to the file '/tmp/backup_db.rman':

PRINT SCRIPT backup_db TO FILE '/tmp/backup_db.rman';
Printing a Script to the Screen: Example

This example prints a stored script to standard output (includes sample output):

RMAN> PRINT SCRIPT 'backup_db';

printing stored script: backup_db
{
ALLOCATE CHANNEL c1 DEVICE TYPE sbt
BACKUP DATABASE;
}