When applying the patch from the apps tier machine and it dies in the middle of the patch, in this case the R12.1.1 patch, 6678700, it said:
Reading completed jobs from restart file (if any).
unable to find job when restarting
Wrong number of fields in restart file when restarting at line number =
This may indicate that the “END OF COMPLETED JOBS’ line is missing.
Other OTN threads suggest restarting the patch from the beginning. This requires a restore of the database, and while this solution works, it’s not the fastest solution.
Please edit the $APPL_TOP/admin/SID/restart/adpmain.rf9 file and remove the last incomplete line. See the figure below, the last line is incomplete compared to the line above it. Make a backup of the restart directory and edit the file and remove the last line.
Remove the line that says: Done job: prod= gmd un=GMD file=GMDSTNXT.sql ……
Then, restart the patch and use adctrl to set the jobs to restart.