Skip Headers
Oracle® Database Backup and Recovery Reference
10g Release 2 (10.2)

Part Number B14194-03
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
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

DELETE SCRIPT

Syntax

deleteScript::=

Description of deletescript.gif follows
Description of the illustration deletescript.gif

Purpose

To delete a local or global stored script from the recovery catalog.

Restrictions and Usage Notes

Keywords and Parameters

Syntax Element Description
GLOBAL Specifies that the script to delete is a global stored script. Otherwise, RMAN will look for a local stored script called script_name defined on the current target database. (If no such script is defined on the target database, RMAN will check for a global stored script named script_name and delete that script if it exists.)
'script_name' Specifies the name of the script to delete.

See Also: "CREATE SCRIPT", "EXECUTE SCRIPT", "REPLACE SCRIPT", and "LIST" for LIST SCRIPT NAMES.


Example

Deleting a Script: Example The following example deletes a stored script b_whole_10 from the recovery catalog:

rman TARGET / CATALOG rman/cat@catdb
RMAN> DELETE SCRIPT b_whole_10;

If a local stored script b_whole_10 is defined, it is deleted. If no local stored script b_whole_10 is defined but a global stored script b_whole_10 is defined, the global script is deleted.