问题描述
数据库临时表空间在自动增长后无法释放,但日常TEMP表空间使用率低,为了保证数据库的正常运行,有两种处理方法:
增加临时表空间的大小。
重建临时表空间,解决临时表空间过大的问题。
问题处理
1)增加临时表空间的大小:
ALTER TABLESPACE TEMP ADD TEMPFILE '/home/oracle/oradata/temp02.dbf' SIZE 4G AUTOEXTEND ON NEXT 128M MAXSIZE 16384M;
2) 重建临时表空间,解决临时表空间过大的问题。
查看目前默认的临时表空间
select * from database_properties where property_name='DEFAULT_TEMP_TABLESPACE';
创建中转临时表空间
create temporary tablespace temp1 tempfile '/u01/app/oradata/ARPDB/temp03.dbf' size 512m;
改变缺省临时表空间为刚刚创建的新临时表空间temp1
alter database default temporary tablespace temp1;
删除原临时表空间
drop tablespace temp including contents and datafiles;
注:本文转自https://blog.weiminginfo.com/archives/1564449158187
Be First to Comment