Skip Headers

Oracle9i Recovery Manager Reference
Release 2 (9.2)

Part Number A96565-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

RMAN Commands , 28 of 59


EXECUTE SCRIPT

Syntax

Text description of executeScript.gif follows
Text description of the illustration executeScript.gif


Purpose

To run an RMAN script stored in the recovery catalog. Use the CREATE SCRIPT command to generated stored scripts.

When you run an EXECUTE SCRIPT command within a RUN command, RMAN places the contents of the script between the braces of RUN. For this reason, you should not allocate a channel at the RUN command level if you already allocated it in the script.

See Also:

Oracle9i Recovery Manager User's Guide, and "CREATE SCRIPT"

Restrictions and Usage Notes

Keywords and Parameters

Syntax Element Description

'script_name'

Runs the specified stored script. To obtain a listing of all stored scripts, use SQL*Plus to connect to the recovery catalog database as the catalog owner and run the following query:

SQL> SELECT * FROM RC_STORED_SCRIPT;

See Also: "RC_STORED_SCRIPT" for more information about RC_STORED_SCRIPT, and "CREATE SCRIPT" for information about creating scripts

Example

Executing a Script: Example
This example creates and then runs a stored script:

REPLACE SCRIPT b_whole_10 
{
  BACKUP DATABASE PLUS ARCHIVELOG;
}

RUN { EXECUTE script b_whole_10; }

Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback