Datafiles on different backup disk from controlfile
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.
This was first published in January 2007