Friday, November 20, 2009

RC-10203: The template provided does not match with the context file

We recently faced the following issue in one of our instances while running adclonectx.pl to clone the xml file:


AC-10006: Exception - java.io.FileNotFoundException: /appl_top/ad/11.5.0/admin/template/adxmlctx.tmp thrown while creating OAVars object for file:
../admin/template/adxmlctx.tmpRC-50004: Error occurred in CloneContext: RC-10203: The template provided does not match with the context file.Check logfile /apps/sdev/appl_top/admin/sdev/out/CloneContext_11190814.log for details.ERROR: context creation not completed successfully.Please check /tmp/adclonectx.err file for errors.

The adclonectx.pl script was not picking up the correct $AD_TOP path which is why it was throwing this error. To fix this issue, I used the following command:
perl adclonectx.pl sharedappltop contextfile=/apps/sdev/sdev.xml template=/apps/sdev/appl_top/ad/11.5.0/admin/template/adxmlctx.tmp
pairsfile=/apps/sdev/pre_Autoconfig/pairsfile_sdev.txt

Pass the template parameter as part of the adclonectx.pl script to provide the full path of the adxmlctx.tmp, which is the template referred here.


Subsequently, the command ran without any issues:
/apps/sdev/appl_top/ad/11.5.0/bin > perl adclonectx.pl sharedappltop contextfile=/apps/sdev/sdev.xml template=/apps/sdev/appl_top/ad/11.5.0/admin/template/adxmlctx.tmp
pairsfile=/apps/sdev/pre_Autoconfig/pairsfile_sdev.txt/apps/sdev/common_top/util/jre/1.1.8/bin/jre -classpath
/apps/sdev/product/iAS/jdbc/lib/classes111.zip:/apps/sdev/common_top/java/xmlparserv2.zip:/apps/sdev/common_top/util/jre/1.1.8/lib/rt.jar:/apps/sdev/common_top/java:/a pps/sdev/common_top/util/jre/1.1.8/lib/rt.jar:/apps/sdev/common_top/util/jre/1.1.8/lib/i18n.jar:/apps/sdev/common_top/util/jre/1.1.8/lib/tools.jar:/apps/sdev/common_to p/java/appsborg.zip:/apps/sdev/common_top/java/apps.zip:/apps/sdev/product/8.0.6/forms60/java:/apps/sdev/common_top/java oracle.apps.ad.context.CloneContext -e
/apps/sdev/sdev.xml -tmpl /apps/sdev/appl_top/ad/11.5.0/admin/template/adxmlctx.tmp -pairsfile /apps/sdev/pre_Autoconfig/pairsfile_sdev.txt -sharedappltop -perl
"/apps/sdev/product/iAS/Apache/perl/bin/perl" -perl5lib
"/apps/sdev/product/iAS/Apache/perl/lib/5.00503:/apps/sdev/product/iAS/Apache/perl/lib/site_perl/5.005:/apps/sdev/appl_top/au/11.5.0/perl"
Provide the values required for creation of the new APPL_TOP Context file.
Do you want to use a virtual hostname for the target node (y/n) [n] ?:
Do you want to add Admin Server node (y/n) [y] ?:
Do you want to add Concurrent Processing Server node (y/n) [y] ?:
Do you want to add Forms Server node (y/n) [y] ?:
Do you want to add Web Server node (y/n) [y] ?:
Target system 8.0.6 ORACLE_HOME directory [/apps/sdev/product/8.0.6]:
Target system iAS ORACLE_HOME directory [/apps/sdev/product/iAS]:
Location of the JDK on the target system [/opt/java1.3]:Database port is 1521
Do you want the middle-tier services on the target system to have the same port values as the source system (y/n) [y] ?:Web Listener port is 8903Complete port information available at /apps/sdev/appl_top/admin/out/sdev_thus/portpool.lst
APPS password is required to validate database connection using database port 1521Enter APPS Password [APPS]:apps
Target system proxy hostname [name.domain.com]:
Target system proxy port [80]:
UTL_FILE_DIR on database tier consists of the following directories.
1. /apps/orarpt/sdev/utlChoose a value which will be set as APPLPTMP value on the target node [1]:
Creating the new APPL_TOP Context file from : /apps/sdev/appl_top/ad/11.5.0/admin/template/adxmlctx.tmp
The new APPL_TOP context file has been created : /apps/sdev/appl_top/admin/sdev_thus.xml
Log file located at /apps/sdev/appl_top/admin/sdev/out/CloneContext_11190840.log

No comments: