Summary
Oracle patch installation using OPatch
This note describes how to install Oracle database patches using the Oracle patch tool OPatch for Oracle Release 10.2 in the SAP environment. For Oracle Release 9i, see Note 306408.
For information about installing Oracle database patches using the Oracle tool MOPatch, see Note 1027012. This tool supports the collective installation and the delta installation of patches on UNIX platforms as of Oracle Release 10.2.
This note also describes the procedure for installing a new version of OPatch for Oracle Release 10.2.0.2 or 10.2.0.4 (see below).
Patch 2617419
Patch 4898608
Patch 6880880
p2617419_10102_GENERIC.zip
p4898608_10202_GENERIC_v5.zip
Opatch_10204_Generic_v3.zip
Oracle patch installation for Oracle Release 10.2 in the SAP environment.
Patches, patch sets, merge patches, critical patch updates, bug fixes
This section describes the differences between Oracle database patch sets, Oracle database patches, merge patches, Critical Patch Updates (CPUs), and so on.
Oracle Database Patch Sets
Oracle database patch sets are installed using the Oracle Universal Installer (OUI) (UNIX:
Oracle Database Patches
As of Oracle9i, you can install and uninstall Oracle database patches with the Oracle patch tool (Unix:
An Oracle database patch is sometimes also called '
Each Oracle database patch contains instructions for installing and uninstalling the patch (
Patch collections and Critical Patch Updates (CPUs) for Windows
For reasons relating to the software, there are patch collections (known as '
Individual patches, like the ones for UNIX platforms, are not available for Windows. For this reason, MOPatch is available only for UNIX platforms. MOPatch automates the installation of several individual patches.
Patch collections that are relevant for the SAP environment are available on SAP Service Marketplace (see Note 871735). Some of these patch collections are Critical Patch Updates (CPUs), which are provided within the critical patch update program (see Note 850306). On Windows platforms, there is no difference between a CPU and a patch collection with regard to the technical installation. Both are installed using OPatch.
Merge patches
A merge patch contains several error corrections in one patch. Merge patches are required if the correction of an error is contained in the same program module as the correction of another error. After you install a merge patch, the OPatch inventory log lists the number of the 'Merge bug' and the relevant numbers (bug IDs) of the individual errors, which have been corrected in the merge patch, under 'Bugs fixed'.
OPatch Release 9.2/10.1
Release: 9.2.0/10.1.0
Oracle patch ID: 2617419 (Oracle MetaLink 602334.1)
Runtime environment: Pearl (installed in ORACLE_HOME)
Patch storage (UNIX):
OPatch log files (UNIX):
Download link:
Download zip file:
OCM support: No
MOPatch support: No
As of June 9, 2008, you can no longer use the OPatch version that is available in patch 2617419 on Oracle MetaLink to install patches (see Oracle MetaLink Note 602334.1). Therefore, continue to use the OPatch version that is available on SAP Service Marketplace for the patch installation for Oracle Release 9.2/10.1 in the SAP environment.
OPatch Release 10.2.0.2
Release: 10.2.0.2
Oracle patch ID: 4898608 (Oracle MetaLink 602334.1)
Runtime environment: Java (installed in ORACLE_HOME)
Patch storage (UNIX):
OPatch log files (UNIX):
OPatch history file:
Download link:
Download zip file:
OCM support: No
MOPatch support: Yes, see Note 1027012.
As of June 9, 2008, you can no longer use the OPatch version that is available in patch 4898608 on Oracle MetaLink to install patches (see Oracle MetaLink Note 602334.1). Therefore, continue to use the OPatch version for Release 10.2.0.2 that is available on SAP Service Marketplace for the patch installation for Oracle Release 10.2.0.2 in the SAP environment.
OPatch Release 10.2.0.4
Release: 10.2.0.4
Oracle patch ID: 6880880 (Oracle MetaLink 602334.1)
Runtime environment: Java (installed in ORACLE_HOME)
Patch storage (UNIX):
OPatch log files (UNIX):
OPatch history file:
Download link:
Download zip file:
OCM support: No, see Note 1227404.
MOPatch support: Yes, see Note 1027012.
As of June 9, 2008, you can no longer use the OPatch version, which is also available for Release 10.2.0.4 in patch 4898608 on Oracle MetaLink, to install patches (see Oracle MetaLink Note 602334.1). Therefore, use the OPatch version for Release 10.2.0.4 that is available on SAP Service Marketplace for the patch installation for Oracle Release 10.2.0.4 in the SAP environment.
The OPatch version for Release 10.2.0.4, which is available on SAP Service Marketplace, is a special version of OPatch that is released only for the use in the SAP environment. It is platform-independent and does not include OCM support, unlike the OPatch version on Oracle MetaLink (patch ID 6880880).
The version display of the SAP version of OPatch is as follows:
OPatch logs and documentation
OPatch logs are saved in the directory
The documentation for OPatch Release 10.2 is available in the Oracle online documentation '
Each Oracle bug has a bug number (bug ID) that uniquely identifies the bug. In the same way, each Oracle patch also has a patch number (patch ID) that uniquely identifies the patch. When you display the Oracle inventory, the system displays the patch number for each patch that was installed and the numbers of the bugs that were corrected by the patch.
The patch directory of a patch
In most cases, the patch number corresponds to the bug number for individual patches, and the patch number corresponds to the number of the merge bug for merge patches.
The bug number always corresponds to the number in the file name of the packed patch, which means that the file
The same operating system user that was used to install the Oracle software is also used when you install or uninstall patches using OPatch. For UNIX, this is the user
OPatch requires that the environment variable
Important: When you install a patch, read the delivered README.txt of the patch to determine whether you have to carry out any additional steps (and, if this is the case, which steps you have to carry out) before or after you install the patch.
Before you install or uninstall patches, you must first stop all instances and processes that were started in ORACLE_HOME (Oracle instance(s), listener, Oracle CSS service ocssd.bin (see Note 839574), and so on).
You can install several Oracle database patches in direct succession, without having to restart the Oracle instance after each patch, provided that the patch description does not contain other instructions (see MOPatch, Note 1027012).
Before you install a patch set, you are not required to manually uninstall patches.
When you install patches and patch sets, the status of the installed software is stored in the Oracle inventory. Both OPatch and the Oracle Universal Installer display the installed patches and patch sets from the Oracle inventory.
After you install or uninstall one or more patches, you should execute '
Overview of OPatch commands
Displaying the OPatch version
Displaying the online help
Displaying the online help for a certain command
Displaying the Oracle inventory (see below)
Installing a patch (see below)
Uninstalling a patch (see below)
Special functions of OPatch (see below)
Cleanup of the patch storage directory
When you install patches using MOPatch, the patch storage directory is automatically cleaned up by default using this option at the end.
For OPatch, there are two general options that you can specify in addition using the command
You can use the option
You can specify the option
Displaying the Oracle inventory
When you use '
When you use '
When you use '
When you use '
Patch installation using OPatch on UNIX platforms
- 1. For each Oracle patch set release, create a separate OPatch base directory
For example: for Release 10.2.0.2
For example: for Release 10.2.0.4
- 2. Copy the patches that are to be installed to the base directory and unpack them there. In this case, an individual patch directory
Example for UNIX:
- 3. Stop the instance and all of the Oracle processes of the relevant ORACLE_HOME.
- 4. We recommend that you create a backup of the ORACLE_HOME and the Oracle inventory BEFORE you install the patch.
- 5. Install the patch by calling OPatch as follows:
Option 1: Calling OPatch specifying the patch directory
Option 2: Calling OPatch directly from the patch directory
- 6. Optional: Cleanup of the patch storage directory
Patch installation using OPatch on Windows platforms
In general, installing a patch on Windows platforms works in the same way as installing a patch on UNIX platforms. The main difference is that, for reasons relating to the platform, you can install several individual patches and merge patches on UNIX, whereas you can install exactly one patch collection on Windows.
Before you start the installation, take account of the specifications in the patch README.
- 1. For each Oracle release, create a separate OPatch base directory
For example: for Release 10.2.0.4
- 2. Copy the Windows patch collection that is to be installed to the base directory, and unpack the patch collection there in the directory
- 3. Stop all of the Oracle processes, Oracle services, and so on, of the relevant ORACLE_HOME (
- 4. We recommend that you create a backup of the ORACLE_HOME and the Oracle inventory BEFORE you install the patch.
- 5. Install the patch by calling OPatch as follows:
Option 1: Calling OPatch specifying the patch directory
Option 2: Calling OPatch directly from the patch directory
- 6. Then carry out the post-install steps that are prescribed in the patch README.
- 7. Optional: Cleanup of the patch storage directory
Uninstalling a patch
To uninstall a patch, proceed as follows:
In the following, <opatch> on Windows platforms refers to
- 1. First, determine the patch IDs of the patches that are currently installed, and check whether the patch to be uninstalled is actually installed in the system.
- 2. Take a note of the patch ID
- 3. Stop all of the Oracle instances, all of the Oracle processes, Oracle services, and so on, of the relevant ORACLE_HOME.
- 4. We recommend that you create a backup of the ORACLE_HOME and the Oracle inventory BEFORE you uninstall the patch.
- 5. To uninstall the relevant patch, execute the following command:
- 6. Check the result:
- 7. If required, carry out the post-install steps in accordance with the relevant patch README or SAP Note.
- 8. Optional: Cleanup of the patch storage directory
Installing a new OPatch version
An update of the OPatch software is required in the following cases:
- In general, this is required for the correction of errors in OPatch.
- This is required if the relevant patch README requests a certain version of OPatch for the installation of a patch, a Windows mini patch, or a CPU.
- This is required after the installation of Oracle Release 10.2.0.4.
The relevant OPatch version for Oracle Release 10.2 (10.2.0.2 or 10.2.0.4) is available in the SAP Software Distribution Center (on SAP Service Marketplace) at:
Caution: For Oracle Release 10.2, do not use an old OPatch version from the directory '
Installing OPatch 10.2.0.2.5 for Release 10.2.0.2
Use OPatch Version 10.2.0.2.X only for Oracle Release 10.2.0.2!
- 1. Download OPatch 10.2.0.2.5 (
- 2. Rename the previous OPatch directory.
- 3. Unpack the new version of OPatch.
- 4. Test the new OPatch version, for example, by displaying the inventory.
- 5. The installation is complete. The new OPatch version is ready for use.
Installing OPatch 10.2.0.4.3 for Release 10.2.0.4
Use OPatch Version 10.2.0.4.X only for Oracle Release 10.2.0.4!
- 1. Download OPatch 10.2.0.4.3 (
- 2. Rename the previous OPatch directory.
- 3. Unpack the new version of OPatch.
- 4. Test the new OPatch version, for example, by displaying the inventory.
- 5. The installation is complete. The new OPatch version is ready for use.