暂无图片
暂无图片
1
暂无图片
暂无图片
1
暂无图片

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

原创 吾喾 2022-02-26
3250

两节点rac

环境:Linux7.6+oracle 11.2.0.4

集群不能随机启动

在日志里发现以下提示:$GRID_HOME/log/hostname/alertrhostname.log

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


暂时性解决方法:
打开另外一个会话窗口
more /var/tmp/.oracle/npohasd 或者 tailf -f /var/tmp/.oracle/npohasd

再过会,集群就能起来啦。

方法1:
mos In the relevant root.sh The description document for the execution failure is :
Install of Clusterware fails while running root.sh on OL7 - ohasd fails to start (Doc ID 1959008.1)
The root cause is linux 7+ The system service management mode has changed from the original init Turned into systemctl,11g r2 By default init To manage , Cause the system to fail to start ohasd service . According to the official statement, it needs to be patched patch 18370031.

方法2:经测试无效
Use root After executing the following statement , Re execution root.sh, Both nodes have to operate
/bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1

The method comes from the Internet , Restart may cause ohasd Boot failure .

方法3:经测试有效
add to ohas.service service , Then run the script root.sh.
Steps are as follows :
1. With root Users create service files
#touch /usr/lib/systemd/system/ohas.service
#chmod 777 /usr/lib/systemd/system/ohas.service
 
2. Add the following to the newly created ohas.service In file
# 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. With root The user runs the following command
systemctl daemon-reload
systemctl enable ohas.service
systemctl start ohas.service

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

Anshen
暂无图片
1年前
评论
暂无图片 1
我今天遇到了,这个ohas服务启动不了,直接卡主。 dd 一下 就可以起来了
1年前
暂无图片 1
评论