Oracle® Database Recovery Manager Reference 10g Release 1 (10.1) Part Number B10770-02 |
|
|
View PDF |
keepOption::=
Text description of keepOption
A subclause specifying the status of a backup or copy in relation to a retention policy. The KEEP
option marks the backup or copy as exempt from the retention policy (that is, not obsolete), and the NOKEEP
option undoes any existing exemptions.
This option cannot be used with files stored in the flash recovery area.
This example makes a long-term backup of the database and specifies that it should never become obsolete and that the logs required to recover it should not be retained:
SHUTDOWN IMMEDIATE; STARTUP MOUNT; BACKUP DATABASE KEEP FOREVER NOLOGS; ALTER DATABASE OPEN;
This example specifies that any long-term image copies of datafiles and control files should lose their exempt status and so become eligible to be obsolete according to the existing retention policy:
CHANGE COPY OF DATABASE CONTROLFILE NOKEEP;