Quantcast
Channel: CSDN博客推荐文章
Viewing all articles
Browse latest Browse all 35570

验证OWI计数差异

$
0
0
select a.value A , b.value B , c.value C , d.value D
from   (select sum(bbwait)as value
       from x$kcbwds) a,
       (select total_waits as value
       from v$system_event
       where event = 'buffer busy waits') b,
       (select sum(count) as value
       from v$waitstat ) c,
       (select sum(value) as value
       from v$segment_statistics
       where statistic_name = 'buffer busy waits') d;
      
        A          B          C          D
---------- ---------- ---------- ----------
        73          5         73          3
       
        原因是由于并非所有x$结构都受到锁存器保护。因此,在高度并发环境中,一定会出现此类计数差异。
作者:royjj 发表于2013-3-21 23:45:59 原文链接
阅读:85 评论:0 查看评论

Viewing all articles
Browse latest Browse all 35570

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>