本帖最后由 郑全 于 2020-3-6 23:17 编辑
问题:
今天准备给一新运行的数据库设置归档,结果还未登陆,说数据库有问题,结果一看,数据库已经停了。
分析:
查看报警日志,有以下报错:
该问题应该是rhel7.2 的问题,经查,当前操作系统正好是rhel7.2.
原因:
On Redhat 7.x, systemd-logind service introduced a new feature to remove all IPC objects when a user fully logs out.
The feature is controled by the option RemoveIPC in the /etc/systemd/logind.conf configuration file,
see man logind.conf(5) for details.
在 RHEL 7.x的版本里,systemd-logind 服务控制着用户的行为,当用户退出,会清理该用户的所有内存段
看来问题原因找到了.
RHEL7.2默认REMOVEIPC=YES
解决办法:
1) Set RemoveIPC=no in /etc/systemd/logind.conf
2) 重启服务
systemctl daemon-reload
systemctl restart systemd-logind
参考:
1.ALERT: Setting RemoveIPC=yes on Redhat 7.2 and higher Crashes ASM and Database Instances as Well as Any Application That Uses a Shared Memory Segment (SHM) or Semaphores (SEM) (Doc ID 2081410.1)
2.ORA-27300 ORA-27301 ORA-27302 ORA-27157 Database Crash (Doc ID 438205.1)
|