ORA-12919: Can not drop the default permanent tablespace

刪除users表空間時出現以下錯誤

數據庫版本

SQL> select * from v$version ;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
CORE	10.2.0.1.0	Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production

錯誤

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

解決

SQL> create tablespace gqxt datafile'/oradata/gqxt/gqxt01.dbf' size 1024m;

Tablespace created.

SQL> alter database default tablespace gqxt ;

Database altered.

SQL> drop tablespace users including contents and datafiles ;

Tablespace dropped.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章