centos7 执行roothas.pl报错解决

安装oracle grid运行asmca 创建asm磁盘时遇到如下错误

Oracle Grid Infrastructure is not configured properly.ASMCA needOracle Grid Infrastructure to configure ASM

是因为roothas.pl脚本还没有执行,或者has进程没有成功启动,我的环境是因为roothas.pl没有执行,运行roothas.pl 脚本时又遇到如下错误

[root@localhost ~]# /u01/grid/product/crs/install/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/grid/product/crs/install /u01/grid/product/crs/install/../../perl/lib) at /u01/grid/product/crs/install/crsinstall.pm line 210.
BEGIN failed--compilation aborted at /u01/grid/product/crs/install/crsinstall.pm line 210.
Compilation failed in require at /u01/grid/product/crs/install/roothas.pl line 94.

BEGIN failed--compilation aborted at /u01/grid/product/crs/install/roothas.pl line 94.

在以上目录里没有相关的文件

[root@localhost ~]# find / -name Env.pm

/u01/grid/product/perl/lib/5.14.1/Env.pm

从grid安装目录下复制一份过去

 cp /u01/grid/product/perl/lib/5.14.1/Env.pm /usr/lib64/perl5/vendor_perl/

再次运行,成功执行



你可能感兴趣的:(故障处理,oracle,rac)