12.1.2.12 to 12.2.1.2 can fail - easy fix: Error is Found in /opt/oracle/oak/onecmd/tmp/gridconfig.
Symptom: When upgrade to 12.2.1.2 on ODA
"/opt/oracle/oak/onecmd/tmp/gridconfig.sh"' and it returned code(127)
/u01/app/12.2.0.1/grid/crs/config/config.sh: line 48:/u01/app/12.2.0/grid/perl/bin/perl: No such file or directory
It is using /u01/app/12.2.0 directory which does not exist
Evidence found in /opt/oracle/oak/onecmd/tmp/giclonepl.sh-*log
Solution: remove related file:
rm -R /u01/app/oraInventory/locks
then redo the upgrade. = rerun the patch and it should complete without error
Or to prevent the issue happening before the upgrade we can do the check
ls -al /u01/app/oraInventory/locks