execute to parse , statspack

本文探讨了Oracle数据库中CPU利用率高的问题,分析了ExecutetoParse比率低的原因及影响,并提出了通过调整session_cached_cursors参数来优化解析操作的方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

execute to parse below 20%:
statspack explain:
-- some piece from artile :
100 * (1 - Parses/Executions) = Execute to Parse
Low vaule for this ratio can also be caused by the snapshot boundary occurring during a period of high parsing so that the executions have not occurred before the end of the snapshot. Check the next snapshot to see if there are enough executes to account for the parses in this report.
你可以去找sprepins.sql找出Execute to Parse 的计算方法。
看了就知道了 --- biti_rainy
系统不是太慢,但是cpu利用率居高不下。稍微多点连接cpu就上去,并且慢。
主要是想找到解决cpu 瓶颈的方法。
最大的原因是你的应用不使用bind导致,shared pool的活就让cpu累的够呛了
这个值的高低跟 bind var没有必然联系
建议你做的是增加 session_cached_cursors 到 100 或者 200,pga足够的话 --- biti_rainy
即使是soft parse 也会被统计入 parse count,所以这个指标并不能反应
出 fast soft(pga 中)/soft (shared pool中)/hard (shared pool 中新解析)
几种解析的比例。只有在pl/sql的类似循环这种程序中使用使用变量才能避免大量parse
所以这个指标跟是否使用bind并没有必然联系
增加session_cached_cursors 是为了在大量parse的情况下把soft转化为fast soft而节约资源 --- biti_rainy
[@more@]

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

转载于:http://blog.itpub.net/350519/viewspace-1041565/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值