ITPub博客

首页 > 数据库 > Oracle > centos 7安装rac 11gR2时运行root.sh报错找不到ohas服务(ohasd failed to start)

centos 7安装rac 11gR2时运行root.sh报错找不到ohas服务(ohasd failed to start)

原创 Oracle 作者:DBA_每日记 时间:2019-10-13 00:18:33 0 删除 编辑

单独在linux 7中为ohasd设置一个服务。
步骤如下
1. 创建服务ohas.service的服务文件并赋予权限
touch /usr/lib/systemd/system/ohas.service
chmod 777 /usr/lib/systemd/system/ohas.service

2. 往ohas.service服务文件添加启动ohasd的相关信息

 vi /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. 加载,启动服务

重新加载守护进程
systemctl daemon-reload
设置守护进程自动启动
systemctl enable ohas.service
手工启动ohas服务
systemctl start ohas.service

4. 重新运行root.sh脚本

sh root.sh
报错消失

5:查看ohas服务状态

systemctl status ohas.service
可以看到ohasd已经处于running的状态


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69950231/viewspace-2659796/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
聚焦人文和技术,分享干货,共同成长

注册时间:2019-10-09

  • 博文量
    177
  • 访问量
    238556