如何清除oracle temp表空间

如题所述

temp表空间过大时,可通过如下方法重建
SQL> create temporary tablespace temp2 tempfile '/opt/oracle/oradata/conner/temp1.dbf' size 200M autoextend off;
SQL> alter database default temporary tablespace temp2;
SQL> drop tablespace temp;
或者SQL> drop tablespace temp including contents and datafiles cascade constraints(彻底删除包括操作系统中的临时表空间的数据文件)
最后在操作系统上把temp的文件删除,就可以释放空间。
温馨提示:答案为网友推荐,仅供参考
相似回答