You do not need to shut the database. Only take the tablespace offline
where the datafiles are reorganized.
Rao
[EMAIL PROTECTED]
-----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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).