redhat 7及以上版本crsctl start crs启动失败问题

因为rac老版本启动依赖的是init.d,而redhat 7及以上版本默认为systemd,两者的差异较大。导致redhat 7及以上版本启动crs的ohasd服务时会卡住一段时间且最后无法启动成功,strace日志则会显示无法找到/var/tmp/.oracle/npohasd文件。

手动的方法:在执行crsctl start crs后马上再新开一个终端执行/bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1。但这种方法只是临时的,当rac节点被驱逐并重启后集群服务无法自动起来。

方案有以下两种:

方案一:甲骨文官网下载18370031补丁后安装。

方案二:添加ohasd自启动服务

1、vim /etc/systemd/system/oracle-ohasd.service

2、写入:

[Unit]
Description=Oracle High Availability Services
After=syslog.target

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

[Install]
WantedBy=multi-user.target graphical.target

3、systemctl enable oracle-ohasd.service

猜你喜欢

转载自blog.csdn.net/jiujiederoushan/article/details/131168831