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 : 11.1.0.10.3 OUI Version : 11.2.0.1.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 11.2.0.0.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 11.2.0.1.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 11.1.0.12.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.
On the top left of the page, select the Release of opatch you need along with the the Platform you will be using opatch on and then click Download.
Copy the downloaded patch file to your target machine and unzip the file.
unzip 'p6880880*.zip'
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: 11.2.0.3.10 OPatch succeeded.
2 Comments
Wayne
9-Nov-2016 at 2:45 pmWorked beautifully. Thanks for posting.
Hhhh
1-Feb-2019 at 1:39 pmThx