Showing posts with label patch. Show all posts
Showing posts with label patch. Show all posts

Wednesday, June 17, 2009

Patch # 6678700 (KO NLS) fails with WITH LOADING FADTXD .XLF

While applying Korean NLS patch (6678700) on a 12.1 instance, the patch errors out with the following error in the log:

Target file: FADTXD.xlf[061609_085037223][][EXCEPTION] java.io.UTFDataFormatException: Invalid UTF8 encoding.at oracle.xml.parser.v2.XMLUTF8Reader.checkUTF8Byte(XMLUTF8Reader.java:160)at oracle.xml.parser.v2.XMLUTF8Reader.readUTF8Char(XMLUTF8Reader.java:203)at oracle.xml.parser.v2.XMLUTF8Reader.fillBuffer(XMLUTF8Reader.java:120)at oracle.xml.parser.v2.XMLByteReader.saveBuffer(XMLByteReader.java:450)at oracle.xml.parser.v2.XMLReader.fillBuffer(XMLReader.java:2488)at oracle.xml.parser.v2.XMLReader.tryRead(XMLReader.java:1089)at oracle.xml.parser.v2.XMLReader.scanXMLDecl(XMLReader.java:3047)at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:521)at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:288)at oracle.apps.xdo.oa.util.TemplateTranslator.createMLSTemplates(TemplateTranslator.java:238)at oracle.apps.xdo.oa.util.XLIFFLoader.processUpload(XLIFFLoader.java:738)at oracle.apps.xdo.oa.util.XLIFFLoader.process(XLIFFLoader.java:586)at oracle.apps.xdo.oa.util.XLIFFLoader.processXLIFF(XLIFFLoader.java:1153)at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:597)at oracle.apps.ad.worker.AdJavaWorker.invokeUtility(AdJavaWorker.java:503)at oracle.apps.ad.worker.AdJavaWorker.main(AdJavaWorker.java:356)

Oracle has an open bug 8357323 for this which is yet to be closed. To work around this issue, please execute the following steps:

run the below commands to load US XML and US RTF manually , after that re-start the patch application by using adadmin and marking the failed worker as success and continue.

Command to reload XML

adjava -ms128m -mx256m -nojit oracle.apps.xdo.oa.util.XDOLoader UPLOAD-DB_USERNAME -DB_PASSWORD -JDBC_CONNECTION"(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=machine.oracle.com)(PORT=1540)))(CONNECT_DATA=(SID=sidname)))"-LOB_TYPE DATA_TEMPLATE -APPS_SHORT_NAME OFA -LOB_CODE FADTXD -LANGUAGE 00-XDO_FILE_TYPE XML-DATA-TEMPLATE -FILE_NAME$FA_TOP/patch/115/publisher/defs/FADTXD.xml

Replace the above with username/pwd and &jdbc_db_addr

Command to reload RTF

adjava -ms128m -mx256m -nojit oracle.apps.xdo.oa.util.XDOLoader UPLOAD-DB_USERNAME -DB_PASSWORD -JDBC_CONNECTION"(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=machine.oracle.com)(PORT=1540)))(CONNECT_DATA=(SID=sidname)))"-LOB_TYPE TEMPLATE_SOURCE -APPS_SHORT_NAME OFA -LOB_CODE FADTXD -LANGUAGE en-TERRITORY US -XDO_FILE_TYPE RTF -TRANSLATE Y -FILE_NAME$FA_TOP/patch/115/publisher/templates/US/FADTXD.rtf

Monday, June 1, 2009

How to Apply an 11i Patch When adpatch is Already Running

Adpatch is running and fails on one of the workers. To fix this worker andcontinue with the patch installation, a new patch needs to be applied. But only 1 adpatch session can run on an instance at any giventime, The following work around can be used to apply a patch when adpatch is already running.

1. Using the adctrl utility, shutdown the workers.
a. adctrl
b. Select option

3 "Tell worker to shutdown/quit"

2. Backup the FND_INSTALL_PROCESSES table which is owned by the APPLSYS schema
a. sqlplus applsys/
b. create table fnd_Install_processes_back as select * from fnd_Install_processes;
c. The 2 tables should have the same number of records.
select count(*) from fnd_Install_processes_back;
select count(*) from fnd_Install_processes;

3. Backup the AD_DEFERRED_JOBS table.
a. sqlplus applsys/
b. create table AD_DEFERRED_JOBS_back as select * from AD_DEFERRED_JOBS;
c. The 2 tables should have the same number of records.
select count(*) from AD_DEFERRED_JOBS_back;
select count(*) from AD_DEFERRED_JOBS;

