ORA-27102: out of memory lock_sga

本文针对ORA-27102:outofmemorywithlock_sga=true错误提供了解决方案,该错误常见于32位及64位平台上的Oracle数据库。文章详细介绍了如何通过调整Linux系统的配置文件/sysctl.conf和/etc/security/limits.conf来增加共享内存段大小和用户锁定内存限制。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

ORA-27102: out of memory with lock_sga=true.

出现这个错误,32位平台可能是因为SGA设置得过大。

但64位平台也可能出现,在LINUX系统下,如果当前ORACLE用户权限不足,就会出现这个错误。解决办法如下:

1, change system wide parameter in file : /etc/sysctl.conf

# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296

2,set user quota parameter on file /etc/security/limits.conf, following limit oracle and grid user lock memory upper to 40GBytes.

grid soft memlock 41943040
grid hard memlock 41943040
oracle soft memlock 41943040
oracle hard memlock 41943040

-- logout and relogin as oracle ,check current user limit quotas.

[oracle@stilogdb2 ~]$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 540672
max locked memory (kbytes, -l) 41943040
max memory size (kbytes, -m) unlimited
open files (-n) 65536

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/350519/viewspace-1050788/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/350519/viewspace-1050788/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值