ORA-01652: unable to extend temp segment by 128 in tablespace TEMP解决办法

解决ora-01652无法通过128(在temp表空间中)扩展temp段的过程: http://www.cnblogs.com/cyl048/p/5984128.html
在数据库更新130万数据时,出现ORA-01652: unable to extend temp segment by 128 in tablespace TEMP,出现这个的原因,是以为临时表空间已经占满,不能扩大临时表空间所导致,
因为130数据要分页更新,每页都要进行排序,所以把临时表空间沾满了,相关文章说时SQL问题
,我的更新不在SQL问题,所有就修改临时表空间。
1.查看表空间
所有表空间查看
select * from dba_tablespaces;

临时表空间查看
select * from dba_temp_files;
select * from v$tempfile





发现表空间有2G,但是不能自动增长,修改临时表空间为自动增长。
2.修改临时表空间
alter database tempfile '/oradata/efss/temp01.dbf' autoextend on next 100m;






3.再次临时表空间可以自动增城了






应用也不报ORA-01652: unable to extend temp segment by 128 in tablespace TEMP问题了。

猜你喜欢

转载自donald-draper.iteye.com/blog/2372574