4. Backup the .rf9 files located in $APPL_TOP/admin//restart directory.
At this point, the adpatch session should have ended and the cursor should be back at the Unix prompt.
a. cd $APPL_TOP/admin/
b. mv restart restart_back
c. mkdir restart

5. Drop the FND_INSTALL_PROCESSES table and the AD_DEFERRED_JOBS table.
a. sqlplus applsys/
b. drop table FND_INSTALL_PROCESSES;
c. drop table AD_DEFERRED_JOBS;

6. Apply the new patch.

7. Restore the .rf9 files located in $APPL_TOP/admin//restart_back directory.
a. cd $APPL_TOP/admin/
b. mv restart restart_
c. mv restart_back restart

8. Restore the FND_INSTALL_PROCESSES table which is owned by the APPLSYS schema.
a. sqlplus applsys/
b. create table fnd_Install_processes as select * from fnd_Install_processes_back;
c. The 2 tables should have the same number of records.
select count(*) from fnd_Install_processes;
select count(*) from fnd_Install_processes_back;

9. Restore the AD_DEFERRED_JOBS table.
a. sqlplus applsys/
b. create table AD_DEFERRED_JOBS as select * from AD_DEFERRED_JOBS_back;
c. The 2 tables should have the same number of records.
select count(*) from AD_DEFERRED_JOBS_back;
select count(*) from AD_DEFERRED_JOBS;

10. Re-create synonyms
a. sqlplus apps/apps
b. create synonym AD_DEFERRED_JOBS for APPLSYS.AD_DEFERRED_JOBS;
c. create synonym FND_INSTALL_PROCESSES FOR APPLSYS.FND_INSTALL_PROCESSES;

11. Start adpatch, it will resume where it stopped previously.

Tuesday, May 19, 2009

11I.PJ_PF.M Family Pack Installation Fails When Processing egot016.odf and egov028.odf

An error occurs when installing11i.PJ_PF.M (Projects Suite) via Patch 3485155 when processing the files egot016.odf and egov028.odf. Errors similar to the following can be seen in the adpatch worker logs:

ATTENTION: All workers either have failed or are waiting:
FAILED: file egot016.odf on worker 2. ...
adwork002.log: ...
Comparing objects in username EGO with ODF file
/u01/app/TEST/testappl/ego/11.5.0/patch/115/odf/egot016.odf
Reading objects from ODF file
AD Worker - adussfrt: INFO: Do not understand token
START_OF_AD_ODF_FILE in ODF file. Line is:
START_OF_BUILDING_BLOCK AD Worker - adussfrh:
ERROR: ODF file does not begin with standard header information
AD Worker - adusrtrf: ERROR: Unable to read header information from the ODF file
AD Worker - aiccep: ERROR: Unable to read ODF file
Time when worker failed: Mon Jul 04 2005 15:35:34
Evaluating symbolic arguments ....
Done evaluating symbolic arguments.
Time when worker started job:
Mon Jul 04 2005 15:35:34
Start time for file is: Mon Jul 04 2005 15:35:34
Comparing objects in username EGO with ODF file /u01/app/TEST/testappl/ego/11.5.0/patch/115/odf/egot016.odf
Reading objects from ODF file AD Worker - adussfrt:
INFO: Do not understand token START_OF_AD_ODF_FILE in ODF file.
Line is: START_OF_BUILDING_BLOCK
AD Worker - adussfrh:
ERROR: ODF file does not begin with standard header information
AD Worker - adusrtrf: ERROR: Unable to read header information from the ODF file
AD Worker - aiccep: ERROR: Unable to read ODF file


To work around the problem perform the following steps:

- Backup your current versions of egot016.odf and egov028.odf.
- Edit the file egot016.odf and make the following change. This change effectively provides the 115.1.50400.2 version of the file.


Replace:

# $Header: egot016.odf 115.1 2004/10/31 23:55:50 svdubey noship $
With:


START_OF_AD_ODF_FILE2.1.3Current system time is 04-FEB-2005 16:56:54# $Header: egot016.odf 115.1.50400.2 2005/02/04 17:09:18 kdenisen noship $

- Edit the file egov028.odf and make the following change. This change effectively provides the 115.2.50400.2 version of the file. -

Replace:

# $Header: egov028.odf 115.2 2004/10/31 23:46:41 svdubey noship $

With:

START_OF_AD_ODF_FILE2.1.3Current system time is 04-FEB-2005 16:56:58# $Header: egov028.odf 115.2.50400.2 2005/02/04 17:10:40 kdenisen noship $

Restart the failed worker and the patch completes successfully.