31 Useful adop (AD online patching ) command line for R12.2

    1. Get examples about adop
      adop -examples
      
    2. Get help about command line option for adop
      adop -help
      
    3. Typical online patching cycle:
      source <ebs_root>/EBSapps.env run
      adop phase=prepare
      adop phase=apply patches=123456
      adop phase=finalize
      adop phase=cutover
      source <ebs_root>/EBSapps.env run
      adop phase=cleanup
      
    4. Run prepare phase
      adop phase=prepare
      
    5. Run apply phase
      adop phase=apply patches=12797970
      
    6. Run Finalize phase
      adop phase=finalize
      
    7. Run Cutover phase
      adop phase=cutover
      
    8. Run Cleanup phase
      adop phase=cleanup
      
    9. Run fs_clone phase
      adop phase=fs_clone
      
    10. Multiple phases can be executed in a single adop command.Example – combined finalize/cutover/cleanup:
      adop phase=finalize,cutover,cleanup
      
    11. How to restart the failed adop session incase you want to start from failure
      adop phase=apply patches=2375757 restart=yes
      
    12. How to restart the failed adop session incase you want to start from the very beginning
      adop phase=apply patches=1234 abandon=yes
      
    13. 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
      
    14. How to deal with “Continue As If It Were Successful” error:
      $ adop phase=apply patches=<patch list> abandon=no restart=yes flags=autoskip
      
    15. how to define workers in adop:
      $ adop phase=apply patches=<patch list> workers=5
      
    16. How to re-apply patch forcefully:
      $ adop phase=apply patches=<patch list> options=forceapply
      
    17. How to define patchtop in adop:
      $ adop phase=apply patches=<patch list> patchtop=<patch location base>
      
    18. How to merge patch in adop
      $ adop phase=apply patches=<patch list> merge=yes
      
    19. How to stop application from restarting after cutover
      adop phase=cutover mtrestart=no
      
    20. adop exit incase of failure in jobs. If you want it to wait for action through adctrl
      adop phase=apply patches=123456 wait_on_failed_job=yes
      
    21. How to apply patch directly to run file system with no downtime
      $ adop phase=apply patches=<patch_list> hotpatch=yes
      
    22. How 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
      
    23. How to apply multiple patches to an NLS installationThis 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).
    24. 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
      
    25. How to apply the xla driver
      $ adop phase=apply options=nocopyportion patchtop=$XLA_TOP/patch/115 patches=driver:xla5584908.drv
      
    26. How to multiple patches using separate apply commands:
      source <ebs_root>/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 <ebs_root>/EBSapps.env run
      adop phase=cleanup
      
    27. How to clean up old version
      $ adop phase=prepare
      $ adop phase=actualize_all
      $ adop phase=finalize finalize_mode=full
      $ adop phase=cutover
      $ adop phase=cleanup cleanup_mode=full
      
    28. How to abort the adop patching cycle
      $ adop phase=abort,cleanup cleanup_mode=full
      $ adop phase=fs_clone
      
    29. How to validate the system before starting prepare or cutover
      adop -validate
      
    30. How to find the running online patching cycle
      adop -status
      
    31. If you want additional details of operations performed:
      $ adop -status -detail
      

    Related Articles

    Adop(Ad online patching utility) explained R12.2

    Downtime and Hotpatch apply mode in adop R12.2

    adopmon and adopreports utility R12.2.5

    what happens in cutover phase of adop in R12.2

    what happens in the adop phase prepare

Leave a Reply