占用资源狂高的select min(bitmapped) from ts$ where dflmaxext =:1 and bitand(flags, 1024) = 1024...

在别人推荐下,系统使用了temporary tablespace group,几天没有看AWR,今天发现系统中如下SQL居然排在了TOP读的首位,而且远远高于正常的TOP SQL的读:
select min(bitmapped) from ts$ where dflmaxext =:1 and bitand(flags, 1024) = 1024[@more@]

GOOGLE了下,发现有人说这是个bug,登陆到METALINK上查询,发现果然是个bug,描述如下:
Applies to:
Oracle Server - Enterprise Edition - Version: 10.1 to 10.2

This problem can occur on any platform.

Symptoms
After the introduction of temporary tablespace groups following query using a lot of CPU and executed many times
select min(bitmapped) from ts$ where dflmaxext =:1 and bitand(flags, 1024) = 1024.

Cause
Temp tablespace group uses a recursive query on ts$ to get the minimum extent size among its temp tablespaces.

Solution1> Use single temp tablespace as user's temp tablespace.
Solution2> Apply patch for the bug 5455880

使用这个咚咚的优点:
防止一个临时表空间出现空间不足的问题。
同一个用户同时连接多个session时可以使用不同的临时表空间。
在并行操作中可以并行使用多个临时表空间。

最后:
Metalink 245645.1,这里有一篇介绍的文章

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25016/viewspace-991493/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/25016/viewspace-991493/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值