环境:Redhat Linux 7.6 + Oracle 11.2.0.4 RAC

现象:图像化安装过程中,按照提示执行root.sh脚本,报错中断。

1. 具体现象

[root@mm1903 ~]# /u01/app/11.2.0/grid/root.sh

Performing rootuser operation forOracle 11g

The following environment variables areset as:

ORACLE_OWNER=grid

ORACLE_HOME= /u01/app/11.2.0/grid

Enter thefull pathname of the local bin directory: [/usr/local/bin]:

The contentsof "dbhome" have not changed. No need tooverwrite.

The contentsof "oraenv" have not changed. No need tooverwrite.

The contentsof "coraenv" have not changed. No need tooverwrite.

Entries will be addedto the /etc/oratab file as needed by

Database Configuration Assistant when a database iscreated

Finished running generic partofroot script.

Now product-specific root actions will be performed.

Using configuration parameterfile: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsUserignored Prerequisites during installation

Installing TraceFileAnalyzer

Adding Clusterware entriestoinittab

ohasd failedtostart

Failedto start the Clusterware. Last 20 lines of the alert logfollow:2020-03-20 11:46:34.715:[client(14293)]CRS-2101:The OLR was formatted using version 3.2020-03-20 11:57:25.130:[ohasd(15204)]CRS-0715:Oracle High Availability Service has timed out waiting for init.ohasd tobe started./u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/rootcrs.pl execution failed[root@mm1903 ~]#

Redhat 7.6搭建11g RAC时遇到报错:

[ohasd(15204)]CRS-0715:Oracle High Availability Service has timed out waiting for init.ohasd to be started.

2. 定位问题

官方文档:

Install of Clusterware fails while running root.sh on OL7 - ohasd fails to start (Doc ID 1959008.1)

由此篇官方文档可知,致使root.sh脚本执行时报的原因是因为Linux 7与Linux 6启动/重新启动进程并将其作为服务运行的方式不同。

Linux 6是由initd启动进程,而Linux 7则是由systemd启动进程。

在11.2.0.4 & 12.1.0.1安装GI时,无法加载集群资源进程,所以不会成功。

若想要在Linux 7上运行此两个版本GI软件,需要应用补丁程序18370031。

Because Oracle Linux 7 (and Redhat 7) use systemd rather than initd for starting/restarting processes and runs them as a service the current software install of both 11.2.0.4 & 12.1.0.1 will not succeed because the ohasd process does notstart properly.In OL7 it needs to be set up as a service and patch fix for Bug 18370031 needs to be applied for this , BEFORE you run root.sh when prompted .

3. 解决问题

此外还有中简单有效的解决方法,也是永久性的:

修改ohasd守护进程文件 vi /etc/init.d/ohasd

在文件中找到如这部分,在里面添加标注部分:

————————————————if [-r $AUTOSTARTFILE]

then

case `$CAT $AUTOSTARTFILE` inenable*)

$LOGERR "Oracle HA daemonis enabled forautostart."/bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1 & ---标注

my_crsctl start has -nowait

sleep600 ---标注

ps -ef | grep dd| grep hasd|awk '{print $2}'|xargs kill -9 ---标注

;;

disable*)

$LOGERR "Oracle HA daemonis disabled forautostart."

;;*)

$LOGERR "Oracle HA daemonis disabled bydamaged install."

$LOGERR "Unexpected settings foundin$AUTOSTARTFILE."

;;

esacelse————————————————

服务器再次重启后,稍等片刻集群即会正常启动。

正常加载日志:

[root@mm1903 ~]# /u01/app/11.2.0/grid/root.sh

Performing rootuser operation forOracle 11g

The following environment variables areset as:

ORACLE_OWNER=grid

ORACLE_HOME= /u01/app/11.2.0/grid

Enter thefull pathname of the local bin directory: [/usr/local/bin]:

The contentsof "dbhome" have not changed. No need tooverwrite.

The contentsof "oraenv" have not changed. No need tooverwrite.

The contentsof "coraenv" have not changed. No need tooverwrite.

Entries will be addedto the /etc/oratab file as needed by

Database Configuration Assistant when a database iscreated

Finished running generic partofroot script.

Now product-specific root actions will be performed.

Using configuration parameterfile: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsUserignored Prerequisites during installation

Installing TraceFileAnalyzer

CRS-2672: Attempting to start 'ora.mdnsd' on 'mm1903'CRS-2676: Start of 'ora.mdnsd' on 'mm1903'succeeded

CRS-2672: Attempting to start 'ora.gpnpd' on 'mm1903'CRS-2676: Start of 'ora.gpnpd' on 'mm1903'succeeded

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'mm1903'CRS-2672: Attempting to start 'ora.gipcd' on 'mm1903'CRS-2676: Start of 'ora.cssdmonitor' on 'mm1903'succeeded

CRS-2676: Start of 'ora.gipcd' on 'mm1903'succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'mm1903'CRS-2672: Attempting to start 'ora.diskmon' on 'mm1903'CRS-2676: Start of 'ora.diskmon' on 'mm1903'succeeded

CRS-2676: Start of 'ora.cssd' on 'mm1903'succeeded

已成功创建并启动 ASM。

已成功创建磁盘组DATA。

clscfg:-install mode specified

Successfully accumulated necessary OCR keys.

Creating OCR keysfor user 'root', privgrp 'root'..

Operation successful.

CRS-4256: Updating the profile

Successful additionof voting disk64770444e9ea4fd6bf277198410f1b10.

Successfully replaced votingdisk group with +DATA.

CRS-4256: Updating the profile

CRS-4266: Voting file(s) successfully replaced

## STATEFile Universal Id File Name Disk group

------- ----------------- --------- ---------

