centos7 安装oracle rac 11.2.0.4 执行root.sh 报错ohasd failed to start

在执行root.sh时报:
Adding Clusterware entries to inittab
ohash failed to start
failed to start the clusterware,Last 20 lines of the alert log follow:

原因:因为centos7 使用的sysemd而不时initd运行继承和重启进程,而root.sh通过传统的initd运行ohasd进程

解决方法:在centos7中ohasd需要被设置为一个服务,在运行脚本roo.sh之前。

步骤:
1、以root用户创建服务文件。
#touch /usr/lib/systemd/system/ohas.service
#chmod 777 /usr/lib/systemd/sysem/ohas.service
2、将以下内容条件到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、查看运行状态
systemctl status ohas.service

此时状态为失败,原因时现在还没有/etc/init.d/init.ohasd文件,下面可以运行脚本roo.sh了不会再报ohasd failed to start错误。

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值