您的位置:首页 > 运维架构 > Linux

ORA-27102: out of memory Linux-X86_64

2019-01-21 16:12 609 查看

一、描述
目前生产环境用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
相关文章推荐