Learn how to download the latest OPatch utility for Oracle Database 19c, 21c, 23ai and other Oracle products. Includes OPatch download steps, version check, installation and common commands.
Table of Contents
Download Latest OPatch
OPatch is an Oracle utility used by database administrators to apply, roll back, and manage patches in an Oracle software home. Before applying an Oracle Release Update (RU), interim patch, or other supported software patch, it is important to use an OPatch version that is compatible with your Oracle release and platform.
Oracle recommends downloading the latest released OPatch from My Oracle Support (MOS). The OPatch utility is distributed through Patch 6880880, with the appropriate release and platform selected during download.

Important: There is no single OPatch ZIP that should be used for every Oracle product and version. Always select the OPatch release appropriate for your Oracle Home, database release, operating system, and patch requirements.
How to Check the Current OPatch Version
Before downloading a new OPatch version, check the version currently installed in your Oracle Home.
Linux / Unix
cd $ORACLE_HOME/OPatch
./opatch version
Example:
OPatch Version: 12.2.0.1.xx
OPatch succeeded.
You can also use:
$ORACLE_HOME/OPatch/opatch version
Windows
cd %ORACLE_HOME%\OPatch
opatch version
How to Download the Latest OPatch
Follow these steps to download OPatch from Oracle.
Step 1: Log in to My Oracle Support
Open My Oracle Support and sign in with your Oracle Support account.
Step 2: Search for Patch 6880880
Go to Patches & Updates and search for:
6880880
Oracle identifies Patch 6880880 as the OPatch download location for supported Oracle releases.
Step 3: Select Your Oracle Release
Select the release corresponding to your Oracle Home.
For example:
19.0.0.0.0
For an Oracle Database 19c environment.
Step 4: Select Your Platform
Choose the appropriate operating system and architecture, such as:
- Linux x86-64
- Microsoft Windows x64
- Solaris
- AIX
- HP-UX
The available packages depend on the selected Oracle release and platform.
Step 5: Download the OPatch ZIP
Download the appropriate OPatch ZIP file to your server.
For production systems, always verify the package against the Oracle documentation and the README supplied with the download.
How to Install or Upgrade OPatch
After downloading the latest compatible OPatch, copy it to the server containing the Oracle Home.
First, back up the existing OPatch directory.
cd $ORACLE_HOME
tar -cvf OPatch_backup.tar OPatch
You can then replace the existing OPatch directory with the downloaded version according to Oracle’s instructions.
For example:
cd $ORACLE_HOME
mv OPatch OPatch_old
unzip p6880880_<version>_<platform>.zip
After extraction, verify the new version:
$ORACLE_HOME/OPatch/opatch version
Oracle recommends backing up the Oracle Home before patching operations, and Oracle documentation also provides procedures for updating OPatch.
Verify OPatch After Installation
Run:
$ORACLE_HOME/OPatch/opatch version
Then check the Oracle inventory:
$ORACLE_HOME/OPatch/opatch lsinventory
The lsinventory command is especially useful for checking the patches currently installed in an Oracle Home.
For Oracle Database 19c, the Oracle Home patch level is reflected in opatch lsinventory; SQL patch information can additionally be checked through DBA_REGISTRY_SQLPATCH.
Important OPatch Commands for Oracle DBAs
Here are some frequently used OPatch commands:
Check OPatch Version
opatch version
Display Oracle Home Inventory
opatch lsinventory
Check Patch Details
opatch lsinventory -detail
Check Patch Conflicts
opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir <PATCH_LOCATION>
Apply a Patch
opatch apply
Rollback a Patch
opatch rollback -id <PATCH_ID>
Always follow the specific patch README before running opatch apply or opatch rollback. Oracle’s documentation states that the README contains the important requirements and procedures for applying a particular patch.
OPatch for Oracle Database 19c
Oracle Database 19c is one of the most common environments where DBAs use OPatch.
A typical Oracle Database 19c patching workflow is:
Check Oracle version
↓
Check current OPatch version
↓
Download latest compatible OPatch
↓
Backup Oracle Home
↓
Update OPatch
↓
Check OPatch inventory
↓
Download required RU/interim patch
↓
Read patch README
↓
Run prerequisite checks
↓
Apply patch
↓
Verify inventory
↓
Run required database SQL patching
↓
Verify database
Oracle recommends using the latest released OPatch version appropriate for the environment.
Click here to read more about Oracle Database Patching
Frequently Asked Questions
What is the OPatch download patch number?
The commonly used Oracle OPatch download patch number is 6880880. Oracle uses this patch to distribute OPatch packages for different Oracle releases and platforms.
Is OPatch free to download?
OPatch is provided by Oracle through My Oracle Support. Access to the download generally requires an appropriate Oracle Support account and entitlement.
How do I check my OPatch version?
$ORACLE_HOME/OPatch/opatch version
Can I use the same OPatch version for Oracle 19c and Oracle 12c?
Do not assume so. OPatch versions are associated with Oracle software releases and platforms. Select the version supported for your specific Oracle Home.
Where is OPatch installed?
$ORACLE_HOME/OPatch
Should I update OPatch before applying an Oracle RU?
If the RU README or Oracle documentation requires a newer OPatch version, yes. Oracle generally recommends using the latest released compatible OPatch version.