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

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

1 touch /usr/lib/systemd/system/ohas.service
2 chmod 777 /usr/lib/systemd/system/ohas.service



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

复制代码
复制代码
 1  vi /usr/lib/systemd/system/ohas.service
 2 [Unit]
 3 Description=Oracle High Availability Services
 4 After=syslog.target
 5 
 6 [Service]
 7 ExecStart=/etc/init.d/init.ohasd run >/dev/null 2>&1 Type=simple
 8 Restart=always
 9 
10 [Install]
11 WantedBy=multi-user.target
复制代码
复制代码



以上​部分的内容添加到文件里面

3. 加载,启动服务

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



复制代码
复制代码
1 4. 重新运行root.sh脚本
2 sh root.sh
3 报错消失
4 
5 5:查看ohas服务状态
6 systemctl status ohas.service
7 可以看到ohasd已经处于running的状态
复制代码
复制代码

 

posted on   数据与人文  阅读(467)  评论(0编辑  收藏  举报

编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示