I need to restore the controlfiles and datafiles to a new location. I first restored the controlfile, but the datafiles are on the different backup disk. How can the controlfile know where to locate these datafiles? Should I copy the backup of datafiles manually to somewhere arbitrarily or to the specific location?
For example, in this script:
ALTER DATABASE MOUNT;
RESTORE DATAFILE system01.dbf;
In order to restore systme01.dbf, RMAN needs to know where system01.dbf is. But how? Thanks a lot for your help.
After you have restored your control files, you need to update your parameter file with the new control file location. At that time, you can STARTUP MOUNT your database. When in MOUNT mode, you can then tell the control files the new locations for the datafiles with commands similar to the following:
ALTER DATABASE RENAME FILE '/old_directory/file_name'
Repeat the above for every datafile. At that point, you should be able to open the database.
Dig deeper on Oracle database backup and recovery
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.