免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2649 | 回复: 4
打印 上一主题 下一主题

报错:ORA-00604,ORA-04031 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-14 07:37 |只看该作者 |倒序浏览
试验环境 数据库版本10.2.0.1.0,操作系统版本RHEL4U6
sys@ORCL> desc dictionary;
ERROR:
ORA-00604: error occurred at recursive SQL level 1
ORA-04031: unable to allocate 16 bytes of shared memory ("shared pool","select
obj#,type#,ctime,mtim...","sql area","kglhin: temp")

查了一下资料如下:
ORA-04031 unable to allocate string bytes of shared memory ("string","string","string","string")

Cause:
More shared memory is needed than was allocated in the shared pool.

Action:
If the shared pool is out of memory, either use the DBMS_SHARED_ POOL package to pin large packages, reduce your use of shared memory, or increase the amount of available shared memory by increasing the value of the initialization parameters SHARED_POOL_RESERVED_SIZE and SHARED_ POOL_SIZE. If the large pool is out of memory, increase the initialization parameter LARGE_POOL_SIZE.

sys@ORCL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[oracle@localhost ~]$ sqlplus / as sysdba;

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jan 29 11:25:47 2009

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected.
ERROR:
ORA-01012: not logged on

问题:当我exit后,就无法再登陆了,只能重启系统改shared pool 大小,真实环境也只能重启吗?(新手,请前辈们赐教)

论坛徽章:
0
2 [报告]
发表于 2009-04-14 08:42 |只看该作者
没有采用自动SGA管理?自动SGA管理应该可以动态扩展share pool的大小

论坛徽章:
0
3 [报告]
发表于 2009-04-14 09:24 |只看该作者
我知道可以设置sga_target,只是自己在练习阶段,把share_pool手动改了下。

论坛徽章:
2
丑牛
日期:2014-06-11 13:55:04ChinaUnix元老
日期:2015-02-06 15:16:14
4 [报告]
发表于 2009-04-14 11:08 |只看该作者

回复 #3 czy5025 的帖子

呵呵,好像是只能重启修改,所以在10g开始提供自动的功能了

[ 本帖最后由 山野村夫 于 2009-4-14 11:27 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2009-04-14 11:18 |只看该作者
我明白了。谢谢。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP