Showing posts with label adpatch. Show all posts
Showing posts with label adpatch. Show all posts

Friday, October 18, 2013

How to apply a patch in between a patch( Interim patch) in apps 11i/R12 or How to restart a failed adpatch in 11i/R12

adpatch reads the .drv(driver) file in the patch and does the actions accordingly.It creates two Internal tables in APPLSYS account called AD_DEFERRED_JOBS and FND_INSTALL_PROCESSES for controlling adworkers, the workers statuses are controlled in these tables.

Also the Actions of the adpatch are stored in .rf9 file format in $APPL_TOP/admin/$TWO_TASK/restart directory..

when ever an adpatch is restarted from a failed session,it looks in to this folder to do
the restart work from where it has failed!.

Coming to the Actual procedure how to apply an interim ad patch do the following procedures.

1. Login adctrl and choose the option (tell the manager that a worker failed its job) — to stop
the existing patching…

2.login to APPLSYS and create backup of the two tables AD_DEFERRED_JOBS & FND_INSTALL_PROCESSES

3. take a backup of the restart folder(or directory) under $APPL_TOP/admin/$TWO_TASK/

4.Apply the Interim(Intermediate ) patch successfully ,when asked for to continue
with failed session in adpatch say No and to the next question choose Yes
(so that you will erase the failed session and start a fresh patching).

5.After finishing the Intermediate patch , restore the tables AD_DEFERRED_JOBS and
FND_INSTALL_PROCESS and the restart directory under $APPL_TOP/admin/$TWO_TASK.

6.login to adctrl and instruct the manager to restart the jobs.

7.Return to the original patch directory and invoke adpatch and now it will
ask “whether to continue with failed session”.

You have to give “Yes” and proceed with the original or existing patching…


Thanks,
Manish

Sunday, May 5, 2013

-manifest option in admrgpch

While applying more than 100 patches, you cannot unzip all the patches and put it in source directory instead you can do use of -manifest option of admrgpch command to merge those patches with downloaded zip files from metalink.

The sequence of these parameters are important !!!

[ebspat@igrexanwh002cn04 nonad]$ admrgpch -s src -manifest /u08/patches/r12/oks_csp_modules/nonad/src/patchlist.txt -d dest -merge_name oks_csp_merge

Put all zipped patches in src directory and keep list of those patches in patchlist.txt


unzipping /u08/patches/r12/oks_csp_modules/nonad/src/p10097694_R12.OKS.B_R12_GENERIC.zip..
unzipping /u08/patches/r12/oks_csp_modules/nonad/src/p11806604_R12.OKS.B_R12_cs.zip..
unzipping /u08/patches/r12/oks_csp_modules/nonad/src/p11806604_R12.OKS.B_R12_d.zip..
unzipping /u08/patches/r12/oks_csp_modules/nonad/src/p11806604_R12.OKS.B_R12_esa.zip..
unzipping /u08/patches/r12/oks_csp_modules/nonad/src/p11806604_R12.OKS.B_R12_e.zip..
unzipping /u08/patches/r12/oks_csp_modules/nonad/src/p11806604_R12.OKS.B_R12_f.zip..
...
...
...
...
...
...

 -- Processing patch: src/12411685_ZHS
 -- Processing file: src/12411685_ZHS/u12411685.drv
 -- Done processing file: src/12411685_ZHS/u12411685.drv
 -- Done processing patch: src/12411685_ZHS



Copying files...

5% complete. Copied 161 files of 3202...
10% complete. Copied 321 files of 3202...
15% complete. Copied 481 files of 3202...
20% complete. Copied 641 files of 3202...
25% complete. Copied 801 files of 3202...
30% complete. Copied 961 files of 3202...
35% complete. Copied 1121 files of 3202...
40% complete. Copied 1281 files of 3202...
45% complete. Copied 1441 files of 3202...
50% complete. Copied 1601 files of 3202...
55% complete. Copied 1762 files of 3202...
60% complete. Copied 1922 files of 3202...
65% complete. Copied 2082 files of 3202...
70% complete. Copied 2242 files of 3202...
75% complete. Copied 2402 files of 3202...
80% complete. Copied 2562 files of 3202...
85% complete. Copied 2722 files of 3202...
90% complete. Copied 2882 files of 3202...
95% complete. Copied 3042 files of 3202...
100% complete. Copied 3202 files of 3202...

Character-set converting files...

  200 unified drivers merged.

Patch merge completed successfully

Please check the log file at ./admrgpch.log.
[ebspat@igrexanwh002cn04 nonad]$