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: move a datafile from a filesystem to another

RE: move a datafile from a filesystem to another

From: Deshpande, Kirti <kirti.deshpande_at_verizon.com>
Date: Wed, 21 May 2003 16:28:03 -0800
Message-ID: <F001.0059F546.20030521162803@fatcity.com>


No, the db does not *have* to be in restricted mode.

Simply offline the tablespace (when no one needs it for some time), use OS level command to copy the file to the new location.

>From SQL as sys or system, issue :

  1. alter database rename file 'old file name with full path' to 'new file name with full path';
  2. alter database backup controlfile to trace; -- so that you have a trace file in udump with updated list of files, should you need to recreate control files (safety procedure).

Bring the tablespace online.
You can remove the old file.

U R Done.

-----Original Message-----
Sent: Wednesday, May 21, 2003 5:17 PM
To: Multiple recipients of list ORACLE-L

which command do I use to move an oracle datafile from one filesystem to another filesystem? I understand the db is to be up in restrict mode.

TIA

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Leyden, Joseph
  INET: LeydenJ_at_MTA.NET

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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.net
-- 
Author: Deshpande, Kirti
  INET: kirti.deshpande_at_verizon.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Wed May 21 2003 - 19:28:03 CDT

Original text of this message

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