在drop users表空間時遇到如下錯誤﹕
SQL> DROP TABLESPACE users INCLUDING CONTENTS and datafiles;
DROP TABLESPACE users INCLUDING CONTENTS and datafiles
*
ERROR 在行 1:
ORA-12919: 無法刪除預設永久表格空間
SQL> DROP TABLESPACE users INCLUDING CONTENTS;
DROP TABLESPACE users INCLUDING CONTENTS
*
ERROR 在行 1:
ORA-12919: 無法刪除預設永久表格空間
原來在oracle10g中﹐必須為數據庫指定一個默認的永久表空間。而默認是users表空間﹐所以會出現上面的錯誤信息。
把默認的永久表空間改為system表空間就可以了﹕
SQL> alter database default tablespace system;
已更改資料庫.
SQL> DROP TABLESPACE users INCLUDING CONTENTS and datafiles;
已刪除表格空間.
SQL>
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/33600/viewspace-266404/ ,如需转载,请注明出处,否则将追究法律责任。