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

  • 1
    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.

  • thx! I did that. – magqq Sep 7 '11 at 1:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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