O erro abaixo ocorreu quando eu tentava executar o rootcrs.pl -unlock no banco oracle 12.2 com OL7
[root@zmsolution1install]# ./rootcrs.pl -unlock 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 . . ./../../perl/lib) at crsinstall.pm line 286. BEGIN failed--compilation aborted at crsinstall.pm line 286. Compilation failed in require at ./rootcrs.pl line 165. BEGIN failed--compilation aborted at ./rootcrs.pl line 165.
Para solucionar o problema executei uma busca com o comando locate para saber onde tinha o arquivo e após copiei para o diretorio que o Oracle estava buscando.
locate Env.pm /u01/app/oracle/product/12.2.0/db_1/perl/lib/5.22.0/Env.pm /u01/app/oracle/product/12.2.0/db_1/perl/lib/5.22.0/TAP/Harness/Env.pm /u01/app/oracle/product/12.2.0/grid/perl/lib/5.22.0/Env.pm /u01/app/oracle/product/12.2.0/grid/perl/lib/5.22.0/TAP/Harness/Env.pm /u01/install/grid/perl/lib/5.22.0/Env.pm /u01/install/grid/perl/lib/5.22.0/TAP/Harness/Env.pm
cp /u01/install/grid/perl/lib/5.22.0/Env.pm /usr/share/perl5/vendor_perl
Agora vou executar o comando novamente.
[root@zmsolution1 install]# ./rootcrs.pl -unlock Using configuration parameter file: ./crsconfig_params The log of current session can be found at: /u01/app/oracle/crsdata/s00lnx95/crsconfig/crsunlock_s00lnx95_2018-04-24_12-05-58AM.log 2018/04/24 12:06:08 CLSRSC-357: Failed to stop current Oracle Clusterware stack during upgrade 2018/04/24 12:06:09 CLSRSC-347: Successfully unlock /u01/app/oracle/product/12.2.0/grid [root@zmsolution1 install]#