ITPub博客

首页 > 应用开发 > IT综合 > execute to parse

execute to parse

原创 IT综合 作者:jss001 时间:2009-02-11 16:10:34 0 删除 编辑

Soft Parse %:软解析百分比

round(100*(1-:hprs/:prse),2)

' Execute to Parse %:执行次数与解析次数百分比

round(100*(1-:prse/:exe),2)


其中 Execute to Parse = round(100*(1-:prse/:exe),2) 的两个指标分别为:

prse = select value from v$sysstat where name = 'parse count (total)';
exe = select value from v$sysstat where name = 'execute count';

即使是soft parse 也会被统计入 parse count,所以这个指标并不能反应
出 fast soft(pga 中)/soft (shared pool中)/hard (shared pool 中新解析)
几种解析的比例。只有在pl/sql的类似循环这种程序中使用使用变量才能避免大量parse
所以这个指标跟是否使用bind并没有必然联系
增加session_cached_cursors 是为了在大量parse的情况下把soft转化为fast soft而
节约资源

[@more@]

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

请登录后发表评论 登录
全部评论
  • 博文量
    306
  • 访问量
    871815