Question

  Asked: Mar 25 2007   12:18 AM GMT
  Asked by: sukaina


moving datafiles to different locations


Backup & 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.

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



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
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Storage.

Looking for relevant Storage Whitepapers? Visit the SearchStorage.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register