Ora-27102: Out Of Memory: Linux Error: 12: Cannot Allocate Memory with LOCK_SGA=TRUE[ID 401077.1]


Ora-27102: Out Of Memory: Linux Error: 12: Cannot Allocate Memory with LOCK_SGA=TRUE 

In this Document
  Symptoms
  Cause
  Solution


Applies to:

Linux OS - Version: Enterprise Linux 4.2 and later   [Release: RHEL4U2 and later ]
Linux x86
Linux x86-64
Linux Kernel - Version: 4.2

Symptoms

After setting oracle init.ora parameter "lock_sga=true" , the instance will not start, gets

ORA-27102: out of memory Linux-x86_64 Error: 12: Cannot allocate memory on startup

SQL> startup nomount
ORA-27102: out of memory
Linux Error: 12: Cannot allocate memory
SQL> startup mount;
ORA-27102: out of memory
Linux Error: 12: Cannot allocate memory

.

Cause

The "ulimit -l" parameter is not set to allow the amount of memory (sga size) being requested to be locked. For example:


# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 20
file size (blocks, -f) unlimited
pending signals (-i) 16382
max locked memory (kbytes, -l) 64                 # <<<<<<<
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited


Refer to the "man" page for ulimit -l


Solution

To implement the solution do:


Issue command "ulimit -l unlimited" prior to starting the instance







  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值