Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> rename datafile without shutting down
I have my database running in archive mode. Is it possible to rename a
datafile without even bring the tablespace offline?
Here is what I did:
1. ALTER TABLESPACE my_table_space BEGIN BACKUP; 2. Use O.S. to copy the data file to 'new.dbf'. 3. ALTER DATABASE RENAME FILE 'old.dbf' TO 'new.dbf';
4. ALTER DATABASE DATAFILE 'old.dbf' OFFLINE; 5. Repeat step 3. 6. ALTER DATABASE DATAFILE 'new.dbf' ONLINE;
I was hoping to use 'begin backup' feature so Oracle wouldn't write info to the datafile. But, at this point, I had no choice but run recovery from server manager. Also the tablespace/datafile was offline and the application cannot continue.
I wonder if there is a way to make such change "transparently" to the users.
Thanks.
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Wed Jan 26 2000 - 15:08:44 CST
![]() |
![]() |