Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What can I do to drop a data file mistakenly created and currently with 0 byte and in offline (needs recovery) state?

share|improve this question

migrated from Mar 9 '11 at 13:01

This question came from our site for professional and enthusiast programmers.

Any actual ORA numbers...? Or the SQL you used to do this? – Gaius Mar 9 '11 at 13:49
What is the actual state? I mean is this your production server that is in a recovery state or a restored backup or what? – REW Apr 8 '11 at 23:26

You can not drop the datafile. You can move it to a better location and keep it there. If you want to get rid if it, re-create the tablespace and copy the data to the new tablespace. Drop the old tablespace and rename the new tablespace. Don't forget to give quota to your schemas similar as they have on the old tablespace.

share|improve this answer
thx! I did that. – magqq Sep 7 '11 at 1:31
does this mean that my answer is acceptable? – ik_zelf Sep 12 '11 at 11:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.