123
返回列表 发新帖
楼主: BTxigua

[讨论] ORA-4031错误,请大家帮忙看看是否可以定位原因

[复制链接]
论坛徽章:
59
狮子座
日期:2016-03-26 13:35:402013年新春福章
日期:2013-02-25 14:51:24双黄蛋
日期:2013-02-25 11:06:15ITPUB 11周年纪念徽章
日期:2012-10-09 18:06:20灰彻蛋
日期:2012-04-25 13:19:33紫蛋头
日期:2012-03-14 11:16:09最佳人气徽章
日期:2012-03-13 17:39:18玉石琵琶
日期:2012-02-21 15:04:38鲜花蛋
日期:2011-11-30 14:13:01ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15
21#
发表于 2011-4-2 09:33 | 只看该作者
I added up all the subpools, 2082 MB, still less than 2560M......

使用道具 举报

回复
论坛徽章:
13
数据库板块每日发贴之星
日期:2007-09-20 01:04:22铁扇公主
日期:2012-02-21 15:02:402010新春纪念徽章
日期:2010-03-01 11:08:28月度精华徽章
日期:2009-04-01 02:15:18数据库板块每日发贴之星
日期:2008-05-17 01:02:08生肖徽章2007版:兔
日期:2008-04-07 19:49:48生肖徽章2007版:鼠
日期:2008-01-02 17:35:53生肖徽章2007版:鸡
日期:2008-01-02 17:35:53ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44数据库板块每日发贴之星
日期:2007-10-20 01:03:31
22#
 楼主| 发表于 2011-4-2 17:31 | 只看该作者
原帖由 Yong Huang 于 2011-4-2 03:25 发表
> 确实,shared pool原来的大小是2560M。

Something is not right. I added up all the bytes in v$sgastat for each instance as shown in the attachment ngact1_j000_4311.rar. All the sums are about 450 MB. Maybe the shared pool size was 450 MB when the error occurred? Or I didn't do the addition correctly?

Yong Huang


Memory Utilization of Subpool 1 :455890432
Memory Utilization of Subpool 2 :436233560
Memory Utilization of Subpool 3 :453006256
Memory Utilization of Subpool 4 :419451416
Memory Utilization of Subpool 5 :419451680
                                          Total :2184033344

使用道具 举报

回复
论坛徽章:
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
23#
发表于 2011-4-3 05:28 | 只看该作者
原帖由 bluemoon0083 于 2011-4-1 19:19 发表
they have 5 subpools, you mean 450 MB here is the size of one subpool ?


I'm sorry. Somehow I was thinking of 5 instances of a RAC database. A big mistake! Indeed you have 5 subpools and the total size is about what you said.

Since memory is evenly distributed and used by your subpools, reducing subpools is not the best solution, even though it should be able to merge some small chunks into bigger ones. Your biggest shared pool consumers are gcs resources and gcs shadows. According to Bug 6614853, you can

--- begin quote ---
execute following query
    select * from v$resource_limit
     where resource_name like 'gcs%' or resource_name like 'ges%'

  And compare max_utilization and initial_allocations.
  If max_utilization is very large compared to initial_allocations
  for ges_ress/ges_locks, they can consider to set _lm_ress/_lm_locks
  parameter to allocate spaces at database startup time.
--- end quote ---

Other settings that can save shared pool usage will turn off various database advisories. I always set db_cache_advice to off on all databases I manage (I never check v$db_cache_advice). Several others are controlled by underscore parameters, such as _object_statistics and _library_cache_advice (Ref: Bug 8561410). Implications of setting them can be found in
http://yong321.freeshell.org/com ... cyAndStatistics.doc

Anyway, I would check v$resource_limit for 'gcs%' resources and possibly lower _lm_ress/_lm_locks, best done with Oracle support's approval because they're underscore parameters. In addition, I would further raise shared_pool_size (and squeeze down buffer cache). Users will be more unhappy to get ORA-4031 than get slightly lower response because the data is no longer in buffer cache.

Yong Huang

使用道具 举报

回复
论坛徽章:
9
2009日食纪念
日期:2009-07-22 09:30:00ITPUB8周年纪念徽章
日期:2009-09-27 10:21:21祖国60周年纪念徽章
日期:2009-10-09 08:28:002010新春纪念徽章
日期:2010-03-01 11:19:10ITPUB9周年纪念徽章
日期:2010-10-08 09:31:22ITPUB十周年纪念徽章
日期:2011-11-01 16:23:262012新春纪念徽章
日期:2012-01-04 11:53:54ITPUB 11周年纪念徽章
日期:2012-10-09 18:08:152013年新春福章
日期:2013-02-25 14:51:24
24#
发表于 2011-4-6 11:20 | 只看该作者
原帖由 Yong Huang 于 2011-4-3 05:28 发表


I'm sorry. Somehow I was thinking of 5 instances of a RAC database. A big mistake! Indeed you have 5 subpools and the total size is about what you said.

Since memory is evenly distributed and used by your subpools, reducing subpools is not the best solution, even though it should be able to merge some small chunks into bigger ones. Your biggest shared pool consumers are gcs resources and gcs shadows. According to Bug 6614853, you can

--- begin quote ---
execute following query
    select * from v$resource_limit
     where resource_name like 'gcs%' or resource_name like 'ges%'

  And compare max_utilization and initial_allocations.
  If max_utilization is very large compared to initial_allocations
  for ges_ress/ges_locks, they can consider to set _lm_ress/_lm_locks
  parameter to allocate spaces at database startup time.
--- end quote ---

Other settings that can save shared pool usage will turn off various database advisories. I always set db_cache_advice to off on all databases I manage (I never check v$db_cache_advice). Several others are controlled by underscore parameters, such as _object_statistics and _library_cache_advice (Ref: Bug 8561410). Implications of setting them can be found in
http://yong321.freeshell.org/com ... cyAndStatistics.doc

Anyway, I would check v$resource_limit for 'gcs%' resources and possibly lower _lm_ress/_lm_locks, best done with Oracle support's approval because they're underscore parameters. In addition, I would further raise shared_pool_size (and squeeze down buffer cache). Users will be more unhappy to get ORA-4031 than get slightly lower response because the data is no longer in buffer cache.

Yong Huang

多么专业的回答:)

使用道具 举报

回复

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

本版积分规则 发表回复

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