占用资源狂高的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:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-07-09  
  12345
6789101112
13141516171819
20212223242526
2728293031  

我的存档

数据统计

  • 访问量: 960
  • 日志数: 250
  • 建立时间: 2008-01-01
  • 更新时间: 2008-01-01

RSS订阅

Open Toolbar