Sunday, June 29, 2014

ouicli.pl INSTE8_APPLY 255 (or) ERROR: Failed to execute adclone.pl

I got the below issue while Cloning ORACLE HOME from source to target. I have copied the binaries from source and initiated adcfclone. It failed 
with below errror.



[oradev@host01 bin]$ perl adcfgclone.pl dbTechStack

                     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:
/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/bin/../jre/bin/java
u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/xmlparserv2.jar:
pps.ad.context.CloneContext -e /u01/app/oradev/product/11.2.0/dbhome_1/apps
29191.lst -stage /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone -db

Log file located at /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/

Provide the values required for creation of the new Database Context file.

Beginning rdbms home Apply - Sat Jun 28 16:27:21 2014

/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true  -Doracle.installer.oui_loc=/u01/app/oradev/product/11.2.0/dbhome_1/oui -classpath /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/xmlparserv2.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/ojdbc5.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/java:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/oui/OraInstaller.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/oui/ewt3.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/oui/share.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/oui/srvm.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/ojmisc.jar   oracle.apps.ad.clone.ApplyDBTechStack -e /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/DEV_host01.xml -stage /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone   -showProgress
APPS Password : Log file located at /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/log/DEV_host01/ApplyDBTechStack_06281527.log
  \      0% completed       RC-00110: Fatal: Error occurred while relinking of ApplyDBTechStack

ERROR while running Apply...
Sat Jun 28 16:27:53 2014

 ERROR: Failed to execute /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/bin/adclone.pl

Checked for the exact log file located u01/app/oradev/product/11.2.0/dbhome_1/appsutil/log/DEV_host01/ApplyDBTechStack_06281527.log


  [APPLY PHASE]
  AutoConfig could not successfully execute the following scripts:
    Directory: /u01/app/oradev/product/11.2.0/dbhome_1/perl/bin/perl -I /u01/app/oradev/product/11.2.0/dbhome_1/perl/lib/5.8.3 -I /u01/app/oradev/product/11.2.0/dbhome_1/perl/lib/site_perl/5.8.3 -I /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/perl /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone
      ouicli.pl               INSTE8_APPLY       255
AutoConfig is exiting with status 1

RC-50013: Fatal: Instantiate driver did not complete successfully.
I have checked the perl version installed in ORACLE HOME and on the /usr/bin.
The versions are different.



[oradev@host01 bin]$ /u01/app/oradev/product/11.2.0/dbhome_1/perl/bin/perl --version

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.

[oradev@host01 bin]$ perl --version

This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi

Copyright 1987-2009, 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.

[oradev@host01 clone]$ echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/u01/app/oradev/bin
[oradev@host01 clone]$ which perl
/usr/bin/perl

Exported the ORACLE_HOME perl into PATH variable and the issue was resolved.



Solution:
---------
[oradev@host01 bin]$ export PATH=/u01/app/oradev/product/11.2.0/dbhome_1/perl/bin/perl:$PATH:.

[oradev@host01 bin]$ echo $PATH
/u01/app/oradev/product/11.2.0/dbhome_1/perl/bin/perl:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/u01/app/oradev/bin:.
And then dbTechStack went successful.


[oradev@host01 bin]$ perl adcfgclone.pl dbTechStack /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/DEV_host01.xml

                     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 Rapid Clone with command:
perl /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/bin/adclone.pl java=/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/bin/../jre mode=apply stage=/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone component=dbTechStack method=CUSTOM dbctxtg=/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/DEV_host01.xml showProgress contextValidated=false
Running:
perl /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/bin/adclone.pl java=/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/bin/../jre mode=apply stage=/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone component=dbTechStack method=CUSTOM dbctxtg=/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/DEV_host01.xml showProgress contextValidated=false
APPS Password :

Beginning rdbms home Apply - Sat Jun 28 16:39:08 2014

/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=false  -Doracle.installer.oui_loc=/u01/app/oradev/product/11.2.0/dbhome_1/oui -classpath /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/xmlparserv2.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/ojdbc5.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/java:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/oui/OraInstaller.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/oui/ewt3.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/oui/share.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/oui/srvm.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/ojmisc.jar   oracle.apps.ad.clone.ApplyDBTechStack -e /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/DEV_host01.xml -stage /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone   -showProgress
APPS Password : Log file located at /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/log/DEV_host01/ApplyDBTechStack_06281539.log
  |      0% completed
Log file located at /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/log/DEV_host01/ApplyDBTechStack_06281539.log
  \      0% completed

Completed Apply...
Sat Jun 28 16:41:08 2014

Starting database listener for DEV:
Running:
/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/scripts/DEV_host01/addlnctl.sh start DEV
Logfile: /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/log/DEV_host01/addlnctl.txt

You are running addlnctl.sh version 120.1.12010000.4


Starting listener process DEV ...


LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 28-JUN-2014 16:41:10

Copyright (c) 1991, 2011, Oracle.  All rights reserved.

Starting /u01/app/oradev/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.3.0 - Production
System parameter file is /u01/app/oradev/product/11.2.0/dbhome_1/network/admin/DEV_host01/listener.ora
Log messages written to /u01/app/oradev/product/11.2.0/dbhome_1/admin/DEV_host01/diag/tnslsnr/host01/DEV/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host01.demo.com)(PORT=1534)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=host01.demo.com)(PORT=1534)))
STATUS of the LISTENER
------------------------
Alias                     DEV
Version                   TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date                28-JUN-2014 16:41:11
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oradev/product/11.2.0/dbhome_1/network/admin/DEV_host01/listener.ora
Listener Log File         /u01/app/oradev/product/11.2.0/dbhome_1/admin/DEV_host01/diag/tnslsnr/host01/DEV/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host01.demo.com)(PORT=1534)))
Services Summary...
Service "DEV" has 1 instance(s).
  Instance "DEV", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

addlnctl.sh: exiting with status 0

addlnctl.sh: check the logfile /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/log/DEV_host01/addlnctl.txt for more information ...

NLS boot file not found or invalid opmnctl ping – EBS 12.2 ADCFGCLONE FAIL

Error: adcfgclone.pl failed while performing clone of EBS 12.2 instance. This occurred while ohsT2PApply is in progress. INST_TOP/adm...