Name

REPLACE SCRIPT

Synopsis

Replaces a script that has been stored in the repository catalog. If the script to be replaced does not exist, it is created.

Syntax

REPLACE SCRIPT [']script_name[']
{
 { backupCommands 
 | restoreCommands 
 | maintenanceCommands 
 | miscellaneousCommands 
 }
 [ backupCommands 
 | restoreCommands 
 | maintenanceCommands 
 | miscellaneousCommands 
 ]...
}

backupCommands :=
{ BACKUP
| COPY
}

restoreCommands :=
{ REPLICATE
| RESTORE
| RECOVER
| BLOCKRECOVER
| DUPLICATE
| SWITCH
}

maintenanceCommands :=
{ CATALOG
| CHANGE
| CONFIGURE
| CROSSCHECK
| DELETE
| VALIDATE
| REPORT
| DELETE
| SHOW
}

miscellaneousCommands :=
{ ALLOCATE
| ALTERDATABASE
| beginLine
| DEBUG
| executeScript
| HOST
| RELEASE
| RESYNC
| SEND
| SET
| SHUTDOWN
| SQL
| STARTUP
}

Examples

See Section 1.6 earlier in this book.

Get Oracle RMAN Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.