手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

在 11.2.0.4 运行 utlrp.sql 出现 ORA-04031 错误解决方法

[日期:2015-11-23] 来源:Linux社区  作者:paulyibinyi [字体:大 中 小]

上次遇到一个案例:

在客户现场11.2.0.4版本运行utlrp.sql 编译脚本时,出现以下错误:
ORA-12801: error signaled in parallel query server P237
ORA-12853: insufficient memory for PX buffers: current 84352K, max needed 13280400K
ORA-04031: unable to allocate 65560 bytes of shared memory (“large pool”,”unknown object”,”large pool”,”PX msg pool”)
ORA-06512: at “SYS.UTL_RECOMP”, line 804
ORA-06512: at line 4

原因是:

Cause
 The degree of parallelism used for recompilation is determined automatically based on instance parameters cpu_count and parallel_threads_per_cpu.
 On systems with high number of cpus that can lead to high degree of parallelism and lead to high memory usage overall and high memory usage in the large pool since it is used by parallel execution for message buffers.

By default utlrp.sql passes a 0 to utlprp.sql:

从上面解释可以知道依赖于cpu_count的值和parallel_threads_per_cpu的值,如果cpu多,这个并行度就会高,导致large pool会使用更多的内存

所以解决这个问题就简单了

减少实例的并行度值

alter system set PARALLEL_MAX_SERVERS=5 scope=both;
alter system set PARALLEL_SERVERS_TARGET=2 scope=both;

编译成功。

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

本文永久更新链接地址:http://www.linuxidc.com/Linux/2015-11/125444.htm

linux
相关资讯       ORA-04031 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款