Oracle9i Recovery Manager Reference Release 2 (9.2) Part Number A96565-01 |
|
RMAN Commands , 31 of 59
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 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 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;
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|