Thursday, November 5, 2020

Oracle AHF installation failed with "AHF-00074: Perl Modules not found: Data::Dumper"

Oracle combined Trace File Analyzer (TFA) & ORAchk/EXAchk into single installer called Oracle Autonomous Health Framework (AHF).

When installing AHF on Linux platform (Red Hat Enterprise Linux / Oracle Linux), got error "AHF-00074: Perl Modules not found :  Data::Dumper"
[root@host01]# ./ahf_setup
AHF Installer for Platform Linux Architecture x86_64
AHF Installation Log : /tmp/ahf_install_202300_4904_2020_11_05-18_04_25.log
PERL : /u01/app/19.9.0/grid/perl/bin/perl
[ERROR] : AHF-00074: Perl Modules not found :  Data::Dumper

In log file /tmp/ahf_install_202300_4904_2020_11_05-18_04_25.log, found 
[2020-11-05 18:18:20.784 EST] System Perl : /bin/perl
[2020-11-05 18:18:20.786 EST] Checking Perl Version : /bin/perl
[2020-11-05 18:18:20.791 EST] Perl Version : 5.016003
[2020-11-05 18:18:20.793 EST] PERL_ERROR in checkPerlVersion : 
[2020-11-05 18:18:20.794 EST] Checking Perl Owner : /bin/perl
[2020-11-05 18:18:20.798 EST] Perl Owner : root
[2020-11-05 18:18:20.799 EST] PERL_ERROR in checkPerlOwner : 
[2020-11-05 18:18:20.801 EST] Perl in checkPerlModules : /bin/perl
[2020-11-05 18:18:20.804 EST] Perl Module : Data::Dumper, Version : , Exit Status : 2
[2020-11-05 18:18:20.806 EST] Perl Module not found : Data::Dumper
   ... ...
[2020-11-05 18:18:21.068 EST] Perl from CRS HOME : /u01/app/19.9.0/grid/perl/bin/perl
[2020-11-05 18:18:21.070 EST] Checking Perl Version : /u01/app/19.9.0/grid/perl/bin/perl
[2020-11-05 18:18:21.075 EST] Perl Version : 5.028001
[2020-11-05 18:18:21.077 EST] PERL_ERROR in checkPerlVersion : 
[2020-11-05 18:18:21.078 EST] Checking Perl Owner : /u01/app/19.9.0/grid/perl/bin/perl
[2020-11-05 18:18:21.082 EST] Perl Owner : root
[2020-11-05 18:18:21.083 EST] PERL_ERROR in checkPerlOwner : 
[2020-11-05 18:18:21.085 EST] Perl in checkPerlModules : /u01/app/19.9.0/grid/perl/bin/perl
[2020-11-05 18:18:21.100 EST] Perl Module : Data::Dumper, Version : 2.170, Exit Status : 0

Perl from CRS HOME (/u01/app/19.9.0/grid/perl/bin/perl) succeeded to check perl module "Data::Dumper", but system Perl (/bin/perl) cannot find perl module "Data::Dumper". The module file is Dumper.pm
[root@host01]# find / -name Dumper.pm
/u01/app/oracle/product/19.9.0/dbhome_1/perl/lib/5.28.1/x86_64-linux-thread-multi/Data/Dumper.pm
/u01/app/19.9.0/grid/perl/lib/5.28.1/x86_64-linux-thread-multi/Data/Dumper.pm

File Dumper.pm is only found in Oracle homes, Linux installs this file with package perl-Data-Dumper
[root@host01]# rpm -q perl-Data-Dumper
package perl-Data-Dumper is not installed
[root@host01]#

Install package perl-Data-Dumper
[root@host01]# yum install perl-Data-Dumper
Loaded plugins: langpacks, ulninfo
  ... ...
 Resolving Dependencies
--> Running transaction check
---> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================
 Package                    Arch             Version                Repository         Size
============================================================================================
Installing:
 perl-Data-Dumper           x86_64           2.145-3.el7            ol7_latest         47 k

Transaction Summary
============================================================================================
Install  1 Package

Total download size: 47 k
Installed size: 97 k
Is this ok [y/d/N]: y
Downloading packages:

perl-Data-Dumper-2.145-3.el7.x86_64.rpm                                      |  47 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction

  Installing : perl-Data-Dumper-2.145-3.el7.x86_64 [                                    ] 1/1
      ... ...
  Verifying  : perl-Data-Dumper-2.145-3.el7.x86_64                                        1/1 

Installed:
  perl-Data-Dumper.x86_64 0:2.145-3.el7

Complete!

[root@host01]# find / -name Dumper.pm
/u01/app/oracle/product/19.9.0/dbhome_1/perl/lib/5.28.1/x86_64-linux-thread-multi/Data/Dumper.pm
/u01/app/19.9.0/grid/perl/lib/5.28.1/x86_64-linux-thread-multi/Data/Dumper.pm
/usr/lib64/perl5/vendor_perl/Data/Dumper.pm

Retry the AHF installation, the issue is fixed.

No comments: