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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Rename Datafile

Re: Rename Datafile

From: Mitchell <mitchell_at_comnet.ca>
Date: Mon, 07 May 2001 07:57:08 -0700
Message-ID: <F001.002FAAB9.20010507065608@fatcity.com>

Dear DBAs

Question about alter database rename file '/oldlocation/datafile1' to
'/newlocation/datafile1';

This command ususal to move a datafile to a new location. In case of rename file, I mean here
'/oldlocation/datafile1' to '/newlocation/newdatafilename'; or
'/oldlocation/datafile1' to '/oldlocation/newdatafilename';

I have never seen anybook mention this
I guess step is

  1. shutdown database (normal or immediate)
  2. cp /oldlocation/datafile1 /newlocation/newdatafilename or mv /oldlocation/datafile1 /oldlocation/newdatafilename
  3. startup restirct mount; 3 alter database rename file '/oldlocation/datafile1' to
    '/newlocation/newdatafilename'; or
    '/oldlocation/datafile1' to
    '/oldlocation/newdatafilename';
  4. check status of v$datafile
  5. restart database

Any suggestiion?

Mitchell

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Mitchell
  INET: mitchell_at_comnet.ca

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Mon May 07 2001 - 09:57:08 CDT

Original text of this message

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