CENTOS7 执行rootcrs.pl重新配置GI报错

原文地址:https://www.cndba.cn/Expect-le/article/316

 

报错信息

 

[root@rac1 ~]# /u01/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig -verbose -force
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.

解决方法

根据提示信息Can't locate Env.pm 可以知道找不到这玩意了。所以cp一份过去

[root@rac2 ~]#cp -p /u01/app/11.2.0/grid/perl/lib/5.10.0/Env.pm /usr/lib64/perl5/vendor_perl/

就OK了!记录一下

你可能感兴趣的:(RAC)