Upgrade Oracle opatch Version
Category : How-to
opatch is Oracle’s tool for patching software such as OBIEE and ODI and is used in conjunction with patch downloads from Oracle Support.
Versions of the opatch tool change over time, often in line with releases of other Oracle software. If you try to use an out of date opatch binary for a newer patch file, you’ll get the below error.
#opatch napply -silent /u01/binaries/patch -id 20188679 OPatch Version : 188.8.131.52.3 OUI Version : 184.108.40.206.0 The OPatch version is not applicable for current OUI version. Since OUI Version starts with 11.2, Please go to 'My Oracle Support' and get right OPatch 11.2.*.*.* based on patch 6880880, release version 220.127.116.11.0 and appropriate platform. OPatch failed with error code 1
You need to upgrade your version of opatch to the OUI Version indicated, which in this example is 18.104.22.168.0.
To upgrade your version of opatch search on Oracle Support for patch number 6880880 and click one of the results – there are several results titled something similar to ‘OPatch patch of version 22.214.171.124.7 for Oracle software releases 11.1.0.x (JUN 2015) (Patch)‘. You can click on any of the results with a similar name to the above as they all take you to the same page.
Copy the downloaded patch file to your target machine and unzip the file.
Installing the updated opatch binary is simple – move the old OPatch directory and replace it with the new one we just downloaded.
For this example, we’re replacing the OPatch folder for an OBIEE installation located at /u01/app/oracle/product/fmw/Oracle_BI1/. Depending on your install path and application, your path may be different however the OPatch directory is usually found in the ORACLE_HOME directory.
mv /u01/app/oracle/product/fmw/Oracle_BI1/OPatch /u01/app/oracle/product/fmw/Oracle_BI1/OPatch_V11_1x
Copy the unzipped OPatch folder to the ORACLE_HOME directory:
cp -r OPatch /u01/app/oracle/product/fmw/Oracle_BI1/
Check the version of the opatch binary:
cd /u01/app/oracle/product/fmw/Oracle_BI1/OPatch ./opatch version
OPatch Version: 126.96.36.199.10 OPatch succeeded.