zoukankan      html  css  js  c++  java
  • CentOS7.4 安装 11204 ASM GI 组件时:ohasd failed to start

    前段时间某客户要求在CENTOS7上部署Oracle 11.2.0.4 single instance && ASM存储,遇到一个比较头疼的问题,好在已经处理完了。

    在图形化执行安装程序过程中,按照提示执行root.sh脚本失败,无法创建ohasd守护进程,而造成此现象的根本原因是RHEL7的服务管理机制有变化。

    • Install of Clusterware fails while running root.sh on OL7 - ohasd fails to start (Doc ID 1959008.1)
    • Patch 18370031: RC SCRIPTS (/ETC/RC.D/RC.* , /ETC/INIT.D/* ) ON OL7 FOR CLUSTERWARE

    根本解决方法:
    MOS提供的方案:

    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 not start 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 .

    Need to apply the patch 18370031 for 11.2.0.4 .

    也可以使用手工添加服务的方式配置ohasd服务自启动:

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

    cat /usr/lib/systemd/system/ohasd.service

    # Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
    #
    # Oracle OHASD startup
    
    [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

     添加启动服务:

    systemctl daemon-reload
    systemctl enable ohas.service
    systemctl start ohas.service

    检查服务运行状态:

    systemctl status ohasd.service 

    按提示清除先前执行root.sh脚本完成的配置,重新执行文件root.sh:

    /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/install/roothas.pl -deconfig -force

    如图所示:

    我报路长嗟日暮,学诗谩有惊人句。 九万里风鹏正举。风休住,蓬舟吹取三山去!
  • 相关阅读:
    window系统中,解决Pycharm 文件更改目录后,执行路径未更新问题(转)
    yum安装软件报错–skip-broken(卸载的时候一直报错:未安装软件包)
    selenium之Chrome浏览器与chromedriver对应关系和下载
    Python 第三方库 批量下载安装包,离线批量安装Python第三方库
    UIpath 循环读取IMAP邮件,并保存附件
    UIpath 中如何使用 正则表达式
    用python实现队列,堆栈
    python-反射
    Python基础-父类对子类的约束
    Python基础-类的继承顺序
  • 原文地址:https://www.cnblogs.com/klyyk0950/p/14318560.html
Copyright © 2011-2022 走看看