Oracle® Database Backup and Recovery Reference 10g Release 2 (10.2) Part Number B14194-03 |
|
|
PDF · Mobi · ePub |
deleteScript::=
To delete a local or global stored script from the recovery catalog.
Execute 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 for which the local script is defined.
Quotes must be used around the script name when the name contains either spaces or reserved words.
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. |
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.