Ask the Expert

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:

   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.

    Requires Free Membership to View

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

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

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: