运行perl adcfgclone.pl dbTier后,出现报错,操作过程:
。。。。。。。。。。。。。。。。。。。。
Do you want to preserve the Display [null] (y/n) ? : n
Target System Display [erp199:0.0] :
Do you want the the target system to have the same port values as the source system (y/n) [y] ? : n
Target System Port Pool [0-99] : 1
Checking the port pool 1
done: Port Pool 1 is free
Report file located at /oracle/prod/db/tech_st/10.2.0/appsutil/temp/portpool.lst
Complete port information available at /oracle/prod/db/tech_st/10.2.0/appsutil/temp/portpool.lst
Backing up /oracle/prod/db/tech_st/10.2.0/appsutil/ORCL_erp199.xml to /oracle/prod/db/tech_st/10.2.0/appsutil/ORCL_erp199.xml.bak
Creating the new Database Context file from :
/oracle/prod/db/tech_st/10.2.0/appsutil/template/adxdbctx.tmp
The new database context file has been created :
/oracle/prod/db/tech_st/10.2.0/appsutil/ORCL_erp199.xml
RC-50004: Error occurred in CloneContext:
null
Check Clone Context logfile /oracle/prod/db/tech_st/10.2.0/appsutil/clone/bin/CloneContext_04171700.log for details.
ERROR: Context creation not completed successfully.
For additional details review the file /tmp/adcfgclone_23419.err if present.
Performing file system cleanup specific to Platform Migration:
=================================================================================================
The new context file has been created at:
/oracle/prod/db/tech_st/10.2.0/appsutil/ORCL_erp199.xml
*******************************************
Performing file system cleanup specific to Platform Migration:
StackTrace:
java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at oracle.apps.ad.clone.util.CloneCleanser.doMigrate(CloneCleanser.java:98)
at oracle.apps.ad.context.CloneContext.doClone(CloneContext.java:697)
at oracle.apps.ad.context.CloneContext.main(CloneContext.java:4801)
RC-50004: Error occurred in CloneContext:
null
Context file creation not succesful
Solution
There are two options to resolve this issue.
1) Apply Patch 6001474 -ADDING A MT NODE REMOVES ALL THE .A AND .O FILESon the source environment and rerun autoconfig before doing the preclone steps.
This will ensure that the platform name stored in context file will be 'Linux'
2) To workaround the issue after the problem is encountered on the target instance, the cource context file needs to be modified which was copied across to the target instance.
The following entry have to be changed in the source context xml from :
LINUX_IA-64
/
so
To :
Linux
/
so
Then execute the adcfgclone.pl dbTier on the target db.