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: Mercadante, Thomas F <Thomas.Mercadante_at_Labor.State.Ny.Us>
Date: Wed, 23 Jan 2002 13:03:34 -0800
Message-ID: <F001.003F9302.20020123130533@fatcity.com>

Seema,

It is not a risky process. The proper way to do it is:

Alter tablespace {name} offline;
! host copy filename to newlocation;
Alter database rename file 'oldname' to 'newname'; alter tablespace {name} online;

if all goes well, remove the old file.

You obviously need to be able to take the tablespace offline to do this, so no queries or transactions may be running while you do this. You also need to perform a backup (at least alter database backup controlfile to trace).

Hope this helps.

Tom Mercadante
Oracle Certified Professional

-----Original Message-----

Sent: Wednesday, January 23, 2002 3:44 PM To: Multiple recipients of list ORACLE-L

Hi
Rename data file from one location to another location is riskly process? If some thing wrong what will happened?Can I do it database on condition? Can I do it when db is running?If yes then it is risky?

Thx
-Seema



Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Seema Singh
  INET: oracledbam_at_hotmail.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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Mercadante, Thomas F
  INET: Thomas.Mercadante_at_Labor.State.Ny.Us
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 Wed Jan 23 2002 - 15:03:34 CST

Original text of this message

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