正德厚生,臻于至善

RHEL 7安装11g RAC问题汇总

1.CRS-2101:The OLR was formatted using version 3

错误提示如下

Adding Clusterware entries to inittab
ohasd failed to start
Failed to start the Clusterware. Last 20 lines of the alert log follow: 
2023-02-08 15:08:20.337: 
[client(8064)]CRS-2101:The OLR was formatted using version 3.

该错误因为RHEL 7使用systemd而不是initd运行进程和重启进程,而root.sh通过传统的initd运行ohasd进程

解决办法:在RHEL 7中ohasd需要被设置为一个服务,在运行脚本root.sh之前。

as root user:
# /etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null &
或者
1. 以root用户创建服务文件
# touch /usr/lib/systemd/system/ohas.service
# chmod 777 /usr/lib/systemd/system/ohas.service
2. 将以下内容添加到新创建的ohas.service文件中
vim /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

直到出现 init.ohasd 文件,马上手动启动ohas.service服务,确保万无一失;命令如下:
systemctl daemon-reload 
systemctl enable ohas.service
systemctl start ohas.service

2.在打开图形化界面后,发现弹窗都成了一团,无法点击,

解决方法如下:

./runInstaller -jreLoc /usr/lib/jvm/jre-1.8.0

3.安装软件是出现"Error invoking target 'agent nmhs' of makefile",解决办法如下

#修改$ORACLE_HOME/sysman/lib/ins_emagent.mk,将$(MK_EMAGENT_NMECTL)修改为:$(MK_EMAGENT_NMECTL) -lnnz11
cp $ORACLE_HOME/sysman/lib/ins_emagent.mk ins_emagent.mk.bak
vim $ORACLE_HOME/sysman/lib/ins_emagent.mk 

4.grid目录权限解锁时报错
Can’t locate Env.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perlusr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /u01/app/11.2.0/grid/crs/install) at /u01/app/11.2.0/gd/crs/install/crsconfig_lib.pm line 703.
BEGIN failed–compilation aborted at /u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 703.
Compilation failed in require at /u01/app/11.2.0/grid/crs/install/rootcrs.pl line 305.
BEGIN failed–compilation aborted at /u01/app/11.2.0/grid/crs/install/rootcrs.pl line 305.

解决办法如下
yum install perl-Env -y
/grid/11.2.0.4/grid/crs/install/rootcrs.pl -unlock
赞(0) 打赏
未经允许不得转载:徐万新之路 » RHEL 7安装11g RAC问题汇总

评论 抢沙发

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫

微信扫一扫

登录

找回密码

注册