ORA-27102: out of memory Linux-X86_64

一、描述
目前生产环境用X86服务器的是越来越多了,非核心系统基本不会用小型机了。
客户服务器扩内存,想修改SGA大小,但是提示报告内存溢出。原有物理内存8G,扩容到32G,SGA和PGA都需要进行调整才能起到优化的效果。

二、报错信息如下
SQL> startup nomount
ORA-27102: out of memory
Linux-x86_64 Error: 28: No space left on device
第一感觉好像是物理内存不够用了,我们设置SGA+PGA=物理内存的60%左右,结果就是报错,这里提醒大家,修改参数之前,一定要备份参数文件。

三、分析
我们要知道安装数据库的时候其实修改了一个文件/etc/sysctl.conf,这个文件里的内容大家要知道是什么意思才行,切勿复制粘贴。原因在这里:
SHMALL is the total amount of shared memory, in pages, that the system can use at one time.

四、解决方法
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:

$ getconf PAGE_SIZE
4096
For example, if the sum of all the SGAs on the system is 16Gb and the result of '$ getconf PAGE_SIZE' is 4096 (4Kb) then set shmall to 4194304 pages

As the root user set the SHMALL to 4194304 in the /etc/sysctl.conf file:

kernel.shmall = 4194304

then run the following command:

$ sysctl -p
$ cat /proc/sys/kernel/shmall
4194304

五、总结
对于/etc/sysctl.conf这个文件不了解的同学,需要补课了。喜欢的朋友可以转发,欢迎技术交流。

转载于:https://blog.51cto.com/roidba/2345063

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值