/dev/shm过小导致ORA-00845错误解决方法

本文详细解释了如何通过增加/dev/shmmountpoint大小和调整文件描述符数量来解决Oracle数据库启动时出现的ORA-00845错误。此外,还提供了确保SGA和PGA正确配置的方法,以避免Linux系统中的EMFILE错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

The workaround, if you encounter the ORA-00845 error, is to increase the /dev/shm
mountpoint size.
For example:
# mount -t tmpfs shmfs -o size=7g /dev/shm
To make this change persistent across system restarts, add an entry in /etc/fstab
similar to the following:
shmfs /dev/shm tmpfs size=7g 0

 

Starting with Oracle Database 11g, the Automatic Memory Management feature
requires more shared memory (/dev/shm)and file descriptors. The size of the shared
memory must be at least the greater of the MEMORY_MAX_TARGET and MEMORY_
TARGET parameters for each Oracle instance on the computer. If the MEMORY_MAX_
TARGET parameter or the MEMORY_TARGET parameter is set to a non-zero value, and
an incorrect size is assigned to the shared memory, it results in an ORA-00845 error at
startup. On Linux systems, if the operating system /dev/shm mount size is too small
for the Oracle system global area (SGA) and program global area (PGA), it will result
in an ORA-00845 error.
The number of file descriptors for each Oracle instance must be at least
512*PROCESSES. The limit of descriptors for each process must be at least 512. If file
descriptors are not sized correctly, you will see an ORA-27123 error from various
Oracle processes and potentially Linux Error EMFILE (Too many open
files)in non-Oracle processes.
To determine the amount of shared

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值