Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle db file & redo archive file relocate question

Re: Oracle db file & redo archive file relocate question

From: godmann <allanwtham_at_yahoo.com>
Date: 6 Sep 2001 23:49:15 -0700
Message-ID: <95cd51c.0109062249.3a44e68a@posting.google.com>


Hi,

   You can actually use three different methods to do the job; imp/exp,    recreating controlfiles or renaming the database files

   Try this is testing environment first. But I am pretty confident it will work.  

   Steps...

  1. Copy down all the names and locations of datafiles, log files and control files using dba_data_files and v$logfile respectively.
      eg. select * 
          from dba_data_files;

   2. shutdown immediate.

   3. startup mount.

   4. copy all database files ie. all datafiles, log files and control files

      from old location to new location.

   5. Rename the datafiles in this way :

       
      eg. alter database rename file '/blah/old/system01.dbf' to
                                     '/blah/new/system01.dbf';

      Repeat for all database files at step 1. (The best is spool out 
      in step 1 and modify the output and run it as a script)

   6. shutdown immediate.

   7. move the controlfiles to new location.

   8. Change the location of your init.ora to point to have the right path

      for controlfiles, else the startup will gives error.

   9. startup    

  1. You are done

Allan W. Tham
DBA Received on Fri Sep 07 2001 - 01:49:15 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US