重庆思庄Oracle、Redhat认证学习论坛

标题: 卸载GI时执行反安装脚本报错:Can't locate Env.pm in @INC (@INC contains: /usr/... [打印本页]

作者: 刘泽宇    时间: 2021-9-17 19:52
标题: 卸载GI时执行反安装脚本报错:Can't locate Env.pm in @INC (@INC contains: /usr/...
卸载GI执行反安装脚本: /u01/app/11.2.0/grid/crs/install/rootcrs.pl -verbose -deconfig -force
出现报错: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/grid/grid_home/11.2.0.4/crs/install) at /u01/grid/grid_home/11.2.0.4/crs/install/crsconfig_lib.pm line 703.
BEGIN failed--compilation aborted at /u01/grid/grid_home/11.2.0.4/crs/install/crsconfig_lib.pm line 703.
Compilation failed in require at /u01/grid/grid_home/11.2.0.4/crs/install/rootcrs.pl line 305.
BEGIN failed--compilation aborted at /u01/grid/grid_home/11.2.0.4/crs/install/rootcrs.pl line 305.




处理方法为:
拷贝文件
cp -p /u01/grid/grid_home/11.2.0.4/perl/lib/5.10.0/Env.pm /usr/lib64/perl5/vendor_perl/
然后再执行脚本:
/u01/app/11.2.0/grid/crs/install/rootcrs.pl -verbose -deconfig -force





欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2