Where to Get Latest OPatch Utility

  • by

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
...
export PATH=$PATH:$ORACLE_HOME/OPatch
[oracle@test ~]$ . .bash_profile
[oracle@test ~]$ which opatch
/u01/app/oracle/product/11.2.0/dbhome_1/OPatch/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:

https://updates.oracle.com/download/6880880.html
Newest Opatch Download Page

Newest Opatch Download Page

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

Replace Old OPatch

Suppose you have upload the newest opatch zip file to /home/oracle/patches. Here are the steps that can replace current OPatch.

1. Check Version of Old OPatch

[oracle@test ~]$ opatch version
OPatch Version: 11.2.0.3.4

OPatch succeeded.

2. Rename Old OPatch

That is, move the old OPatch to step aside.

[oracle@test ~]$ mv $ORACLE_HOME/OPatch $ORACLE_HOME/OPatch-11.2.0.3.4

With the version number, we can tell the directory is the old opatch utility 11.2.0.3.4 in practice.

3. Unzip the New OPatch

We start to unzip it.

[oracle@test ~]$ unzip -q /home/oracle/patches/p6880880_112000_Linux-x86-64.zip -d $ORACLE_HOME

Option -q calls unzip in silent mode.

4. Check Version of New OPatch

[oracle@test ~]$ opatch version
OPatch Version: 11.2.0.3.19

OPatch succeeded.

Now, the OPatch version is 11.2.0.3.19.

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 *