Your database is running on the host OUSERVER. You back up your database regularly using RMAN and the backups are cataloged in a recovery catalog. For testing purposes, you want to replicate your database to another host, OUSERVER1, with the same directory structure. So, you copy the backups to the new host.
What must you do to make the database operational in OUSERVER1? perform a switch after the restore operation to update the control file with the new locations for the data files, as shown in the following example. following commands, listed in order of precedence:
A.
Restore the control file from the backup by using the CATALOG option, restore the data files by using the SET NEWNAME command, and recover the data files.
B.
Restore the data files by using the NOCATALOG option and use the SET NEWNAME command to change the location.
C.
Restore the control file from the backup by using the NOCATALOG option, and then restore and recover the data files.
D.
Restore the data files from the backup by using the recovery catalog, use the SWITCH command to change the location, and recover the data files.
Explanation:
Catalog any backups not recorded in the repository with the CATALOG command.Restore the data files to their original locations. If volume names have changed, then run SET NEWNAME commands before the restore operation and
Note: One way to name duplicate data files is to use the SET NEWNAME command before executing the DUPLICATE command. RMAN supports the
1. SET NEWNAME FOR DATAFILE and SET NEWNAME FOR TEMPFILE
2. SET NEWNAME FOR TABLESPACE
3. SET NEWNAME FOR DATABASE
References: https://docs.oracle.com/database/121/BRADV/rcmadvre.htm