How to Download Newest OPatch Utility

Add OPatch to $PATH

If you’re the first time to apply patches, you have to add OPatch to $PATH in order to apply your patches anywhere. If you have done it, you can skip this step.

[oracle@test ~]$ vi .bash_profile
[oracle@test ~]$ . .bash_profile
[oracle@test ~]$ which opatch

Newest OPatch Download Page

Before any patching, you have to make sure your OPatch utility is the latest version in order to apply your patches more smoothly.

Below is the link that provides you the newest OPatch utility. Of course, you must have an Oracle MOS account to access it:
Newest Opatch Download Page
Newest Opatch Download Page

You should select the right release and platform to download for your requirements and upload it to the database server.

Replace Old OPatch

Here are the steps that can replace current OPatch.

Check Version of Old OPatch

[oracle@test ~]$ opatch -help
Oracle Interim Patch Installer version
Copyright (c) 2012, Oracle Corporation.  All rights reserved.

Make a Directory for All Patches

[oracle@test ~]$ mkdir patches
[oracle@test ~]$ cd patches

Upload and Unzip the New OPatch

Suppose you have upload it to this directory. We start to unzip it.

[oracle@test patches]$ unzip -q

Option -q calls unzip in silent mode.

Rename Old OPatch

That is, ask the current OPatch to step aside.

[oracle@test patches]$ mv $ORACLE_HOME/OPatch $ORACLE_HOME/OPatch_old

Join New OPatch to Oracle Software

That is, the newest OPatch starts to take the responsibility of patching right away.

[oracle@test patches]$ mv ./OPatch $ORACLE_HOME/OPatch

Check Version of New OPatch

[oracle@test OPatch]$ opatch -help
Oracle Interim Patch Installer version
Copyright (c) 2018, Oracle Corporation.  All rights reserved.

Now, the OPatch version is

That is to say, updating OPatch can be simplified as two steps:

  1. Unzipping the new OPatch.
  2. Replace the old one.

In recent days, some OPatch are updated via java command, we should notice the trend. I talked about it in: How to Update Opatch in Oracle Fusion Middleware.

Leave a Reply

Your email address will not be published. Required fields are marked *