While patching oracle 19c database JAVA component , the following errors were thrown:
Patching component oracle.javavm.client, 19.0.0.0.0…
Make failed to invoke “/usr/bin/make -f ins_rdbms.mk javavm_refresh ORACLE_HOME=/opt/oracle/product/19c/dbhome_1 OPATCH_SESSION=apply”….’make: perl: Command not found
make: *** [javavm_refresh] Error 127
NApply was not able to restore the home. Please invoke the following scripts:
- restore.[sh,bat]
- make.txt (Unix only)
to restore the ORACLE_HOME. They are located under
“/opt/oracle/product/19c/dbhome_1/.patch_storage/NApply/2023-11-01_14-06-22PM”
UtilSession failed: Re-link fails on target “javavm_refresh”.
Log file location: /opt/oracle/product/19c/dbhome_1/cfgtoollogs/opatch/opatch2023-11-01_14-06-22PM_1.log
OPatch failed with error code 73
Solution:
The first thing I will do is to restore the oracle database binaries to a consistent state:
cd /opt/oracle/product/19c/dbhome_1/.patch_storage/NApply/2023-11-01_14-06-22PM
./restore.sh
The second step is to add perl location in your $PATH environment variable $ORACLE_HOME/perl/bin and test it after profile reload:
echo $PATH
env | grep perl
After that using OPatch utility try to apply java patch again….should be successful !