Q

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?

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:

RUN {
   .....
   RESTORE CONTROLFILE;
   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'
   TO '/new_directory/file_name';
Repeat the above for every datafile. At that point, you should be able to open the database.
This was last published in January 2007

Dig Deeper on Oracle database backup and recovery

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close