执行root.sh时ohas启动失败报错

mac2025-05-15  10

以下内容学习自大张哥和高老师

 

###执行root.sh ——(报错CRS-4046:?Invalid Oracle Clusterware configuration.CRS-4000: Command Create failed, or completed with errors.)     错误原因:     应该是之前删文件删得不够干净,或者是有些配置文件写在了什么系统文件里,造成安装程序报错了。 google了一下,发现有个解决方法,就是运行出错信息中rootcrs.pl这个脚本,只不过给它配上 -deconfig的参数,让它先把原先残余的东东清掉。然后再重新执行root.sh就可以了。 命令: $GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force

——执行rootcrs.pl报错 (根据提示信息Can't locate Env.pm 可以知道找不到这玩意了。所以cp一份过去)     cp -p $ORACLE_HOME/perl/lib/5.10.0/Env.pm?/usr/lib64/perl5/vendor_perl/

——报错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

最新回复(0)