ORA-27102: out of memory Linux-X86_64

发布时间:2020-07-13 23:34:02 作者:roidba
来源:网络 阅读:1011

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

推荐阅读:
  1. Window server 2008R2 64位系统安装11g库停在2%报ora-27102错误怎么办
  2. 为什么做的报表领导不满意,如何提升报表的价值?

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

ora-27102 out of

上一篇:统计Exchange邮件收发月度报表的脚本

下一篇:Selenium(二)——webdriver 开始

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》