In oracle database, a datafile can be dropped, databasedatafile
Refer to the mos article:
Unable to Drop a Datafile From the Tablespace Using Alter Tablespace Command (Document ID 1050261.1)
This datafile cannot be dropped because of any of the following conditions:
1) It must be null, otherwise it will report: ORA-03262: the file is non-empty. It is worth noting that the meaning of non-empty is that extent is assigned to a table, instead of having rows in the table.
In this case, if you use drop table xxx, you must use drop table xxx purge;
You can also use the purge table "xxx table name in the recycle bin" to purge the table when drop table xxx is used. Otherwise, the space is not released, datafile still cannot be dropped.
2) The table space cannot be the first file.
The above two can be achieved through drop tablespace.
3) it cannot be in the read-only tablespace.
4) cannot be offline, otherwise it will report: ORA-03264: cannot drop offline datafile of locally managed tablespace
For this error, the solution is:
[oracle@rhel63single u02]$ oerr ora 326403264, 00000, "cannot drop offline datafile of locally managed tablespace"// *Cause: Trying to drop offline datafile in lmts// *Action: Try to drop file afetr making it online[oracle@rhel63single u02]$
5) Cannot be a datafile that is part of the system tablespace, even if it is not the first datafile of the system tablespace
-- This entry is From How to Drop a Datafile From a Tablespace (Document ID 111316.1)