11g Database Perl Lib Version (v5.8.5) Doesn't Match Executable Version (v5.10.0) in Oracle Apps


Error:

When running  perl adcfgclone.pl on the database tier,
the following error occurs:

perl adcfgclone.pl dbTier
Perl lib version (5.10.0) doesn't match executable version (v5.8.8) at <INSTALL_BASE>/db/tech_st/11.2.0/perl/lib/5.10.0/x86_64-linux-thread-multi/Config.pm line 46.
Compilation failed in require at adcfgclone.pl line 28.
BEGIN failed--compilation aborted at adcfgclone.pl line 28.


Reason

The env is pointing to the OS perl


which perl
/usr/bin/perl

Solution:

1. cd <INSTALL_BASE>/db/tech_st/11.2.0

2. export ORACLE_HOME=<INSTALL_BASE>/db/tech_st/11.2.0

3. export PERL5LIB=$ORACLE_HOME/perl/lib/5.10.0:$ORACLE_HOME/perl/site_perl/5.10.0:$ORACLE_HOME/appsutil/perl

4. export PATH=$ORACLE_HOME/perl/bin/:$PATH

5. Check if the environment points to the correct perl:
echo $PATH
which perl
perl -v

6. Re-Run adcfgclone.pl





If you like please follow and comment