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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?