报错信息:

[root@rac1 ~]# /u01/app/oraInventory/orainstRoot.sh 
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@zjdb1 ~]# /u01/app/11.2.0/grid/root.sh 
Performing root user operation for Oracle 11g

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...

Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
  root wallet
  root wallet cert
  root cert export
  peer wallet
  profile reader wallet
  pa wallet
  peer wallet keys
  pa wallet keys
  peer cert request
  pa cert request
  peer cert
  pa cert
  peer root cert TP
  profile reader root cert TP
  pa root cert TP
  peer pa cert TP
  pa peer cert TP
  profile reader pa cert TP
  profile reader peer cert TP
  peer user cert
  pa user cert
Adding Clusterware entries to inittab
ohasd failed to start
Failed to start the Clusterware. Last 20 lines of the alert log follow: 
2015-05-23 23:37:45.460: 
[client(13782)]CRS-2101:The OLR was formatted using version 3.

报错原因:

因为RHEL 7使用systemd而不是initd运行进程和重启进程,而root.sh通过传统的initd运行ohasd进程。

解决方法:

在RHEL 7中ohasd需要被设置为一个服务,在运行脚本root.sh之前。

步骤如下:

1. 以root用户创建服务文件

#touch /usr/lib/systemd/system/ohas.service

#chmod 777 /usr/lib/systemd/system/ohas.service

2. 将以下内容添加到新创建的ohas.service文件中

[root@rac1 init.d]# cat /usr/lib/systemd/system/ohas.service
[Unit]
Description=Oracle High Availability Services
After=syslog.target

[Service]
ExecStart=/etc/init.d/init.ohasd run >/dev/null 2>&1 Type=simple
Restart=always

[Install]
WantedBy=multi-user.target

3. 以root用户运行下面的命令

systemctl daemon-reload
systemctl enable ohas.service
systemctl start ohas.service
4. 查看运行状态

[root@rac1 init.d]# systemctl status ohas.service
ohas.service - Oracle High Availability Services
   Loaded: loaded (/usr/lib/systemd/system/ohas.service; enabled)
   Active: failed (Result: start-limit) since Fri 2015-09-11 16:07:32 CST; 1s ago
  Process: 5734 ExecStart=/etc/init.d/init.ohasd run >/dev/null 2>&1 Type=simple (code=exited, status=203/EXEC)
 Main PID: 5734 (code=exited, status=203/EXEC)

Sep 11 16:07:32 rac1 systemd[1]: Starting Oracle High Availability Services...
Sep 11 16:07:32 rac1 systemd[1]: Started Oracle High Availability Services.
Sep 11 16:07:32 rac1 systemd[1]: ohas.service: main process exited, code=exited, status=203/EXEC
Sep 11 16:07:32 rac1 systemd[1]: Unit ohas.service entered failed state.
Sep 11 16:07:32 rac1 systemd[1]: ohas.service holdoff time over, scheduling restart.
Sep 11 16:07:32 rac1 systemd[1]: Stopping Oracle High Availability Services...
Sep 11 16:07:32 rac1 systemd[1]: Starting Oracle High Availability Services...
Sep 11 16:07:32 rac1 systemd[1]: ohas.service start request repeated too quickly, refusing to start.
Sep 11 16:07:32 rac1 systemd[1]: Failed to start Oracle High Availability Services.
Sep 11 16:07:32 rac1 systemd[1]: Unit ohas.service entered failed state.

此时状态为失败,原因是现在还没有/etc/init.d/init.ohasd文件。

下面可以运行脚本root.sh 不会再报ohasd failed to start错误了。

如果还是报ohasd failed to start错误,可能是root.sh脚本创建了init.ohasd之后,ohas.service没有马上启动,解决方法参考以下:

当运行root.sh时,一直刷新/etc/init.d ,直到出现 init.ohasd 文件,马上手动启动ohas.service服务 命令:systemctl start ohas.service

[root@rac1 init.d]# systemctl status ohas.service
ohas.service - Oracle High Availability Services
   Loaded: loaded (/usr/lib/systemd/system/ohas.service; enabled)
   Active: active (running) since Fri 2015-09-11 16:09:05 CST; 3s ago
 Main PID: 6000 (init.ohasd)
   CGroup: /system.slice/ohas.service
           6000 /bin/sh /etc/init.d/init.ohasd run >/dev/null 2>&1 Type=simple
           6026 /bin/sleep 10

Sep 11 16:09:05 rac1 systemd[1]: Starting Oracle High Availability Services...
Sep 11 16:09:05 rac1 systemd[1]: Started Oracle High Availability Services.
Sep 11 16:09:05 rac1 su[6020]: (to grid) root on none

