14 July, 2018

How to restart workers when patching using adpatch

How to restart the workers in adpatch

Sometimes when patching E-Business Suite some workers might get stuck. The patch is applied via workers and these workers are controlled by utility called as adctrl ( ad control ). 

Open another session & login as application O.S. user (like applmgr ) load apps enviroment and run adctrl , you will see option 1 to see status of worker . Check which worker is showing as failed state and then go to that worker log file in same location i.e. APPL_TOP/admin/TWO_TASK or SID /log you will see log file like a dwork001.log adwork002.log ….adwork021.log so if your worker 12 failed open log file adwork012.log & fix the problem then again in adctrl select option restart failed worked & then give worker number you want to restart . 

If you want to skip a worker , this option is not visible & do it at your own risk there is option 8 ( depending on your AD version , it might vary so if adctrl is displaying 7 options skip worker will be option 8 & if adctrl is showing 6 options skip worker will be option 7) 

You can select individual worker or a group of worker separated by - like 2-5 will select worker from 2 to 5.

Useful Scripts

To Find session details using SID. set verify off col sid format 99999 col machine format a10 col program format a25 trunc col username form...