oracle使用内存的错误,ORA-27102: out of memory

本文解决了一个由于内存分配问题导致的Oracle数据库启动失败的问题。通过调整Linux系统的共享内存参数,成功解决了ORA-27102: out of memory错误。

网上参阅资料,整理到这里,以备查阅。

主要由于内存的分配问题,导致oracle数据库启动失败。


数据库关闭之后重新启动,出现下面的错误:

SQL> startup;
ORA-27102: out of memory
Linux-x86_64 Error: 28: No space left on device
SQL> startup;
ORA-27102: out of memory
Linux-x86_64 Error: 28: No space left on device

Cause

shmall is the total amount of shared memory, in pages, that the system can use at one time.

Solution

Set shmall equal to the sum of all the SGAs on the system, divided by the page size. 

The page size can be determined using the following command: 

做了如下操作,可正常启动:

vi  /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmall = 4194304(4×1024×1024)

kernel.core_uses_pid = 1
#kernel.shmall = 2097152
kernel.shmall = 4194304
kernel.shmmax = 5368709120
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128

then run the following command:

# sysctl -p


net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
kernel.shmall = 4194304
kernel.shmmax = 5368709120
kernel.shmmni = 4096
kernel.sem = 250 32000 100 12

# cat /proc/sys/kernel/shmall
4194304


参考网文:

http://yuekczy.spaces.live.com/blog/cns!139B3FC812B094AB!397.entry

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

转载于:http://blog.itpub.net/24558279/viewspace-694636/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值