码迷,mamicode.com
首页 > 系统相关 > 详细

ORA-27102: out of memory Linux-X86_64

时间:2019-01-21 17:06:38      阅读:232      评论:0      收藏:0      [点我收藏+]

标签:pac   erro   提醒   一个   粘贴   sys   ora-27102   pga   ide   

一、描述
目前生产环境用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这个文件不了解的同学,需要补课了。喜欢的朋友可以转发,欢迎技术交流。

ORA-27102: out of memory Linux-X86_64

标签:pac   erro   提醒   一个   粘贴   sys   ora-27102   pga   ide   

原文地址:http://blog.51cto.com/roidba/2345063

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!