While attempting to create a replacement tablespace for USER, I accidentally created a datafile in SYSTEM

Too many applications are using the database to bring down the entire database, and people will get hurt if these applications are not running.

Is there a way for me to remove the datafiles from the SYSTEM tablespace without bringing it down?

I tried:

ALTER TABLESPACE SYSTEM DROP DATAFILE 'path_here.dbf'

but get this error:

Error starting at line 1 in command:
alter tablespace system drop datafile 'path_here.dbf'
Error report:
SQL Error: ORA-01541: system tablespace cannot be brought offline; shut down if necessary
01541. 00000 -  "system tablespace cannot be brought offline; shut down if necessary"
*Cause:    Tried to bring system tablespace offline
*Action:   Shutdown if necessary to do recovery
有帮助吗?

解决方案

From the Oracle 11.1 documentation

You cannot drop datafiles in the SYSTEM tablespace.

However you can resize data files.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top