OPatch consists of patching utilities that help ensure your Oracle software stays current and secure.
Oracle recommends that you use the latest released OPatch, which is available for download from Oracle Support
Document Id: 274526.1
Opatch Number : 6880880
- Product: Oracle Database
- Release: 18.104.22.168.0
- Platform: Linux x86-64
Download Opatch from Oracle Support;
But there’s a long list of choices – which one should you download:
You should use the version of OPatch that supports the ORACLE_HOME release.
For example, if your Oracle Database Version is 12.0.1, then download OPatch version 12. If your Oracle Database Version is 11.2, then download OPatch version 11.2.
Put this zip file to your Oracle_Home directory and backup your old version of opatch.
mv OPatch OPatch_20181018
[oracle@****** db_home_1]$ opatch version
OPatch Version: 22.214.171.124.14
Note: if you want , you can add this path to your bash profile as below;
For Korn / Bourne shell:
OPatch creates a hidden directory in the $ORACLE_HOME
You can find number of patches being applied on this database as result of opatch lsinventory.