标题: Can't locate Env.pm in @INC (@INC contains [打印本页] 作者: 刘泽宇 时间: 2023-11-12 16:44 标题: Can't locate Env.pm in @INC (@INC contains Can't locate Env.pm in @INC (@INC contains
#/u01/app/grid/11.2.0.4/crs/install/roothas.pl -deconfig -force -verbose
11.2.0.4 执行roothas.pl时报以下错误
Can't locate Env.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /u01/app/grid/11.2.0.4/crs/install) at /u01/app/grid/11.2.0.4/crs/install/crsconfig_lib.pm line 703.
BEGIN failed--compilation aborted at /u01/app/grid/11.2.0.4/crs/install/crsconfig_lib.pm line 703.
Compilation failed in require at /u01/app/grid/11.2.0.4/crs/install/roothas.pl line 166.
BEGIN failed--compilation aborted at /u01/app/grid/11.2.0.4/crs/install/roothas.pl line 166.
此报错是由bug 18650453导致的,已经在在12.1.0.2中被修复
解决此问题可以使用以下补丁
1.补丁程序18650453: OL7: CLUSTERWARE ROOT SCRIPTS FAIL DUE TO: CAN'T LOCATE ENV.PM IN @INC
2.也可使用gi中绝对路径perl执行,解决
[root@asm01 11.2.0.4]# /u01/app/grid/11.2.0.4/perl/bin/perl /u01/app/grid/11.2.0.4/crs/install/roothas.pl -deconfig -force
Using configuration parameter file: /u01/app/grid/11.2.0.4/crs/install/crsconfig_params
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Stop failed, or completed with errors.
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Delete failed, or completed with errors.
CRS-4544: Unable to connect to OHAS
CRS-4000: Command Stop failed, or completed with errors.
Successfully deconfigured Oracle Restart stack