Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Recover from a dropped datafile

RE: Recover from a dropped datafile

From: Jeremiah Wilton <>
Date: Mon, 13 Feb 2006 21:41:17 -0800
Message-ID: <002f01c63129$470b9780$a902a8c0@flbp7000a>


You didn't mention how the customer dropped the datafile (in the O/S or Oracle?), or which command was used. Also you didn't mention if the database is currently up or down. I guess it must be down because it sounds like you can't get it open.

As long as there are no extents in the missing file, you can startup the database in mount mode, then ALTER DATABASE DATAFILE ... OFFLINE DROP; for the missing datafile (make sure you don't drop the wrong one!), then alter database open. You can then create a new tablespace and move the tables from the messed up tablespace into the new one using CREATE TABLE ... AS SELECT * FROM ...; I suppose you may also be able to leave the tablespace where it is with the offline dropped datafile with no ill effects. You should just be able to continue adding datafiles as needed. I am embarrassed that I did not test this out on a real database before suggesting it, and I can't recall frop when I have tried it what ill effects there may be down the road with the leave-it-alone approach.

Make sure you take a look at these commands in the reference manual for precise syntax before you use them. htm


Jeremiah Wilton
ORA-600 Consulting
Recoveries - Seminars - Hiring

-----Original Message-----

From: [] On Behalf Of Ignizio, Richard

I have a situation where a customer has "accidentally" dropped a datafile from a tablespace. The good news is that the datafile was empty since she just added it. The bad news is that there is no backup and it is a 7.3.4 database.

Is it possible to offline the datafile and open the database and some how move the data to a new tablespace?

-- Received on Mon Feb 13 2006 - 23:41:17 CST

Original text of this message