2.2.3.1 Verifying the Prerequisites for Applying a Patch on Multiple Hosts

To ensure successful patching, use the opatchauto apply —analyze command to check for any prerequisites. For multi-host patching, you must provide the Fusion Middleware Composer topology file using the -topology argument.

To verify that a patch can be applied to a specific Oracle home (ORACLE_HOME) and domain location (DOMAIN_HOME) on multiple hosts, use the —analyze argument to the OPatchAuto apply command.

opatchauto apply PATCH_HOME -analyze -topology fmwcomposer_topology_file -wallet wallet_location -walletPassword password_ifneeded 

For example:

opatchauto apply /home/oracle/patches/15941858 -analyze -topology /tmp/topology.xml -wallet /tmp/samplewallet -walletPassword password 

If you want to apply multiple patches in one session, use the –phBaseDir option.

This command displays the actions that will be taken by the patch, but does not actually apply the patch. As a result, it allows you to verify that the prerequisites for the patch have been met.

If any prerequisite checks fail, refer to the command output and log file to fix any issues before continuing. For example, a common failure is the detection of patch conflicts. If any patch conflicts occur, follow the instructions in the log file for how to obtain a merge patch from Oracle Support.