- 最后登录
- 2013-9-25
- 在线时间
- 75 小时
- 威望
- 8
- 金钱
- 156
- 注册时间
- 2013-1-10
- 阅读权限
- 10
- 帖子
- 39
- 精华
- 0
- 积分
- 8
- UID
- 859
|
1#
发表于 2013-6-17 15:34:53
|
查看: 15456 |
回复: 16
本帖最后由 低调小马哥 于 2013-6-17 15:34 编辑
os:redhat 5.8 db:10.2.0.5单机
应用服务器的java后台报:Caused by: java.sql.SQLException: ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
ORA-06512: at "WMSYS.WM_CONCAT_IMPL", line 31 ,我到数据库上查询临时表空间的使用率,发现临时表空间已经扩展到了32G并完全胀满,查询临时表空间如下:- 15:27:12 SQL> select * from ( select blocks*8/1024 ,a.session_addr,sql_id,tablespace,segtype,segfile# from v$tempseg_usage a order by blocks desc )
- where rownum=1;15:27:13 2
-
- BLOCKS*8/1024 SESSION_ADDR SQL_ID TABLESPACE SEGTYPE SEGFILE#
- ------------- ---------------- ------------- ------------------------------- --------- ----------
- 575 00000000C1A4F8F8 624083w8tmfh8 TEMP LOB_DATA 204
-
- 15:27:17 SQL> /
-
- BLOCKS*8/1024 SESSION_ADDR SQL_ID TABLESPACE SEGTYPE SEGFILE#
- ------------- ---------------- ------------- ------------------------------- --------- ----------
- 594 00000000C1A4F8F8 fj2zjsht7cjny TEMP LOB_DATA 204
-
- 15:27:30 SQL> /
-
- BLOCKS*8/1024 SESSION_ADDR SQL_ID TABLESPACE SEGTYPE SEGFILE#
- ------------- ---------------- ------------- ------------------------------- --------- ----------
- 614 00000000C1A4F8F8 fj2zjsht7cjny TEMP LOB_DATA 204
复制代码 每隔几秒就会增长10到20M,而且就这一个会话一直增长,其他的都正常,查询这个sql如下:- SELECT SJSZ.XBNDZY AS YXNDZY, SJSZ.XKKSSJ, SJSZ.XKJSSJ, XFMSXZ.ZYXXMS, XFMSXZ.ZYXXXF, XFMSXZ.GGXXMS, XFMSXZ.GGXXXF,XKZD.YXJWYDH,XKZD.YXJWYSJ,XKZD.YXJWYXM FROM T_XKGL_ZYNJXKZD XKZD,T_XKGL_XKSJSZ SJSZ, (SELECT ZY YXZYNDID, MAX (ZYXXMS) ZYXXMS, MAX (ZYXXXF) ZYXXXF, MAX (GGXXMS) GGXXMS, MAX (GGXXXF) GGXXXF FROM (SELECT ZY, DECODE (XXXZDM, 0, XXMSSX, NULL) ZYXXMS, DECODE (XXXZDM, 0, XXXFSX, NULL) ZYXXXF, DECODE (XXXZDM, 1, XXMSSX, NULL) GGXXMS, DECODE (XXXZDM, 1, XXXFSX, NULL) GGXXXF FROM (SELECT XFMSKZ.ZY, XFMSKZ.XXXZDM, XFMSKZ.XXMSSX, XFMSKZ.XXXFSX FROM T_XKGL_XKXFMSKZ XFMSKZ, T_XKGL_XKPZB PZ WHERE XFMSKZ.XNDM = PZ.XN AND XFMSKZ.XQDM = PZ.XQ AND XFMSKZ.XKCL = PZ.XKCL)) GROUP BY ZY) XFMSXZ WHERE SJSZ.XBNDZY = XKZD.YXNDZY(+) and SJSZ.XBNDZY = XFMSXZ.YXZYNDID(+)
复制代码 杀掉这个会话后,临时表空间立即清空了,但过一会又开始增长了。
请教各位有没有什么办法查出根本问题?
|
|