oralce异常 ORA-04031: unable to allocate bytes of shared memory ("shared pool","unknown object"....

问题:ORA-04031: unable to allocate 12312 bytes of shared memory ("shared pool","unknown object","KKSSP^405","kglseshtTable")

解决:增加数据库存内存大小,一定注意服务器本身内存,不是任意

SQL> alter system set memory_max_target=2G scope=spfile;

System altered.

SQL> alter system set memory_target=2G scope=spfile;

System altered.

查看修改结果:

SQL> show parameter memory

NAME                     TYPE     VALUE
------------------------------------ ----------- ------------------------------
hi_shared_memory_address         integer     0
inmemory_adg_enabled             boolean     TRUE
inmemory_automatic_level         string     OFF
inmemory_clause_default          string
inmemory_expressions_usage         string     ENABLE
inmemory_force                 string     DEFAULT
inmemory_max_populate_servers         integer     2
inmemory_optimized_arithmetic         string     DISABLE
inmemory_prefer_xmem_memcompress     string
inmemory_prefer_xmem_priority         string
inmemory_query                 string     ENABLE
inmemory_size                 big integer 1G
inmemory_trickle_repopulate_servers_ integer     1
percent
inmemory_virtual_columns         string     MANUAL
inmemory_xmem_size             big integer 0
memory_max_target             big integer 2G
memory_target                 big integer 2G
optimizer_inmemory_aware         boolean     TRUE
shared_memory_address             integer     0

注意:启动出现“MEMORY_TARGET not supported on this system”异常,一定要修改dev/shm分区内存

可参照这个方案处理:https://blog.csdn.net/hhj724/article/details/106091948

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小努蛋

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值