#!/bin/bash unset JAVA_HOME unset CLASSPATH unset LD_LIBRARY_PATH export ORACLE_HOME=/u01/app/oracle/product/19.3.0/dbhome_1 export PATH=$ORACLE_HOME/OPatch:$ORACLE_HOME/jdk/bin:$PATH exec $ORACLE_HOME/OPatch/opatch "$@"

: OPatch cannot find the internal JDK/JRE directory within your ORACLE_HOME or your environment variables. Environment Variables ORACLE_HOME are not set correctly for the session. Oracle Forums 1. Manually Specify the JDK Path