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
Our Example;
- Product: Oracle Database
- Release: 12.1.0.2.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.
1 2 3 4 5 6 7 8 9 10 11 12 13 | cd $ORACLE_HOME mv OPatch OPatch_20181018 unzip p6880880_121010_Linux-x86-64.zip [oracle@****** db_home_1]$ opatch version OPatch Version: 12.2.0.1.14 OPatch succeeded. |
Note: if you want , you can add this path to your bash profile as below;
For Korn / Bourne shell:
1 | %export PATH=$PATH:$ORACLE_HOME/OPatch |
OPatch creates a hidden directory in the $ORACLE_HOME
1 | cd $ORACLE_HOME/.patch_storage |
You can find number of patches being applied on this database as result of opatch lsinventory.