两节点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
评论
