12
返回列表 发新帖
楼主: Byte_X_

通过session_cached_cursors 参数来减少软解析次数

[复制链接]
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
11#
发表于 2009-12-6 05:20 | 只看该作者
原帖由 china_yebin 于 2009-12-5 07:57 发表
确实分析的很好,学习了,但我想更正一下,session_cached_cursors 参数来减少软解析次数这种方法应该叫
服务器端缓存而不是客户端缓存。
客户端缓存方式是由客户端API实现的。


Correct. But note that the session cursor cache is in UGA on the server side, not always in SGA. Each UGA is for one session. So although it's in the server process, it's private to a session.

Yong Huang

使用道具 举报

回复
论坛徽章:
3
2010新春纪念徽章
日期:2010-01-04 08:33:082010新春纪念徽章
日期:2010-03-01 11:07:23ITPUB十周年纪念徽章
日期:2011-11-01 16:24:04
12#
发表于 2010-1-13 12:22 | 只看该作者
原帖由 Byte_X_ 于 2009-12-2 22:25 发表
如何设置选择session_cached_cursors的值呢!
我们可以通过查v$sesstat中每个session 的
        session cursor cache hits              
        session cursor cache count            
        parse count (total)

  这三个事件来设置 session_cached_cursors
  1.如果 "session cursor cache count" 等于 "session_cached_cursors" 参数值 而且   
          "parse count (total)" 与 "session cursor cache hits" 相差很大的session 很多
          就证明需要增加 session_cached_cursors 的取值。
  
  2.在调整 session_cached_cursors的取值 时不应该大于 open_cursors 参数的值。
  
  3.如果存在大量的session "session cursor cache count"小于 session_cached_cursors 的取值
     "parse count (total)" 与 "session cursor cache hits" 相差又很大,说明是open_cursors参数
     限制了缓存的cursor 的个数 应适当增大open_cursors的取值。


"parse count (total)" 与 "session cursor cache hits" 相差又很大,说明是open_cursors参数
     限制了缓存的cursor 的个数 应适当增大open_cursors的取值
这里的open_cursors参数限制了缓存的cursor 的个数,没明白,哪位兄弟举个例子

使用道具 举报

回复
论坛徽章:
0
13#
发表于 2010-1-13 19:24 | 只看该作者
session_cached_cursors  参数减少软解析次数

使用道具 举报

回复
论坛徽章:
13
生肖徽章2007版:蛇
日期:2009-09-29 15:44:15ITPUB十周年纪念徽章
日期:2011-11-01 16:21:152010年世界杯参赛球队:日本
日期:2010-05-04 17:51:192010年世界杯参赛球队:南非
日期:2010-04-28 10:07:122010年世界杯参赛球队:希腊
日期:2010-04-23 16:19:412010新春纪念徽章
日期:2010-03-01 11:08:342010年世界杯参赛球队:科特迪瓦
日期:2010-01-27 14:47:432010年世界杯参赛球队:意大利
日期:2010-01-25 08:58:012010新春纪念徽章
日期:2010-01-04 08:33:08生肖徽章2007版:鼠
日期:2009-11-10 11:54:09
14#
发表于 2010-1-13 21:46 | 只看该作者
mark

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表