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: Rao, Maheswara <Maheswara.Rao_at_Sungardp3.com>
Date: Mon, 07 May 2001 08:53:28 -0700
Message-ID: <F001.002FAC34.20010507075144@fatcity.com>

You do not need to shut the database. Only take the tablespace offline where the datafiles are reorganized.

Rao

Maheswara.Rao_at_sungardp3.com

-----Original Message-----
Sent: Monday, May 07, 2001 10:56 AM
To: Multiple recipients of list ORACLE-L

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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rao, Maheswara
  INET: Maheswara.Rao_at_Sungardp3.com

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 - 10:53:28 CDT

Original text of this message

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