This is a common issue we face while performing clone on EBS R12.1 on target, rapid clone utility is unable to locate the required perl version. The following error is reported while executing clone on dbTier: [oramgr@erpnode2 bin]$ perl adcfgclone.pl dbTier Perl lib version (5.10.0) doesn't match executable version (v5.8.8) at /d01/EBS_DB/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. [oramgr@erpnode2 bin]$ The general resolution for this issue is mentioned on many blogs to set “PERL5LIB” environment variable. But this is applicable only if you’re refreshing database or existing environment is already set. [oramgr@erpnode2 bin]$ export PERL5LIB=/d01/EBS_DB/11.2.0/perl/lib/5.10.0:/d01/EBS_DB/11.2.0/perl/lib/site_perl:/d01/EBS_DB/11.2.0/appsutil/perl Still its failing [oramgr@erpnode2 bin]$ perl adcfgclone.pl dbTier Perl lib version (5.10.0) doesn't match executable version (v5.8.8) at /d01/EBS_DB/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. [oramgr@erpnode2 bin]$ Cause: Still its pointing to old perl version: [oramgr@erpnode2 bin]$ which perl /usr/bin/perl Solution: Set the correct environment variables – ORACLE_HOME, PERL5LIB and most important PATH. [oramgr@erpnode2 bin]$ export ORACLE_HOME=/d01/EBS_DB/11.2.0 [oramgr@erpnode2 bin]$ export PERL5LIB=$ORACLE_HOME/perl/lib/5.10.0:$ORACLE_HOME/perl/site_perl/5.10.0:$ORACLE_HOME/appsutil/perl [oramgr@erpnode2 bin]$ export PATH=$ORACLE_HOME/perl:$ORACLE_HOME/perl/lib:$ORACLE_HOME/perl/bin:$PATH [oramgr@erpnode2 bin]$ Check the version of perl again and it should point to version 5.10: [oramgr@erpnode2 bin]$ perl -v This is perl, v5.10.0 built for x86_64-linux-thread-multi Copyright 1987-2007, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. [oramgr@erpnode2 bin]$ which perl /d01/EBS_DB/11.2.0/perl/bin/perl Execute adcfgclone.pl and it should work fine [oramgr@erpnode2 bin]$ perl adcfgclone.pl dbTier Copyright (c) 2002 Oracle Corporation Redwood Shores, California, USA Oracle Applications Rapid Clone Version 12.0.0 adcfgclone Version 120.31.12010000.8 Enter the APPS password : Running: /d01/EBS_DB/11.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -cp /d01/EBS_DB/11.2.0/appsutil/clone/jlib/java:/d01/EBS_DB/11.2.0/appsutil/clone/jlib/xmlparserv2.jar:/d01/EBS_DB/11.2.0/appsutil/clone/jlib/ojdbc5.jar oracle.apps.ad.context.CloneContext -e /d01/EBS_DB/11.2.0/appsutil/clone/bin/../context/db/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_8658.lst -stage /d01/EBS_DB/11.2.0/appsutil/clone 2> /tmp/adcfgclone_8658.err; echo $? > /tmp/adcfgclone_8658.res Thanks for reading. regards, X A H E E R
↧