临时表空间过大,重建临时表空间

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lovedieya/article/details/48317369

重建临时表空间的方式处理了一下,记录如下:

1.创建中转临时表空间
create temporary tablespace temp1 tempfile '/oracle/oradata/secooler/temp02.dbf' size 512m reuse autoextend on next 1m maxsize unlimited;

2.改变缺省临时表空间为刚刚创建的新临时表空间temp1
alter database default temporary tablespace temp1;

3.删除原临时表空间
drop tablespace temp including contents and datafiles;

4.重建临时表空间
create temporary tablespace temp tempfile '/oracle/oradata/secooler/temp01.dbf' size 512m reuse autoextend on next 1m maxsize unlimited;

5.重置缺省临时表空间为新建的temp表空间
alter database default temporary tablespace temp;

6.删除中转用临时表空间
drop tablespace temp1 including contents and datafiles;

猜你喜欢

转载自blog.csdn.net/lovedieya/article/details/48317369