重庆思庄Oracle、Redhat认证学习论坛

标题: 关于ORA-27102: out of memory 解决方法 [打印本页]

作者: jianghao    时间: 2023-8-9 16:23
标题: 关于ORA-27102: out of memory 解决方法

  分析我们要知道安装数据库的时候其实修改了一个文件/etc/sysctl.conf,这个文件里的内容大家要知道是什么意思才行,切勿复制粘贴。原因在这里:SHMALL is the total amount of shared memory, in pages, that the system can use at one time.表示超出了内存范围,如果机器的内存是够的那么可能就是操作系统参数shmall设置过小影响了,shmall 参数是全部允许使用的共享内存大小。

  解决方法

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/shmall4194304

shmall 该参数表示系统任意时刻可以分配的所有共享内存段的总和的最大值(以页为单位),其值应不小于shmmax/page_size。例如上面的16G,可以为15461882265/4096 (getconf PAGESIZE可得到页大小) = 3774873,或17179869184/4096=4194304,根据内存100%来推算内存8G为 2097152, 内存16G为4194304, 内存32G为8388608,内存64G为16777216。







欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2