千家信息网

RHEL 7上oracle 莫名宕机 ORA-27300

发表于:2025-02-04 作者:千家信息网编辑
千家信息网最后更新 2025年02月04日,现象:oracle 执行job:expdp,数据库实例直接宕掉,报错如下:ORA-27300: OS system dependent operation:semctl failed with sta
千家信息网最后更新 2025年02月04日RHEL 7上oracle 莫名宕机 ORA-27300

现象:

oracle 执行job:expdp,数据库实例直接宕掉,报错如下:ORA-27300: OS system dependent operation:semctl failed with status: 22ORA-27301: OS failure message: Invalid argumentORA-27302: failure occurred at: sskgpwrm1ORA-27157: OS post/wait facility removedORA-27300: OS system dependent operation:semop failed with status: 36ORA-27301: OS failure message: Identifier removedORA-27302: failure occurred at: sskgpwwait1

数据库版本11.2.0.4,操作系统版本:rhel 7
检查操作系统日志,定时任务日志并无异常;
原因:
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 服务控制着用户的行为,当用户退出,会清理该用户的所有内存段.那么定时任务的数据泵就有问题了,调用的内存段是oracle的;
查看removeipc的说明:
RemoveIPC=
Controls whether System V and POSIX IPC objects belonging to the user shall be removed when the user fully logs out. Takes a boolean argument. If enabled, the user
may not consume IPC resources after the last of the user's sessions terminated. This covers System V semaphores, shared memory and message queues, as well as POSIX
shared memory and message queues. Note that IPC objects of the root user are excluded from the effect of this setting. Defaults to "yes".
The default value for RemoveIPC in RHEL7.2 is yes.
默认值为yes; 所以当有定时任务时:
As a result, when the last oracle or grid user disconnects, the OS removes shared memory segments and semaphores for those users.
As Oracle ASM and Databases use shared memory segments for SGA, removing shared memory segments will crash the Oracle ASM and database instances.
解决办法:
1) Set RemoveIPC=no in /etc/systemd/logind.conf
2) 重启服务
systemctl daemon-reload
systemctl restart systemd-logind

参考MOS:
ORA-27300 ORA-27301 ORA-27302 ORA-27157 Database Crash (Doc ID 438205.1)
Failed Install of RAC with ASM: ORA-27300 ORA-27302 ORA-27300 ORA-27301 ORA-27302 (Doc ID 2099563.1)

任务 数据 版本 用户 操作系统 内存 数据库 日志 系统 服务 办法 原因 实例 现象 行为 问题 参考 控制 检查 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 数据库表 父子关系 河南专业软件开发设施应用 asp读取数据库文件列表 分析密码学与网络安全管理 调查活动齐参与网络安全靠大家 芜湖市网络安全和信息化 如何选择零信任架构网络安全 通过公司服务器上微信会泄密吗 提升服务器的安全管理制度 app后台要不要服务器 呈贡区信息化软件开发报价表 同方服务器默认管理ip ftp服务器窗口可以编辑吗 家有学霸靠谱软件开发靠谱吗 网络安全好处与坏处有哪些 数据库及安全考试试卷 软件开发与制作专业对口 asp获取数据库字段数值 奇迹sf服务器改名 幽灵行动怎么破坏服务器 计算机网络技术的职业技能考试 网络安全管理技术是什么意思 数据数据库的创建 宇狐网络技术有限公司 如何挤出服务器 教育行业网络安全标准规范 球球英雄服务器更换 常见的网络安全体系架构 数据库如何生成表间关系图 金蝶数据库误删
0