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


ORA-01652: unable to extend temp segment by 128 in tablespace TEMP解决办法_第1张图片


发现表空间有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解决办法_第2张图片


应用也不报ORA-01652: unable to extend temp segment by 128 in tablespace TEMP问题了。
  • ORA-01652: unable to extend temp segment by 128 in tablespace TEMP解决办法_第3张图片
  • 大小: 905.3 KB
  • ORA-01652: unable to extend temp segment by 128 in tablespace TEMP解决办法_第4张图片
  • 大小: 827.2 KB
  • ORA-01652: unable to extend temp segment by 128 in tablespace TEMP解决办法_第5张图片
  • 大小: 923.7 KB
  • 查看图片附件

你可能感兴趣的:(Oracle)