[转帖]ORA-04031的解决办法_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
2
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 2618 | 回复: 1   主题: [转帖]ORA-04031的解决办法        上一篇   下一篇 
Trompokfurl
注册用户
等级:新兵
经验:72
发帖:2
精华:0
注册:2017-3-9
状态:离线
发送短消息息给Trompokfurl 加好友    发送短消息息给Trompokfurl 发消息
发表于: IP:您无权察看 2019-9-16 17:17:24 | [全部帖] [楼主帖] 楼主

status = 4031-ORA-04031: unable to allocate 12312 bytes of shared memory ("shared pool","unknown object","KKSSP^422","kglseshtTable")).


查一下当前shared pool的大小

select sum(bytes)/1024/1024 mb from v$sgastat where pool='shared pool';


解决办法:

用如下命令修改SGA_MAX_SIZE与SGA_TARGET的值,调大一些,比如调整为5G,数据库正常。

SQL> alter system set sga_max_size=5G  scope=spfile;
SQL> alter system set sga_target=5G  scope=spfile;




赞(0)    操作        顶端 
联动大白
注册用户
等级:列兵
经验:91
发帖:0
精华:0
注册:2015-5-27
状态:离线
发送短消息息给联动大白 加好友    发送短消息息给联动大白 发消息
发表于: IP:您无权察看 2019-10-21 0:30:00 | [全部帖] [楼主帖] 2  楼

为了方便大家阅读,我对文章中错误号来解释一下吧!

Error Id: ORA-04031

Title: unable to allocate string bytes of shared memory ("string","string","string","string")

Description:

unable to allocate string bytes of shared memory ("string","string","string","string")

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 INIT.ORA parameters "shared_pool_reserved_size" and "shared_pool_size". If the large pool is out of memory, increase the INIT.ORA parameter "large_pool_size".

Cause:

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


也许你已明白,但对一个人有用也是我存在的理由!^_^ By:持之以恒的大白

-- 来自: 北京联动北方科技有限公司



赞(0)    操作        顶端 
总帖数
2
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论