1. ONLINE 64770444e9ea4fd6bf277198410f1b10 (/dev/asm-diskb) [DATA]Located1 voting disk(s).

CRS-2672: Attempting to start 'ora.asm' on 'mm1903'CRS-2676: Start of 'ora.asm' on 'mm1903'succeeded

CRS-2672: Attempting to start 'ora.DATA.dg' on 'mm1903'CRS-2676: Start of 'ora.DATA.dg' on 'mm1903'succeeded

Configure Oracle Grid Infrastructurefora Cluster ... succeeded[root@mm1903 ~]# su -grid

上一次登录:五 3月20 12:55:20 CST 2020pts/2上[grid@mm1903 ~]$

View Code

Linux7安装gi报错,Redhat 7.6安装11G RAC GI时遇到此类报错相关推荐

  1. 闪退没由报错_秉承工匠精神,3步定位飞桨报错原因,你也来试试?

    点击左上方蓝字关注我们 [故事的开始-]小张是一名AI算法攻城狮,听闻飞桨乃国产开源深度学习框架之光,心想炎黄子孙当自强,用自己的深度学习框架,实现中国的AI梦--他尝试在的笔记本上使用飞桨搭建线性回 ...

  2. redhat oracle 12c 安装图解,RedHat 7 静默安装Oracle 12c

    之前在网上看了很多Oracle的静默安装教程,感觉有些乱,经过自己查阅Oracle官网英文手册,结合在虚拟机中安装测试,整理出了这篇RedHat 7 静默安装Oracle 12c.redhat 6静默 ...

  3. centos安装mysql5.6系统崩溃_CentOS中安装MySQL5.6报错的解决方法

    由于项目需要,必须使用最新出来的MySQL5.6社区版本,使用的操作系统是CentOS6.3.然后安装到中途报错如下:file /usr/share/mys 由于项目需要,必须使用最新出来的MySQL ...

  4. npm install 报错 汇总_R包安装报错的日常

    昨天在进行tableone包绘制基线特征表的时候 明明tableone这个包是能安装的,但是在执行第一步代码的时候就报错 > CreateTableOne(data = colon)Error ...

  5. 安装python37路径报错_解决pycharm安装python库报错问题

    最近在玩微信图灵机器人,不过我安装有一些库,安装报错,上网找了很久,总结有两种方法,记录一下 方法一: 手动安装,直接到官网你需要的python库下载到本地, 放在安装python路径,C:\User ...

  6. python安装过程中出现文件或目录损坏且无法读取_解决安装python库时windows error5 报错的问题...

    python安装库时,有时候会报错windows error 5,可以尝试关闭所有使用python的编辑器.文件等,然后重新pip安装,如果还是不行,可以将报错最下层文件删除即可(如果不放心可以将该文 ...

  7. Maven 手动安装JAR包到本地maven仓库后,但在项目中依旧报错找不到JAR包解决方法

    Maven 手动安装JAR包到本地maven仓库后,但在项目中依旧报错找不到JAR包解决方法 参考文章: (1)Maven 手动安装JAR包到本地maven仓库后,但在项目中依旧报错找不到JAR包解决 ...

  8. win11u盘安装报错怎么办 windows11u盘安装报错的解决方法

    现在安装系统的方式有很多种,U盘就是其中一种,最近有用户在使用U盘安装Win11系统的时候,在安装的途中出现系统报错的情况,那么我们遇到u盘安装win11系统报错怎么办呢?很多用户都不清楚该如何解决, ...

  9. python安装失败找不到指定路径_解决安装python库时windows error5 报错的问题

    python安装库时,有时候会报错windows error 5,可以尝试关闭所有使用python的编辑器.文件等,然后重新pip安装,如果还是不行,可以将报错最下层文件删除即可(如果不放心可以将该文 ...

最新文章

  1. 安卓Design包之AppBar和Toolbar的联用
  2. centos6 rpm安装mysql_Centos6下rpm安装MySQL5.6
  3. linux在机房设置ip,双线机房双IP linux设置路由
  4. gview java_java - 如何在干净模式下运行eclipse? 如果我们这样做会发生什么?
  5. mysql windows软件_windows版MySQL软件的安装
  6. 机器学习笔记—再谈广义线性模型
  7. ROS坐标系统,常见的坐标系和其含义
  8. linux httpd 自动启动,在Linux启动时让Apache也自动启动
  9. Bailian2764 数根(POJ NOI0113-50)【数论】
  10. js判断是手机访问还是电脑访问,进行自动跳转
  11. 实战Swiper:利用Swiper制作手机全屏相册
  12. Navicat for MySQL 破解版
  13. 【嗅探工具】wireshark初步认识
  14. php 获取当前的域名
  15. Android布局小案例——安卓版计算器
  16. python winrar 密码_python+winrar 指令压缩文件
  17. 关掉该死的DEP(数据执行保护,仅针对win7)
  18. va_list可变参数理解(va_start/va_end...)
  19. MySQL--通过mysqladmin命令修改密码提示:single quotes were not trimmed line client(Windows)
  20. 阿里无线11.11 | 手机淘宝主会场实践之路

热门文章

  1. Android开发教程:手机震动控制浅析
  2. 虹软安卓人脸识别初学
  3. Tensorflow C3D完成视频动作识别
  4. 摔倒、摔倒检测数据集
  5. http协议知识msdn
  6. ssh 怎么通过跳板机传文件到内网_黑客攻击内网穿透
  7. vue 修改对象的值视图没有发生改变_在vue中处理对象属性改变视图不更新问题? - echart...
  8. mingw64+msys2下使用cmake问题
  9. 远程连接redis遇到的一些错误解决办法JedisConnectionException:java.net.SocketTimeOutException...JedisDataException:D
  10. 电子游戏跟计算机有什么关联,电脑和电子游戏对小学生的影响