Before using the OPatch utility, ensure that the OPatch directory is set to the path. It is applicable for all the environments (UNIX or Windows). Then we can start using the OPatch utility as follows:
[oracle@oracle-primary ~]$ export PATH=$ORACLE_HOME/OPatch:$PATH [oracle@oracle-primary ~]$ opatch -help Invoking OPatch 18.104.22.168.6 Oracle Interim Patch Installer version 22.214.171.124.6 Copyright (c) 2009, Oracle Corporation. All rights reserved.