RHEL 7 安装oracle rac 11.2.0.4执行root.sh报错ohasd failed to start相关推荐

  1. CentOS7环境安装oracleRAC集群遇到的问题总结二(执行root.sh报错ORA-15018和ORA-15020)

    安装集群软件最后一步需要执行在两个节点执行以下脚本文件,如图所示 然后在执行第二个脚本的时候就报错如下: 在这最后一步卡了好久一直找不到原因,安装过程也取消掉重新安装了好几次还是不成功,查了很多资料, ...

  2. oracle 11.2.0.3.4 psu 14275605 下载,Oracle RAC 11.2.0.3.2 升级 11.2.0.3.4

    Oracle RAC 11.2.0.3.2升级11.2.0.3.4 安装环境操作系统:RHEL6.264bitOracle Database版本:11.2.0.3.2Oracle Grid版本:11. ...

  3. Oracle RAC 11.2.0.3 节点CRS无法启动报:no network hb 故障解决方法

    软件版本: oracle rac 11.2.0.3,补丁打到最新11.2.0.3.5 故障现象:Oracle双节点组成RAC,RAC软件安装在节点1上:运行一段时间后,节点2日志报"网络通信 ...

  4. ORACLE RAC 11.2.0.4 ASM加盘导致集群重启之ASM sga设置过小

    最近,一同事为一2节点的ORACLE RAC 11.2.0.4集群ASM加盘,没有注意到ASM的sga设置过小,加盘reblance时导致集群重启.详细描述如下: ​1.问题描述 ​ORACLE RA ...

  5. oracle 10g rac 包root.sh报错,案例:Oracle Rac root.sh报错 Failed to create keys in the OLR

    天萃荷净 [root@web1 grid]# /u01/app/11.2.0/grid/root.sh Performing root user operation for Oracle 11g Th ...

  6. Oracle RAC 11.2.0.4打PSU

     环境: OS CentOS 6.6 64bit Grid software 11.2.0.4.0  Oracle software 11.2.0.4.0 方式:完全手动方式patch 1.停监听 ...

  7. Oracle RAC 第二节点 root.sh 报错 Timed out waiting for the CRS stack to start

    在VBox 上安装11.2.0.1的RAC. 这里打算安装11.2.0.1是因为从11.2.0.2以后的版本对public 和private 网卡网段区分很严格,这个网卡必须配置在不同的网段. 而在1 ...

  8. 部署Kettle7.1到linux后执行./kitchen.sh报错No libwebkitgtk1.0 detected

    linux环境,cd data-integration文件夹下,执行./kitchen.sh 如果出现帮助信息表示部署成功. 会出现的警告:No libwebkitgtk1.0 detected... ...

  9. oracle rac 11.2.0.4 镜像copy迁移数据到新存储

    最劲朋友关于将一个25T的数据迁移到新的存储,做了如下实验 把数据库迁移到新的存储 从 data磁盘组 迁移到 FRA 磁盘组 //创建业务表空间 SQL> create tablespace ...

最新文章

  1. 提升网络安全 十大策略全面巩固企业内网
  2. java 不写this_JAVAthis使用的那些事儿
  3. VS2008快捷键大全
  4. 在Map 3D显示管理器中更改当前地图的名字
  5. 使用Kubernetes里的job计算圆周率后2000位
  6. 基于Linux的虚拟主机搭建
  7. JDK8的排序大法!!
  8. asterisk for mipsel
  9. matlab 如何捕捉错误,【matlab|matlab运行错误捕捉方法】
  10. python 字节字符串_Python字符串转换为字节,字节转换为字符串
  11. html多行文本框_HTML的七大标签怎么运用?
  12. mysql中的group by分组
  13. Luogu4712「生物」能量流动
  14. Unity渲染性能优化总纲
  15. 计算机网络 自顶向下方法
  16. Unity3D导出Android工程(Android中应用Unity3D)
  17. 常用HTML5开发工具有哪些?
  18. gif怎么裁剪尺寸?一键gif裁剪工具推荐
  19. codeforces每日5题(均1500)-第二十二天
  20. Arduino智能小车设计(一)

热门文章

  1. 旧款华为笔记本解锁智慧语音教程
  2. 有哪些可以快速回复信息的软件
  3. 百度短网址 php,调用百度短网址API生成短网址
  4. 程序员的13个外包接私活网站,你有技术就有钱!
  5. 算法实现:判断二叉树是否为完全二叉树
  6. 2、Linux命令合集
  7. mysql association_mybatis 一对一与一对多collection和association的使用
  8. mysql 设置 0、1 用什么数据类型_不断精炼核心知识点,终于能把MySQL讲懂了
  9. MySQL 03 高级查询(一)
  10. ContextCapture Center Update 18