如何优化latch: cache buffer chains

blackcat242 2015-06-08 04:32:33
在awr报告中,latch: cache buffer chains占用的时间基本是前三的,这个要如何优化?在网上看说是有参数可以修改latch数量,但是这个参数在11.2中已经是隐藏参数了。还有其它办法么
...全文
252 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
lbf_19881016 2015-06-15
  • 打赏
  • 举报
回复
首先查询是在哪个对象上出现闩锁latch,具体到那些sql语句,然后进行优化。
小灰狼W 2015-06-09
  • 打赏
  • 举报
回复
"latch: cache buffers chains" contention is typically encountered because SQL statements read more buffers than they need to and multiple sessions are waiting to read the same block. If you have high contention, you need to look at the statements that perform the most buffer gets and then look at their access paths to determine whether these are performing as efficiently as you would like. Typical solutions are:- .Look for SQL that accesses the blocks in question and determine if the repeated reads are necessary. This may be within a single session or across multiple sessions. .Check for suboptimal SQL (this is the most common cause of the events) - look at the execution plan for the SQL being run and try to reduce the gets per executions which will minimize the number of blocks being accessed and therefore reduce the chances of multiple sessions contending for the same block.
yuppy 2015-06-09
  • 打赏
  • 举报
回复
优化方向弄错了吧,应该去查查 逻辑读比较高的、低效率的SQL才是根本吧。

3,491

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 高级技术相关讨论专区
社区管理员
  • 高级技术社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