Trouble with oracle data file
Hey guys,
I have deleted an oracle data file. But it seems I couldn't completely remove it because when I'm trying to make a new one with the same name oracle says: "data file already exists !!!" What to do?
Hey guys,
I have deleted an oracle data file. But it seems I couldn't completely remove it because when I'm trying to make a new one with the same name oracle says: "data file already exists !!!" What to do?
It will be easier for me to suggest you something if you clearly describe the way you deleted the data file(s).
As my tablespace name is "inventory", I dropped the whole tablespace by the command: "drop tablespace inventory".
This command will only remove the tablespace, but not the data files associated with it. You have to delete the tablespace with it's content by the  following command: "drop tablespace [tablespace name] including contents and datafiles; " Good Luck.
Oops! As I have deleted the table space already, what can I do to delete the associated data file?
Here is something you can try doing. Go through these steps: