How to Upgrade OPatch to Latest Version

This is a quick article to upgrade OPatch to latest release as its always recommended to use the latest version of OPatch before patching your database or grid. This would also be base reference for future posts on Applying latest Release Updates (RUs) and Release Update Revisions (RURs).

Download the latest copy of Opatch from https://updates.oracle.com/download/6880880.html, choose the release and platform based on your requirement and download the zip file. If you are confused about which Release to choose in the drop down of “Select a Release” please read the Description field and that should help you choose appropriate Release:

Once downloaded, transfer the file to the DB Server and then follow these Steps:

Step-1: Backup & Remove the current OPatch directory in Oracle_Home folder.

oracle> cd $ORACLE_HOME
oracle> tar -cvzPpf OPatch_backup.tar OPatch/

The tar command will create a tarball named OPatch_backup.tar (which you can extract by using tar -xvzPpf command).

After the existing OPatch directory is backed up, remove the OPatch directory.

oracle> rm -rf OPatch/

Step-2: Move the Downloaded OPatch zip to Oracle Home

mv /tmp/p6880880_190000_Linux-x86-64.zip $ORACLE_HOME

Step 3: Unzip the Downloaded OPatch zip file

cd $ORACLE_HOME
unzip p6880880_190000_Linux-x86-64

That’s it, unzipping this file would create OPatch directory and you get the new OPatch Installed.

Step-4: Check the OPatch version

oracle> opatch version
OPatch Version: 12.2.0.1.24

OPatch succeeded.
oracle>

4 thoughts on “How to Upgrade OPatch to Latest Version

  1. Pingback: ./opatch: line 839: [: too many arguments Java (1.x) could not be located | Oracle Database Internal Mechanism

  2. Pingback: How to Apply Release Update 12.2.0.1.210420 (Patch 32507738 – April 2021 RU) | Oracle Database Internal Mechanism

  3. Pingback: How to Apply Release Update 19.11.0.0.0 (Patch 32545013) | Oracle Database Internal Mechanism

  4. Hi Nitish,
    Thank you for the quick and clear instructions for upgrading opatch.

    One thing I want to ask, do I need to stop the database and grid cluster in order to upgrade the opatch?

    Kind regards
    Stone

    Like

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.