moving datafiles to different locations

10 pts.
Tags:
Backup and Recovery
Performance/Tuning
Hi, Please help. I want to shift my datafiles from c: to S:. I have made a physical copy of dbf files from c: to s:. In Oracle 10g I made those files offline and renamed with new physical location. when bringing online I was getting error as "need media recovery". Please Guide me. Regards.

Answer Wiki

Thanks. We'll let you know when a new response is added.

The normal sequence of commands are
alter tablespace [tablespace name] offline;

at OS level move the file to the new location

alter tablespace [tablespace name] rename datafile ‘[old location & file name]’ to ‘[new location & file name]’;
alter tablespace [tablespace name] online;
If recovery is needed just execute the recover tablespace command:
recover tablespace [tablespace name];

replace what is in [] with your information

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

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

Forgot Password

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

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

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

Thanks! We'll email you when relevant content is added and updated.

Following