| Oracle® Database Recovery Manager Reference 10g Release 1 (10.1) Part Number B10770-01 |
|
|
View PDF |
change::=
maintSpec::=
To make the following changes:
AVAILABLE or UNAVAILABLE. This feature is useful when a previously unavailable file is made available again, or you do not want a specific backup or copy to be eligible to be restored but also do not want to delete it.CHANGE command can alter the repository status of usable backups and copies from prior incarnations.DELETED. This feature is useful when you remove a file by using an operating system command rather than the RMAN CHANGE command, and want to remove its repository record as well.| See Also:
Oracle Database Backup and Recovery Basics to change the availability status of a backup or copy |
KEEP FOREVER clause requires use of a recovery catalog.CHANGE... UNAVAILABLE or KEEP attributes for files stored in the flash recovery area.CHANGE command that requires either a manual or automatic maintenance channel is the CHANGE ... AVAILABLE command. However, a maintenance channel is not required when CHANGE ... AVAILABLE is used with a file that is disk only (that is, an ARCHIVELOG, DATAFILECOPY, or CONTROLFILECOPY).
If you use CHANGE ... AVAILABLE on files that are not disk-only, and have objects created on device types that are not configured for automatic channels, then issue manual maintenance commands on these channels. For example, if you created a backup on an sbt channel, but have only a DISK channel automatically configured, then you must manually allocate an sbt channel before CHANGE ... AVAILABLE can operate on the backup.
To obtain the primary keys of the records whose status you want to change, run a LIST command or query the recovery catalog views.
| Syntax Element | Description |
|---|---|
|
Specifies which files you want to | |
|
|
Changes the status of a backup or copy to |
|
Changes the exemption status of a backup or copy in relation to the configured retention policy. For example, specify You can also specify Note: You cannot use this option with flash recovery area files. See Also: "keepOption" | |
|
|
Changes the status of a backup or copy to |
|
|
Removes references to a datafile copy, backup piece, or archived redo log from the recovery catalog, and updates records in the target control file to status Caution: If you resynchronize from a backup control file, or upgrade the recovery catalog, then uncataloged records can sometimes reappear in the catalog metadata. |
|
|
Executes the |
This example changes the status of backup set 100 as well as all backups of server parameter files created more than a day ago to UNAVAILABLE:
CHANGE BACKUPSET 100 UNAVAILABLE; CHANGE BACKUP OF SPFILE COMPLETED BEFORE 'SYSDATE-1' UNAVAILABLE;
You do not need to allocate a maintenance channel.
In this example, you move all archived logs to a new directory, uncatalog them, and then recatalog them in the new location:
HOST 'mv $ORACLE_HOME/oradata/trgt/arch/* /fs2/arch'; CHANGE ARCHIVELOG ALL UNCATALOG; CATALOG START WITH '/fs2/arch';
This example, which requires a recovery catalog, changes an ordinary backup into a long-term backup:
CHANGE BACKUP TAG 'consistent_db_bkup' KEEP FOREVER NOLOGS;