正在外面办事呢,项目经理打电话并截图说明,物理服务器增加内存后,他调整sga+pga后,重启无法启动了,报错ORA-27102: out of memory。
SYS@orcl> startup;
ORA-27102: out of memory
Linux-x86_64 Error: 28: No space left on device
SYS@orcl>
常见问题,需要调整/etc/sysctl.conf中的kernel.shmmax和kernel.shmall参数
kernel.shmmax# 官网建议:以字节为单位的物理内存(RAM)大小的一半或者更大
kernel.shmmax可以设置为约服务器物理内存的80%,如16G物理内存,shmmax的值可设置为16*1024*1024*1024*80% = 13461882265
kernel.shmall的值设置为shmmax除以操作系统页的大小
查看pagesize的大小 # getconf PAGESIZE
根据新的内存大小计算,修改/etc/sysctl.conf并执行生效sysctl -p,顺利启动数据库
mos文档
Oracle Linux: Modifying Kernel Parameters on Oracle Linux (Doc ID 390279.1)
Oracle Linux: How to permanently set kernel parameters on Linux (Doc ID 242529.1)
Oracle Linux Installation with Reduced Set of Packages for Installing Oracle Products e.g. Oracle Database (Doc ID 728346.1)
Oracle Database (RDBMS) 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) (Doc ID 169706.1)
Oracle Database (RDBMS) on Unix AIX,HP-UX,Linux,Solaris and MS Windows Operating Systems Installation and Configuration Requirements Quick Reference (12.1/12.2/18c/19c) (Doc ID 1587357.1)