Text description of deleteScript
To delete a local or global stored script from the recovery catalog.
Restrictions and Usage Notes
DELETE SCRIPT only at the RMAN prompt.
- RMAN must be connected to a recovery catalog and target database, and the catalog database must be open.
- To delete a local script, you must be connected to the target database on which the local script is defined.
- Quotes must be used around the script name when the name contains either spaces or reserved words.
Keywords and Parameters
| Syntax Element
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.)
The name of the script to delete.
See Also: "CREATE SCRIPT", "EXECUTE SCRIPT", "REPLACE SCRIPT", and "LIST" for LIST SCRIPT NAMES.
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.