Redhat 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: 2022-11-16 10:37:45.460: [client(13782)]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文件中 [root@rac1 init.d]# cat /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 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