RHEL 7上oracle 莫名宕机 ORA-27300
admin
2023-04-17 20:02:07
0

现象:

oracle 执行job:expdp,数据库实例直接宕掉,报错如下:
ORA-27300: OS system dependent operation:semctl failed with status: 22
ORA-27301: OS failure message: Invalid argument
ORA-27302: failure occurred at: sskgpwrm1
ORA-27157: OS post/wait facility removed
ORA-27300: OS system dependent operation:semop failed with status: 36
ORA-27301: OS failure message: Identifier removed
ORA-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)

相关内容

热门资讯

今日重大发现“wepoker到... 家人们!今天小编来为大家解答wepoker透视挂怎么安装这个问题咨询软件客服徽9752949的挂在哪...
玩家最新攻略“新绍兴麻将到底是... 玩家最新攻略“新绍兴麻将到底是不是挂?”(确实真的有挂)您好,新绍兴麻将这个游戏其实有挂的,确实是有...
终于了解“微乐保皇开挂器?”(... 终于了解“微乐保皇开挂器?”(太坑了原来有挂)您好,微乐保皇这个游戏其实有挂的,确实是有挂的,需要了...
我来教教您“新上游炸/金/花到... 我来教教您“新上游炸/金/花到底是不是挂?”(太坑了原来有挂)您好,新上游炸/金/花这个游戏其实有挂...
玩家最新攻略“新西游开挂神器?... 网上科普关于“新西游有没有挂”话题很是火热,小编也是针对新西游作*弊开挂的方法以及开挂对应的知识点,...
终于懂了“永盈到底是不是挂?”... 网上科普关于“永盈有没有挂”话题很是火热,小编也是针对永盈作*弊开挂的方法以及开挂对应的知识点,寻找...
今日重磅消息“情怀莆仙怎么装挂... 今日重磅消息“情怀莆仙怎么装挂?”(太坑了果然有挂)您好,情怀莆仙这个游戏其实有挂的,确实是有挂的,...
【第一财经】“乐禧棋牌有挂吗?... 网上科普关于“乐禧棋牌有没有挂”话题很是火热,小编也是针对乐禧棋牌作*弊开挂的方法以及开挂对应的知识...
最新引进“欢聚水鱼虎步龙行可以... 家人们!今天小编来为大家解答欢聚水鱼虎步龙行透视挂怎么安装这个问题咨询软件客服徽9784099的挂在...
今日重磅消息“天府棋牌开挂器?... 您好:天府棋牌这款游戏可以开挂,确实是有挂的,需要了解加客服微信【9784099】很多玩家在这款游戏...