Saturday, September 10, 2016


ADOP  PATCHING CYCLE -  PHASES


source <ebs_root>/EBSapps.env run
To prepare instance for patching

$adop phase=prepare                    

Source the patch edition environment file
To prepare instance for patching, specify patches, request merge, and apply with 4 workers.
$adop phase=prepare, apply patches=12345, 67890 merge=yes workers=4

adop phase=apply patches=xxx


To prepare instance for patching and apply patches interactively
$adop phase=prepare, apply

Running all phases in single command:
$adop phase=prepare,apply,finalize,cutover,cleanup patches=patch1,patch2

To apply patches with list of patches in the input_file.
$adop phase=apply input_file=adopsession20120702.txt

To fully automated patching with all parameters taken from input_file:
$adop input_file=adopsessions20120702.txt

To apply patches in hotpatch mode
$adop phase=apply input_file=adopsession20120702.txt hotpatch=yes

adop phase=finalize

adop phase=cutover

adop phase=cutover cm_wait=3

adop phase=cutover cm_wait=3 mtrestart=no (not to start the application services)

source <ebs_root>/EBSapps.env run

adop phase=cleanup

if prepare phase is failing..

adop phase=prepare skipsyncerror=yes


ADOP - Checking if adop phase fails on prepare,fs_clone or cutover


export RUN_CONTEXT_FILE=$INST_TOP/appl/admin/<SID>_hostname.xml
 export PATCH_CONTEXT_FILE=PATCH_FILEYSTEM_INST_TOP/appl/admin/<SID>_hostname.xml

check if fs_clone fails
 perl $AD_TOP/patch/115/bin/txkADOPValidations.pl  -contextfile=$RUN_CONTEXT_FILE -patchctxfile=$PATCH_CONTEXT_FILE -phase=fs_clone -logloc=/tmp

check if prepare phase fails

 perl $AD_TOP/patch/115/bin/txkADOPValidations.pl  -contextfile=$RUN_CONTEXT_FILE -patchctxfile=$PATCH_CONTEXT_FILE -phase=prepare -logloc=/usr/tmp

check if Cutover phase fails:

 perl $AD_TOP/patch/115/bin/txkADOPValidations.pl  -contextfile=$RUN_CONTEXT_FILE -patchctxfile=$PATCH_CONTEXT_FILE -phase=cutover -logloc=/tmp