On Linux 7, while running TFA or ORAchk, it might fail with below errors:
[oracle@racnode1 orachk]$ which perl
/bin/perl
[oracle@racnode1 orachk]$ ./orachk -u -o pre
Enter upgrade target version (valid versions are 11.2.0.4.0, 12.1.0.2.0,
12.2.0.1.0, 18.0.0.0.0, 19.0.0.0.0, 20.0.0.0.0) 3 tries left:- 12.2.0.1.0
Clusterware stack is running from /u01/app/12.1.0/grid.
Is this the correct Clusterware Home?[y/n][y] y
Can't locate Data/Dumper.pm in @INC (@INC contains: /u01/app/oracle/utilities/orachk
/usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .)
at /u01/app/oracle/utilities/orachk/.cgrep/discoverdbasm.pl line 24.
BEGIN failed--compilation aborted at /u01/app/oracle/utilities/orachk/
.cgrep/discoverdbasm.pl line 24.
SOLUTION
Use Oracle Perl instead of Linux 7 Perl.
$ export PATH=/u01/app/oracle/product/12.1.0/dbhome_1/perl/bin:$PATH $ which perl /u01/app/oracle/product/12.1.0/dbhome_1/perl/bin/perl