rhel7.2上安装12C RAC数据库后,其中一个数据库实例经常会自动crash。查看alert日志发现以下错误信息:

Errors in file /d12/app/oracle/diag/rdbms/rac12c/rac12c2/trace/rac12c2_j000_21047.trc:
ORA-27157: OS post/wait facility removed
ORA-27300: OS system dependent operation:semop failed with status: 43
ORA-27301: OS failure message: Identifier removed
ORA-27302: failure occurred at: sskgpwwait1
Fri Sep 09 16:50:53 2016
Errors in file /d12/app/oracle/diag/rdbms/rac12c/rac12c2/trace/rac12c2_rmv0_20798.trc:
ORA-27157: OS post/wait facility removed
Fri Sep 09 16:50:53 2016
Errors in file /d12/app/oracle/diag/rdbms/rac12c/rac12c2/trace/rac12c2_q005_21328.trc:
ORA-27157: OS post/wait facility removed
ORA-27300: OS system dependent operation:semop failed with status: 43
ORA-27301: OS failure message: Identifier removed
ORA-27302: failure occurred at: sskgpwwait1

错误原因描述:

在rhel7.2中,systemd-logind服务引入了一个新特性:在一个user完全退出OS后会remove掉所有的IPC对象。
该特性由/etc/systemd/logind.conf参数文件中RemoveIPC选项来控制。详细请看man logind.conf(5)。

在rhel7.2中,RemoveIPC的默认值是yes

因此,当最后一个oracle或者grid用户退出时,操作系统会remove掉这个user的shared memory segments和semaphores
而Oracle ASM和database的SGA需要使用 shared memory segments,因此remove shared memory segments将会crash掉Oracle ASM和database instances。

请参考Redhat bug 1264533 - https://bugzilla.redhat.com/show_bug.cgi?id=1264533

这个问题会影响使用shared memory segments和semaphores的所有应用,因此,Oracle ASM 实例和Oracle Database 实例均受到影响。
oel7.2为了避免这个问题,在/etc/systemd/logind.conf配置文件中明确设置RemoveIPC为no。

该问题会导致的现象:

1) Installing 11.2 and 12c GI/CRS fails, because ASM crashes towards the end of the installation.
2) Upgrading to 11.2 and 12c GI/CRS fails.
3) After Redhat Linux is upgraded to 7.2, 11.2 and 12c ASM and database instances crash.

systemd-logind可能会在任何时候remove IPC对象,发生错误的时候对应的日志现象也不同。比如:

Most common error that occurs is that the following is found in the asm or database alert.log:
ORA-27157: OS post/wait facility removed
ORA-27300: OS system dependent operation:semop failed with status: 43
ORA-27301: OS failure message: Identifier removed
ORA-27302: failure occurred at: sskgpwwait1

  

The second observed error occurs during installation and upgrade when asmca fails with the following error:
KFOD-00313: No ASM instances available. CSS group services were successfully initilized by kgxgncin
KFOD-00105: Could not open pfile 'init@.ora'

  

The third observed error occurred during installation and upgrade:
Creation of ASM password file failed. Following error occurred: Error in Process: /d12/app/12.1.0/grid/bin/orapwdEnter password for SYS:OPW-00009: Could not establish connection to Automatic Storage Management instance2015/11/20 21:38:45 CLSRSC-184: Configuration of ASM failed
2015/11/20 21:38:46 CLSRSC-258: Failed to configure and start ASM

  

The fourth observed error is the following message is found in the /var/log/messages file around the time that asm or database instance crashed:
Nov 20 21:38:43 testc201 kernel: traps: oracle[24861] trap divide error
ip:3896db8 sp:7ffef1de3c40 error:0 in oracle[400000+ef57000]

  

修改方法:

1).设置/etc/systemd/logind.conf中RemoveIPC=no
2).重启服务器或者重启systemd-logind
重启systemd-logind:

# systemctl daemon-reload
# systemctl restart systemd-logind

  

MOS Doc:

ALERT: Setting RemoveIPC=yes on Redhat 7.2 Crashes ASM and Database Instances as Well as Any Application That Uses a Shared Memory Segment (SHM) or Semaphores (SEM) (Doc ID 2081410.1)

转载于:https://www.cnblogs.com/abclife/p/5859005.html

