占用资源狂高的select min(bitmapped) from ts$ where dflmaxext =:1 and bitand(flag
上一篇 /
下一篇 2007-12-11 00:00:00
/ 个人分类:管理
在别人推荐下,系统使用了temporary tablespace group,几天没有看AWR,今天发现系统中如下SQL居然排在了TOP读的首位,而且远远高于正常的TOP SQL的读:
select min(bitmapped) from ts$ where dflmaxext =:1 and bitand(flags, 1024) = 1024
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,这里有一篇介绍的文章
导入论坛
引用链接
收藏
分享给好友
推荐到圈子
管理
举报
TAG: