设为首页 收藏本站
查看: 956|回复: 0

[经验分享] startup Linux下oracle报以下错

[复制链接]

尚未签到

发表于 2018-9-12 06:55:46 | 显示全部楼层 |阅读模式
startup Linux下oracle报以下错  
ORA-27102:out of memory Linux-X86_64
  
Error: 28: No space left on device      [ID 301830.1]
  

  

  
适用于:
  
Oracle Server - Enterprise Edition - Version: 9.2.0.1 and later   [Release: 9.2 and later ]
  
Oracle Server - Standard Edition - Version: 9.2.0.1 and later    [Release: 9.2 and later]
  
Oracle Server - Enterprise Edition - Version: 9.2.0.1 and later    [Release: 9.2 and later]
  
Linux x86-64
  

  
    When trying to increase the SGA to approach half available RAM with an Oracle 64-bit version
  
on a Linux 64-bit operating system, even though shmmax is set to match half the amount of  RAM,
  
you get the following error when trying to start the instance:
  
    在64位linux下使用64位版本的oracle,即使把shmmax参数的大小设置系统可用内存的一半,
  
当把SGA增加到接近一半的系统内存时候,当startup实例的时候,可能得到以下错误
  

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

  

  
Changes
  

  
shmall is too small, most likely is set to the default setting of 2097152
  

  
$ cat /proc/sys/kernel/shmall
  
2097152
  

  

  
Cause
  

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

  
shmall是系统在所有页同一时间使用的共享内存段的总数
  

  

  
Solution
  
解决办法
  

  
Set shmall equal to the sum of all the SGAs on the system, divided by the page size.
  
设定shmall的值为等同于在系统中所有SGA占用内存大小除以分页大小的得出的最后的值
  

  
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
  

  
例如,如果系统中所有SGA的综合为16Gb,然后getconf PAGE_SIZE 得出的结果是4096(4k)
  
那么shmall就设定为4194304页
  

  
As the root user set the shmall to 4194304 in the /etc/sysctl.conf file:
  
用root用户在/etc/sysctl.conf 文件中设定shmall为 4194304
  

  
kernel.shmall = 4194304
  

  
then run the following command:
  
设定后执行以下命令
  

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

  

  
NOTE:
  

  
The above command loads the new value and a reboot is not necessary.
  
以上命令无须重启
  
Switch back to being the oracle user and retry the startup command.
  
切换到oracle用户,重新执行startup命令
  

  
Modifying /etc/sysctl.conf is a permanent workaround (applies at boot time).
  

  
修改/etc/sysctl.conf 是一个永久的解决办法(适用于开机时间)
  

  
If for some reason you DO NOT want to change the system wide configuration, you can do it
  
on the fly by directly changing the kernel pseudo FS AKA procfs.
  
如果出于某种原因不详对系统大范围改动配置,可以直接改变内核的pseudo FS AKA procfs.
  

  
# echo "4194304" > /proc/sys/kernel/shmall
  

  
Using HUGEPAGES does not alter the calculation for configuring shmall.
  
使用大页不会改变配置shmall的计算结果
  

  

  
以上翻译仅供参考
  
References
  

  
NOTE:169706.1 - Oracle Database on Unix AIX,HP-UX,Linux,Mac OS X,Solaris,Tru64 Unix Operating Systems Installation and Configuration Requirements Quick Reference (8.0.5 to 11.2)
  
NOTE:851598.1 - Master Note of Linux OS Requirements for Database Server
  
NOTE:1351051.2 - Information Center: Install and Configure Database Server/Client Installations
  
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
  
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Standard Edition
  
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
  

  
64-BIT; 64BIT; HUGEPAGES; INSTALL & CONFIGURE; LINUX; NO SPACE LEFT ON DEVICE; OUT OF MEMORY; START INSTANCE
  

  
ORA-27102
  

  
Copyright (c) 2007, 2010, Oracle. All rights reserved. Legal Notices and Terms of Use | Privacy Statement



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-573044-1-1.html 上篇帖子: Oracle GoldenGate 实施经验分享 下篇帖子: oracle 用户频繁被锁
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表