Redhat 7.4下Oracle RAC 11.2.0.4 执行root.sh报错处理
2019-08-14 00:00
2136 查看
一、报错信息
二、原因分析
因为RHEL 7使用systemd而不是initd运行进程和重启进程,而root.sh通过传统的initd运行ohasd进程
三、解决办法
在RHEL 7中ohasd需要被设置为一个服务,在运行脚本root.sh之前。
1、以root用户创建服务文件
touch /usr/lib/systemd/system/ohas.service
chmod 777 /usr/lib/systemd/system/ohas.service
将以下内容添加到新创建的ohas.service文件中
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
以root用户运行下面的命令
systemctl daemon-reload
systemctl enable ohas.service
systemctl start ohas.service
2、验证
systemctl status ohas.service
停止运行root.sh脚本后再进行该操作,然后运行root.sh脚本
更多Oracle相关信息见Oracle 专题页面 https://www.linuxidc.com/topicnews.aspx?tid=12
相关文章推荐
- redhat 6.9 安装oracle 11.2.0.1 grid时在最后介面,运行root.sh之前执行以下命令
- linux安装oracle10g rac执行root.sh报错的处理
- root.sh脚本执行失败的处理
- suse11sp3 执行root.sh失败bug处理
- Redhat 5.4 RAC multipath 配置raw,运行root.sh 时报错Failed to upgrade Oracle Cluster Registry configuration 解决方法
- localhost错误导致Rac root.sh执行失败
- Redhat 6.3 安装11.2.0.2 grid 运行root.sh报找不到libcap.so.1
- Configure Oracle 11gR2 RAC 一节点执行root.sh脚本报错
- Oracle 11g RAC 第二节点root.sh执行失败后再次执行root.sh
- localhost错误导致Rac root.sh执行失败
- orainstRoot.sh到底执行了哪些操作
- Redhat 5.4 RAC multipath 配置raw,运行root.sh 时报错Failed to upgrade Oracle Cluster Registry configuration
- CentOS7 crontab 不执行,报错 /bin/sh: root: command not found
- Oracle RAC 第二节点 root.sh 报错 Timed out waiting for the CRS stack to start
- Oracle 11gR2(11.2.0.4.0)搭建RAC时root.sh执行脚本分析
- Configure Oracle 11gR2 RAC 一节点执行root.sh脚本报错
- Oracle 11g RAC 执行root.sh时遭遇 CRS-0184/PRCR-1070
- oracle 11g ASM单节点数据库安装grid执行root.sh脚本报错
- RAC 执行root.sh 报错 libcap.so.1: cannot open shared object file: No such file or directory
- Oracle RAC 第二节点 root.sh 报错 Timed out waiting for the CRS stack to start