ORA-27102: out of memory
安装Oracle数据库时,报ORA-27102: out of memory错误
一、out of memory错误
在使用DBCA建库时,提示ORA-27102: out of memory错误

二、原因
数据库内核参数shmall的值设置得过低,导致数据库安装失败,出现ORA-27102: out of memory报错提示
三、解决方法
1.查看系统内存
free命令检查系统内存,发现内存充足
1 | # free -g |
2.检查系统内核中内存参数设置
系统内核参数与内存相关的有两个:kernel.shmall和kernel.shmmax,其中只有kernel.shmall参数设置不当才会引起内存不足的错误提示,合理的shmall设置可以减少数据库在启动和运行时对内存的过度分配,从而提高系统的整体性能和稳定性
1 | # more /etc/sysctl.conf |
3.设置合理的内存参数
1 | (1) 计算shmmax和shmall参数值 |
四、科普Oracle内存参数
1 | 1. kernel.shmmax : |
五、Minimum Parameter Settings for Installation
Use this table to set parameters manually if you cannot use the fixup scripts.
Note:
- Unless otherwise specified, the kernel parameter and shell limit values shown in the following table are minimum values only. For production database systems, Oracle recommends that you tune these values to optimize the performance of the system. See the operating system documentation for more information about tuning kernel parameters.
- If the current value for any parameter is greater than the value listed in this table, then the Fixup scripts do not change the value of that parameter.
Table A-1 Minimum Operating System Resource Parameter Settings
| Parameter | Value | File |
|---|---|---|
| semmslsemmnssemopm****semmni | 25032000100128 | /proc/sys/kernel/sem |
| shmall | Greater than or equal to the value of shmmax, in pages. | /proc/sys/kernel/shmall |
| shmmax | Half the size of physical memory in bytesSee My Oracle Support Note 567506.1 for additional information about configuring shmmax. | /proc/sys/kernel/shmmax |
| shmmni | 4096 | /proc/sys/kernel/shmmni |
| panic_on_oops | 1 | /proc/sys/kernel/panic_on_oops |
| file-max | 6815744 | /proc/sys/fs/file-max |
| aio-max-nr | 1048576Note: This value limits concurrent outstanding requests and should be set to avoid I/O subsystem failures. | /proc/sys/fs/aio-max-nr |
| ip_local_port_range | Minimum: 9000Maximum: 65500 | /proc/sys/net/ipv4/ip_local_port_range |
| rmem_default | 262144 | /proc/sys/net/core/rmem_default |
| rmem_max | 4194304 | /proc/sys/net/core/rmem_max |
| wmem_default | 262144 | /proc/sys/net/core/wmem_default |
| wmem_max | 1048576 | /proc/sys/net/core/wmem_max |
- Title: ORA-27102: out of memory
- Author: 𝓓𝓸𝓷
- Created at : 2025-03-10 11:23:18
- Updated at : 2025-03-10 16:17:38
- Link: https://www.zhangdong.me/oracle-ora-27102.html
- License: This work is licensed under CC BY-NC-SA 4.0.
评论
