Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: RENAME DATAFILE
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
--
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 Liststo: 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).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message