Oracle Error ORA-39315: Cannot drop the first data file from a permanent or undo tablespace.

Oracle Error Message

ORA-39315: Cannot drop the first data file from a permanent or undo tablespace.

Reason for the Error

DBMS_METADATA_DIFF was comparing two permanent or undo tablespaces. The first data file in the first tablespace is missing from the second tablespace. There is no SQL ALTER statement to drop the first data file from a permanent or undo tablespace.

Solution

The difference cannot be eliminated with an SQL ALTER statement.