I have tried dropping the datafile by itself but I get this error.
SQL> alter tablespace USERS drop datafile '/u01/app/oracle/oradata/orcl/users01.dbf';
alter tablespace USERS drop datafile '/u01/app/oracle/oradata/orcl/users01.dbf'
*
ERROR at line 1:
ORA-03261: the tablespace USERS has only one file
I have also tried taking the tablespace offline and dropping the whole tablespace but that doesn't work either.
SQL> drop tablespace users including contents and datafiles;
drop tablespace users including contents and datafiles
*
ERROR at line 1:
ORA-12919: Can not drop the default permanent tablespace
Edit: This is for an assignment to simulate the failure of a datafile that I will be recovering. I would delete it manually but the assignment is requiring me to use SQL.