sqlplus> ALTER TABLESPACE INDEX001 add datafile '/u02/oradata/index00100.dbf' SIZE 2000K
I then realized I needed 2000M, not 2000K. By mistake, I deleted the file /u02/oradata/index00100.dbf from a linux shell. I did not 'drop' the tablespace from sqlplus first.
Now, the DB won't start up, so I can't get into sqlplus to drop the tablespace. How do I fix this??
I am not a DBA, but have been left with an Oracle instance to support, with no DBAs on staff or any Oracle support.
you have to delete the new datafile as well however this will force you to drop the tablespace afterwards, since it seems that that tablespace is holding index segments so there is not much harm dropping the tablespace since indexes are relatively easy to rebuild
in NOARCHIVELOG
1. startup mount
2. alter database datafile '/u02/oradata/index00100.dbf' offline drop
3. alter database open
4. drop tablespace INDEX001
5. recreate the tablespace
6. recreate your indexes
Bookmarks