Statspack报告各部分简要说明

Statspack之十一-Statspack报告各部分简要说明

    • 第一部分

数据库概要信息

DB Name         DB Id    Instance     Inst Num Release     Cluster Host
---------- ----------- ------------ --------   -----------  ------------
GLOB         188430914   glob              1  9.2.0.4.0   NO    b02

    • 第二部分

数据库采样时段,这一部分记录了数据库采样的时间,以及采样点数,这部分信息对于report来说是十分重要。

任何统计数据都需要通过时间纬度来衡量,离开了时间,任何数据都失去了意义。

我们在论坛上经常看到有人贴出Top 5等待事件寻求分析,我们的回答是:

无法分析,如果没有时间纬度!

            Snap Id     Snap Time      Sessions Curs/Sess Comment
            ------- ------------------ -------- --------- -------------------
Begin Snap:   508    10-Nov-03 15:27:29       76      39.4
End Snap:     511    10-Nov-03 15:57:42       66      35.4
   Elapsed:                               30.22 (mins)

    • 第三部分

主要性能指标说明:

  • Execute to Parse %执行分析比率

Instance Efficiency Percentages (Target 100%)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            Buffer Nowait %:  100.00       Redo NoWait %: 100.00
            Buffer  Hit   %:   99.81    In-memory Sort %: 100.00
            Library Hit   %:   98.75        Soft Parse %:  97.05
         Execute to Parse %:   44.21         Latch Hit %:  94.79
Parse CPU to Parse Elapsd %:   11.74     % Non-Parse CPU:  96.08

执行分析比率计算公式如下:

100 * (1 - Parses/Executions) = Execute to Parse

所以如果系统Parses > Executions,就可能出现该比率小于0的情况.

该参数计算来自以下部分:

Instance Activity Stats for DB: ORA9  Instance: ora91  Snaps: 30 -32

Statistic                              Total     per Second    per Trans
--------------------------------- ------------------ -------------- ------------
exchange deadlocks                       481            0.2          0.0
execute count                      4,873,158        1,968.2         94.4

……………

parse count (failures)                   542            0.2          0.0
parse count (hard)                    80,281           32.4          1.6
parse count (total)                2,718,643        1,098.0         52.6
parse time cpu                        44,009           17.8          0.9
parse time elapsed                   374,902          151.4          7.3

…………………….

通过公式及以上两个数值:

100 * (1 - Parses/Executions) = Execute to Parse

100 * (1 - 2,718,643/4,873,158) = 0.44211884777797067117462 * 100 = 44.21

该值<0通常说明shared pool设置或效率存在问题

造成反复解析,reparse可能较严重,或者可是同snapshot有关

如果该值为负值或者极低,通常说明数据库性能存在问题

  • Parse CPU to Parse Elapsd %

来自parse time cpu和parse time elapsed

100*(parse time cpu / parse time elapsed)= Parse CPU to Parse Elapsd %

100*(44,009 / 374,902)= 11.7388010733471680599196590% = 11.74%

  • Rollback per transaction 平均事务回滚率

  % Blocks changed per Read:    0.37    Recursive Call %:    1.14
   Rollback per transaction %:   38.22       Rows per Sort:   11.83


如果回滚率过高,可能说明你的数据库经历了太多的无效操作
过多的回滚可能还会带来Undo Block的竞争

该参数计算公式如下:
Round(User rollbacks / (user commits + user rollbacks) ,4)* 100% ……………. user commits 31,910 12.9 0.6 user rollbacks 19,740 8.0 0.4 …………….
对于本例:
Round(19740 / (31910 + 19740),4) = .3822

这一部分的内容还没有写完,在继续进行中...

:)

2004年6月25日 星期五

If you have any question,please mail to eygle@itpub.net .

[@more@]

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

转载于:http://blog.itpub.net/257699/viewspace-814820/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值