ORACLE SOFTWARE PATCHING WITH OPLAN
Version 12.1.0.1.6
January 2014
This document is accurate at the time of release. For any changes and additional information regarding OPlan, refer to My Oracle Support Note, 1306814.1 -Oracle Software Patching with OPlan (https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=1306814.1).
Overview of OPlan
OPlan is a utility that facilitates the patch installation process by providing you with step-by-step patching instructions specific to your environment.
In contrast to the traditional patching operation, applying a patch based on the ReadMe requires you to understand the target configuration and manually identify the patching commands relevant to your environment. OPlan eliminates these requirements by automatically collecting the configuration information for the target, then generating instructions specific to the target configuration.
The instructions cover both patch application and patch rollback steps. The instructions also cover multiple patching options across In place and Out-of-Place methodologies.
Acquiring OPlan
The OPlan utility can be downloaded from My Oracle Support via a patch number 11846294.
Supported Configurations
The table below shows the Product and Patch support available from OPlan:
------------------------------------------------------------------------------------------------------------------------
| Product Family | Product | Patch Type | Release | Platform |
------------------------------------------------------------------------------------------------------------------------
| Oracle Database | Oracle Exadata Database Machine** | Recommended Bundle Patches * | 11.2.0.2 | All |
------------------------------------------------------------------------------------------------------------------------
| Oracle Database | Oracle Exadata Database Machine** | Recommended Bundle Patches * | 11.2.0.3 | All |
------------------------------------------------------------------------------------------------------------------------
| Oracle Database | Oracle Exadata Database Machine** | Recommended Bundle Patches * | 11.2.0.4 | All |
------------------------------------------------------------------------------------------------------------------------
| Oracle Database | Oracle Exadata Database Machine** | Recommended Bundle Patches * | 12.1.0.1 | All |
------------------------------------------------------------------------------------------------------------------------
| Oracle Database | Oracle Exadata Database Machine** | Recommended Bundle Patches * | 12.1.0.2 | All |
------------------------------------------------------------------------------------------------------------------------
| Oracle Database | Oralce Grid Infrastructure and Real | Recommended Patches * | 11.2.0.2 | All |
| | Application Cluster Database | | | |
------------------------------------------------------------------------------------------------------------------------
| Oracle Database | Oralce Grid Infrastructure and Real | Recommended Patches * | 11.2.0.3 | All |
| | Application Cluster Database | | | |
------------------------------------------------------------------------------------------------------------------------
| Oracle Database | Oralce Grid Infrastructure and Real | Recommended Patches * | 11.2.0.4 | All |
| | Application Cluster Database | | | |
------------------------------------------------------------------------------------------------------------------------
| Oracle Database | Oralce Grid Infrastructure and Real | Recommended Patches * | 12.1.0.1 | All |
| | Application Cluster Database | | | |
------------------------------------------------------------------------------------------------------------------------
| Oracle Database | Oralce Grid Infrastructure and Real | Recommended Patches * | 12.1.0.2 | All |
| | Application Cluster Database | | | |
------------------------------------------------------------------------------------------------------------------------
*Support available for Recommended Bundle Patches (Bundle Patch 2 and onwards)
** No support available for Oracle Dataguard configurations
Patching with OPlan
The OPlan utility works directly on the target, similar to OPatch.
Step 1: Installing/Upgrading OPlan
a) Download OPlan from My Oracle Support(https://support.oracle.com). Search for patch number 11846294 and download.
b) Transfer the downloaded patch file to the any of the Oracle Home in the target (For example, for Oracle Exadata, transfer the utility to any One node of the cluster).
c) As Oracle Home owner, take a backup of $ORACLE_HOME/OPatch folder.
d) Remove $ORACLE_HOME/OPatch/oplan if already present:
rm -r $ORACLE_HOME/OPatch/oplan
e) As Oracle Home owner, unzip the oplan patch in the Oracle Home under 'OPatch' folder:
unzip p11846294_<version_platform>.zip -d $ORACLE_HOME/OPatch
f) oplan will be installed under $ORACLE_HOME/OPatch/oplan folder.
Step 2: Generate the Patch Installation Instructions
a) Download the patch to a local directory on the target
b) Set the ORACLE_HOME variable to the Targets Oracle Home (say for Exadata Databases Machine Grid Infrastructure Oracle Home of the Node)
c) As Oracle Home owner, run the following command:
$ORACLE_HOME/OPatch/oplan/oplan generateApplySteps <bundle patch location>
For example: $ORACLE_HOME/OPatch/oplan/oplan generateApplySteps <bundle patch location>
d) The patch installation instructions specific to your target will be available as HTML and text format in these locations:
$ORACLE_HOME/cfgtoollogs/oplan/<TimeStamp>/ApplyInstructions.html
$ORACLE_HOME/cfgtoollogs/oplan/<TimeStamp>/ApplyInstructions.txt
Step 3: Apply the Patch
a) Choose the patching option that best suits your needs. The patch installation instruction offers multiple options across In Place and Out of Place patching methodologies.
b) Follow the patching instructions and apply the patch to the target.
Step 3a: Rollback of the Patch
a) As Oracle Home owner, run the following command:
$ORACLE_HOME/OPatch/oplan/oplan generateRollbackSteps <bundle patch location>
b) Choose the rollback option that best suits your needs.
c) Follow the instructions and rollback the patch from the target.
Troubleshooting
In case of errors, the detailed logs are available under the $ORACLE_HOME/cfgtoollog/oplan/<TimeStamp> directory. For any additional support, contact Oracle Support.
Licensing Information
The OPlan utility is provided under the My Oracle Support Terms of Use,
your agreement with Oracle and the terms of Oracle's applicable Technical
Support Policies. Any use of OPlan not specifically authorized in the My
Oracle Support Terms of Use, your agreement with Oracle and the terms of
Oracle's applicable Technical Support Policies is strictly prohibited. For
m