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: What is the point to use "alter database rename file" command

RE: What is the point to use "alter database rename file" command

From: Mercadante, Thomas F <NDATFM_at_labor.state.ny.us>
Date: Tue, 09 Jul 2002 07:53:25 -0800
Message-ID: <F001.00492583.20020709075325@fatcity.com>


Jalil,  

To do this, do the following:  

Shutdown the database
Move the data file to the new location
Startup Mount
Issue the "Alter database" commands
Alter database open.  

Works like a charm.  

Listen, if you are comfortable re-building your control files, then go ahead and do it.  

I'm not sure what effect it has if you are running in archivelog mode - are your archived redo logs available for a restore? My guess is not - that your SCN restarts at "1" again.  

Sooo, whenever you do this, be sure and perform a full backup!  

hope this helps.

Tom Mercadante
Oracle Certified Professional

-----Original Message-----
Sent: Tuesday, July 09, 2002 10:38 AM
To: Multiple recipients of list ORACLE-L

Well, I have recieved a server and found some datafiles are reside in System tablespace - in this case to move those datafile we can not put system tablespace offline therefore can not use alter command...

Regards,
-Jalil

  Rachel Carmichael <wisernet100_at_yahoo.com> wrote:

well, I can think of one off the top of my head -- your way the database has to be shutdown.

using alter database rename file you can just take the tablespace that owns that datafile offline and do the work. All users who don't need that particular tablespace are not affected.


Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rachel Carmichael
INET: wisernet100_at_yahoo.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).




  _____  

Do You Yahoo!?
New! SBC
<http://pa.yahoo.com/*http://rd.yahoo.com/sbcyahoo/consumer/evt=640/*http://
sbc.yahoo.com> Yahoo! Dial - 1st Month Free & unlimited access


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Mercadante, Thomas F
  INET: NDATFM_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 Tue Jul 09 2002 - 10:53:25 CDT

Original text of this message

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