刪除users表空間時出現如下錯誤
sql
數據庫版本數據庫
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
錯誤ide
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
解決
spa
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.