Monday, March 8, 2021

Can't locate Env.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5

 [grid@abt2 install]$ rootcrs.pl -deconfig -force -verbose

[grid@abt2 install]$ /u001/app/12.2.0/grid/crs/install/rootcrs.pl -deconfig -force -verbose

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 . /u001/app/12.2.0/grid/crs/install /u001/app/12.2.0/grid/crs/install/../../perl/lib) at crsinstall.pm line 286.

BEGIN failed--compilation aborted at crsinstall.pm line 286.

Compilation failed in require at /u001/app/12.2.0/grid/crs/install/rootcrs.pl line 165.

BEGIN failed--compilation aborted at /u001/app/12.2.0/grid/crs/install/rootcrs.pl line 165.


fix of this issue  is included in 12.1.0.2,  But  workaround is to use the perl in GI home.

Solution.

/u001/app/12.2.0/grid/perl/bin/perl  /u001/app/12.2.0/grid/crs/install/roothas.pl -deconfig -force

As per Oracle Document used 

In 12.1.0.2, rootcrs.sh/roothas.sh should be used instead of rootcrs.pl/roothas.pl.


Alternate Solution.

[root@abt2 5.22.0]# cd /usr/share/perl5/vendor_perl

[root@abt2 vendor_perl]# ls

App/      Business/  constant.pm  Digest.pm  Error.pm     ExtUtils/  Getopt/  HTML/               IO/    Mozilla/      parent.pm    RPC/                  Test/    Time/

Archive/  Carp/      Date/        Encode/    Exporter/    File/      Git/     HTTP/               LWP/   Net/          perldoc.pod  spamassassin-run.pod  Text/    WWW/

Bundle/   Carp.pm    Digest/      Error/     Exporter.pm  Foomatic/  Git.pm   IBswcountlimits.pm  Mail/  newgetopt.pl  Pod/         TAP/                  Thread/  XML/

[root@abt2 vendor_perl]# pwd

/usr/share/perl5/vendor_perl

[root@abt2 vendor_perl]# ls Env.pm*

ls: cannot access Env.pm*: No such file or directory

[root@abt2 vendor_perl]# ls -ltr /u001/app/12.2.0/grid/perl/lib/5.22.0/Env.pm

-rwxr-x--- 1 grid oinstall 5524 Mar  1  2020 /u001/app/12.2.0/grid/perl/lib/5.22.0/Env.pm*

[root@abt2 vendor_perl]# cp  -i /u001/app/12.2.0/grid/perl/lib/5.22.0/Env.pm .

[root@abt2 vendor_perl]# ls -ltr Env.pm*

-rwxr-x---  1 root root  5524 Mar  3 02:13 Env.pm*


On other Node.

[root@abt1 ~]# /u001/app/12.2.0/grid/crs/install/rootcrs.pl -deconfig -force -verbose

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 . /u001/app/12.2.0/grid/crs/install /u001/app/12.2.0/grid/crs/install/../../perl/lib) at /u001/app/12.2.0/grid/crs/install/crsinstall.pm line 286.
BEGIN failed--compilation aborted at /u001/app/12.2.0/grid/crs/install/crsinstall.pm line 286.
Compilation failed in require at /u001/app/12.2.0/grid/crs/install/rootcrs.pl line 165.
BEGIN failed--compilation aborted at /u001/app/12.2.0/grid/crs/install/rootcrs.pl line 165.

[root@abt1 ~]# cd /usr/share/perl5/vendor_perl
[root@abt1 vendor_perl]# cp  -i /u001/app/12.2.0/grid/perl/lib/5.22.0/Env.pm .
[root@abt1 vendor_perl]# /u001/app/12.2.0/grid/crs/install/rootcrs.pl -deconfig -force -verbose

Using configuration parameter file: /u001/app/12.2.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
  /u001/app/grid/crsdata/abt1/crsconfig/crsdeconfig_abt1_2021-03-08_08-13-27PM
.l

PRCR-1070 : Failed to check if resource ora.net1.network is registered

CRS-0184 : Cannot communicate with the CRS daemon.

PRCR-1070 : Failed to check if resource ora.helper is registered

CRS-0184 : Cannot communicate with the CRS daemon.

PRCR-1070 : Failed to check if resource ora.ons is registered

CRS-0184 : Cannot communicate with the CRS daemon.

2021/03/08 20:13:40 CLSRSC-180: An error occurred while executing the command '/u001/app/12.2.0/grid/bin/srvctl config nodeapps'

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'abt1'

CRS-2673: Attempting to stop 'ora.evmd' on 'abt1'

CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'abt1'

CRS-2673: Attempting to stop 'ora.ctssd' on 'abt1'

CRS-2673: Attempting to stop 'ora.crf' on 'abt1'

CRS-2673: Attempting to stop 'ora.mdnsd' on 'abt1'

CRS-2673: Attempting to stop 'ora.gpnpd' on 'abt1'

CRS-2677: Stop of 'ora.drivers.acfs' on 'abt1' succeeded

CRS-2677: Stop of 'ora.crf' on 'abt1' succeeded

CRS-2677: Stop of 'ora.ctssd' on 'abt1' succeeded

CRS-2677: Stop of 'ora.evmd' on 'abt1' succeeded

CRS-2673: Attempting to stop 'ora.asm' on 'abt1'

CRS-2677: Stop of 'ora.gpnpd' on 'abt1' succeeded

CRS-2677: Stop of 'ora.mdnsd' on 'abt1' succeeded

CRS-2677: Stop of 'ora.asm' on 'abt1' succeeded

CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'abt1'

CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'abt1' succeeded

CRS-2673: Attempting to stop 'ora.cssd' on 'abt1'

CRS-2677: Stop of 'ora.cssd' on 'abt1' succeeded

CRS-2673: Attempting to stop 'ora.gipcd' on 'abt1'

CRS-2677: Stop of 'ora.gipcd' on 'abt1' succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'abt1' has completed

CRS-4133: Oracle High Availability Services has been stopped.

2021/03/08 20:15:19 CLSRSC-4006: Removing Oracle Trace File Analyzer (TFA) Collector.

2021/03/08 20:15:58 CLSRSC-4007: Successfully removed Oracle Trace File Analyzer (TFA) Collector.

2021/03/08 20:15:59 CLSRSC-336: Successfully deconfigured Oracle Clusterware stack on this node


Reference:-