Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: move a datafile from a filesystem to another
Here's my 2¢ worth...I use 'cp -p' instead of 'mv'. If something
blows in the copy I still have the original. It all is OK then
I 'rm -f' the file after on-lining it.
Cheers,
Paranoid Mike
-----Original Message-----
Sent: Wednesday, May 21, 2003 5:28 PM
To: Multiple recipients of list ORACLE-L
Here's a UNIX example:
set pause off echo on termout on feedback on whenever sqlerror exit
alter tablespace YOUR_TS offline normal;
!mv /u01/oradata/SID/YOUR_TS_01.dbf /u02/oradata/SID/YOUR_TS_01.dbf
alter tablespace YOUR_TS rename datafile
'/u01/oradata/SID/YOUR_TS_01.dbf'
to '/u02/oradata/SID/YOUR_TS_01.dbf';
alter tablespace YOUR_TS online;
HTH,
John
-----Original Message-----
Sent: Wednesday, May 21, 2003 3: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: Vergara, Michael (TEM)
INET: mvergara_at_guidant.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:47:01 CDT