Oracle的temp表空间被占满

前两天运维人员突然都给我发来小说报ORA-06512错,错误如下,提示temp无法扩展:
ERR_1000001:未知的系统错误(ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
ORA-06512: at "WMSYS.WM_CONCAT_IMPL", line 31
) Nested Exception is:ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
ORA-06512: at "WMSYS.WM_CONCAT_IMPL", line 31


可以用如下语句进行temp 表空间的使用情况:
select * from   
(select username,session_addr,sql_id,contents,segtype,blocks*8/1024/1024 gb   
from gv$sort_usage order by blocks desc)   
where rownum<=200;

经检查发现是一个查询语句把temp表空间给撑满了。




文章题目:Oracle的temp表空间被占满
链接URL:http://myzitong.com/article/jdeops.html