12C RAC中的一个数据库实例自动crash并报ORA-27157、ORA-27300等错误相关推荐

  1. 数据库实例自动crash并报ORA-27157、ORA-27300等错误

    原文地址 rhel7.2上安装12C RAC数据库后,其中一个数据库实例经常会自动crash.查看alert日志发现以下错误信息: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 E ...

  2. 将oracle冷备份恢复到另外一个数据库实例中

    因更换服务器需要将Oracle数据库转移到另外台Oracle中. 说明: 1.测试环境为:windows server2003 和 oracle 10g. 2.2台服务器安装的程序目录一样,数据目录不 ...

  3. silverlight mysql_Silverlight中衔接MySQL数据库实例详解

    Silverlight中衔接MySQL数据库实例详解 日期:2010年5月25日 作者: 本文将重点讲述Silverlight中衔接MySQL数据库实例,这在RIA开发中比拟根底,但是也是比拟首要的内 ...

  4. mysql desc 显示备注_MySQL_Mysql中返回一个数据库的所有表名,列名数据类型备注,desc 表名; show columns from 表名; d - phpStudy...

    Mysql中返回一个数据库的所有表名,列名数据类型备注 desc 表名; show columns from 表名; describe 表名; show create table 表名; use in ...

  5. Linux中设置Docker的yum源时,报-bash: yum-config-manager: command not found错误

    问题描述:在Linux环境中设置docker的yum源时,报-bash: yum-config-manager: command not found错误,如下图所示: 解决方法:这个是因为系统默认没有 ...

  6. ORACLE 12c rac备份异机单实例恢复(RMAN recover database出现RMAN-06054)

    1.首先在源rac 环境创造 数据,任何能体现与恢复环境不同的情况都可以. 本次模拟环境的目标机器上有一个db名与rac库一致的单实例db简略部分步骤 insert into test.table1 ...

  7. 11gR2 RAC手动添加节点数据库实例

    两台服务器构成的Oracle 11gR2 RAC环境中,其中rac1服务器的私有网卡需要更换,所以在rac2服务器上使用dbca创建数据库的时候只创建了本节点的数据库实例(oracledb1).当ra ...

  8. java获得jsp的name注解_记录Java注解在JavaWeb中的一个应用实例

    概述 在学习注解的时候,学了个懵懵懂懂.学了JavaWeb之后,在做Demo项目的过程中,借助注解和反射实现了对页面按钮的权限控制,对于注解才算咂摸出了点味儿来. 需求 以"角色列表&quo ...

  9. navicat中从一个数据库复制表到另一个数据库

    1.首选选择要传输的表,选择工具中的数据传输 2.选择传输数据库和接收数据库 3.自定义数据库对象 4.开始传输 5.传输完成,结果如下

  10. oracle 重启后 检查,oracle常规检查有哪些,oracle RAC中的一个节点经常重启?

    metalink關於這個bug的內容如下: btw, 這樣算不算違規啊, ,如果這樣的話儘量少貼了呵呵! Subject:         Linux: OCSSD Reboots Nodes Ran ...

最新文章

  1. 今晚8点开播 | 深度解析知识图谱发展关键阶段技术脉络
  2. Java 最常见的 100+ 面试题和答案:面试必备
  3. numpy基础教程--clip函数的使用
  4. 从jquery源码中学习一些技巧
  5. 白话科普系列——最好用的浏览器 Chrome,你用了么?
  6. Java多线程之集合类(线程安全和不安全)
  7. 数据挖掘之数据预处理
  8. ffplay SDL_OpenAudio (2 channels, 44100 Hz): WASAPI can‘t initialize audio client“
  9. 家里宽带628连不上_WiFi密码正确,别人正常但是自己的手机却连不上WiFi是怎么回事?...
  10. 手写一个动态代理实现,手写Proxy,手写ClassLoader,手写InvocationHandler
  11. Windows 远程连接后,自动断开,所有程序都自动关闭(待验证,待更新)
  12. 100%抄袭!ICLR 2022投稿论文剽窃两篇顶会,程序主席放「实锤」严词拒稿!
  13. 教育期刊《英语广场》期刊简介及投稿须知
  14. 微信消息模板换行符转义问题处理
  15. 【运动学】基于Matlab模拟斜抛运动
  16. 如何给C盘扩容?亲测有效
  17. sumo交通流仿真软件的使用说明
  18. AD19 DRC 时弹出 Design contains shelved or modified (but not repoured) polygons
  19. 乔布斯去世十年,粉丝哀叹苹果正失去昔日创新光环,但库克是更好领导者
  20. 【EGE】五子棋小游戏 (鼠标控制)

热门文章

  1. css基础知识汇总6
  2. 操作系统数据结构知识点总结1
  3. 双硬盘SSD+HDD安装Ubuntu16.04服务器版教程
  4. 深度学习(二十一)基于FCN的图像语义分割-CVPR 2015
  5. 【论文笔记】Joint Cascade Face Detection and Alignment
  6. 【Caffe安装】Ubuntu14.04上Caffe配置安装(Only CPU)
  7. 华为手机如何给应用加锁_华为手机正确防止应用后台运行被清理的操作方法
  8. 重写需要注意哪些方面?
  9. apache2: unrecognized service
  10. 漂亮实用的loading(加载)封装