Opatch Prereq CheckConflictAgainstOHWithDetail
Always use opatch prereq checkconflictagainstohwithdetail command to check any conflict before patching. In which, the option CheckConflictAgainstOHWithDetail is pretty self-explanatory.
checkconflictagainstohwithdetail = Check Conflict Against OH with Detail
Furthermore, OH stands for Oracle Home.
OH = Oracle Home
Let's see how we execute the command before patching database 12.1.
[oracle@primary01 31219939]$ opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Oracle Interim Patch Installer version 12.2.0.1.21
Copyright (c) 2020, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /u01/app/oracle/product/12.1.0/db_1
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/12.1.0/db_1/oraInst.loc
OPatch version : 12.2.0.1.21
OUI version : 12.1.0.2.0
Log file location : /u01/app/oracle/product/12.1.0/db_1/cfgtoollogs/opatch/opatch2020-08-22_14-02-23PM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
Please note that, you can use opatch prereq -help to list all options.
For more use cases of using this command, you may check the following posts.