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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值