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 first published in January 2007

Dig deeper on Oracle database backup and recovery

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close