Home » Oracle » Useful adop (AD online patching ) Patching commands

Useful adop (AD online patching ) Patching commands

AD online patching is a new feature in EBS R12.2. We have a different command line than adpatch for that feature. Here in this article, I have given a very common and useful  31 adop patching commands line for R12.2

Table of Contents

Get examples of adop commands

adop -examples  

Get help with the command line option for adop

adop -help  

Typical online patching cycle adop patching commands

source /EBSapps.env run
adop phase=prepare
adop phase=apply patches=123456
adop phase=finalize
adop phase=cutover
source /EBSapps.env
run adop phase=cleanup

Run prepare phase

adop phase=prepare 

Run apply phase

adop phase=apply patches=12797970 

Run Finalize phase

adop phase=finalize 

Run Cutover phase

adop phase=cutover 

Run Cleanup phase

adop phase=cleanup 

Run fs_clone phase

adop phase=fs_clone 

Multiple phases can be executed in a single adop command.Example – combined finalize/cutover/cleanup

adop phase=finalize,cutover,cleanup 

How to restart the failed adop session in case you want to start from failure

adop phase=apply patches=2375757 restart=yes 

How to restart the failed adop session in case you want to start from the very beginning

adop phase=apply patches=1234 abandon=yes 

If you want to ignore a previously failed patch and apply a different one instead, you need to specify the new patch number and abandon=yes on the command line:

adop phase=apply patches=5868678 abandon=yes 

How to deal with “Continue As If It Were Successful” error:

adop phase=apply patches=<patch list> abandon=no restart=yes flags=autoskip 

How to define workers in adop

adop phase=apply patches=<patch list> workers=5 

How to re-apply the patch forcefully

adop phase=apply patches=<patch list> options=forceapply 

How to define patch top in adop

adop phase=apply patches=<patch list> patchtop=<patch location base> 

How to merge patch in adop

adop phase=apply patches=<patch list> merge=yes 

How to stop the application from restarting after cutover

adop phase=cutover mtrestart=no 

adop exit in case of failure in jobs. If you want it to wait for action through adctrl

adop phase=apply patches=123456 wait_on_failed_job=yes 

How to apply the patch directly to run file system with no downtime

adop phase=apply patches=<patch_list> hotpatch=yes 

How to apply a single patch to an NLS installation

This procedure assumes that you will apply US and language patches separately.
a. Use adop to start a new patching cycle
adop phase=prepare
b. Use adop to apply the patch driver of the US patch.
adop phase=prepare patches=123456
c. Use adop to apply the patch drivers of each NLS patch. If you have merged the individual NLS patches for a system that runs multiple languages, apply the driver for the merged NLS patch.
adop phase=apply patches=123456_JA:u123456.drv workers=8
d. Use adop to complete the patching cycle
adop phase=finalize, cutover, cleanup phase

See also  Logical view of the data model in R12.2

How to apply multiple patches to an NLS installation

This example assumes the system has American English, French, and German installed.

a. Use adop to start a new patching cycle
adop phase=prepare
b. Use AD Merge Patch to merge the US (American English) patches into a single patch.
c. Use AD Merge Patch to merge the French and German patches into a single NLS patch.
d. Use adop to apply all drivers of the merged US patch.
e. Use adop to apply all drivers of the merged NLS patch.
f. Use adop to complete the patching cycle (finalize, cutover, cleanup phases)

How to apply the Apply hrglobal.drv

adop phase=apply patchtop=$PER_TOP/patch/115 patches=driver:hrglobal.drv workers=8 options=nocopyportion,nogenerateportion,forceapply

How to apply the xla driver

adop phase=apply options=nocopyportion patchtop=$XLA_TOP/patch/115 patches=driver:xla5584908.drv 

How to multiple patches using separate apply commands

source /EBSapps.env run
adop phase=prepare
adop phase=apply patches=4689990
adop phase=apply patches=5789990
adop phase=finalize
adop phase=apply patches=5668899
adop phase=finalize
adop phase=cutover
source /EBSapps.env run
adop phase=cleanup

How to clean up the old version

adop phase=prepare
adop phase=actualize_all
adop phase=finalize finalize_mode=full
adop phase=cutover
adop phase=cleanup cleanup_mode=full

How to abort the adop patching cycle

adop phase=abort,cleanup cleanup_mode=full
adop phase=fs_clone

How to validate the system before starting to prepare or cutover

adop -validate 

How to find the running online patching cycle

adop -status 

If you want additional details of operations performed

adop -status -detail 

Hope you like this article on adop patching commands. Please do provide feedback to improve

Related Articles

Adop(Ad online patching utility) explained R12.2
Downtime and Hotpatch apply mode in adop R12.2: This article discusses about downtime mode of adop R12.2 and hotpatch mode.
adopmon and adopreports utility R12.2.5: This page gives detail about adopscanlog utility in R12.2.This utility makes the work easier and analyzes adop log directories for errors and warnings
what happens in the cutover phase of adop in R12.2
what happens in the adop phase prepare
How to find ad and txk patch level
https://docs.oracle.com/cd/E26401_01/doc.122/e22954/T202991T531062.htm

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top