Upgrade Opatch To

Sep 4, 2018

Share this post


Opatch command is failing while trying to apply July 2018 patches!
Below listed patches will fail if you do not upgrade Opatch to

    • Patch 27912627: WLS PATCH SET UPDATE
    • Patch 28300397: SOA Bundle Patch

 OPatch failed with error code 73

$ opatch apply

Oracle Interim Patch Installer version
Copyright (c) 2018, Oracle Corporation. All rights reserved.
Oracle Home :  /local/mnt/oracle/products/fmw
Central Inventory : /local/mnt/oracle/oraInventory
from :  /local/mnt/oracle/products/fmw/oraInst.loc

OPatch version :

OUI version :
Log file location :  /local/mnt/oracle/products/fmw/cfgtoollogs/opatch/opatch2018-07-19_02-08-57AM_1.log
OPatch detects the Middleware Home as ” /local/mnt/oracle/products/fmw”
Verifying environment and performing prerequisite checks…

Prerequisite check “CheckMinimumOPatchVersion” failed.

The details are:
The OPatch being used has version while the following patch(es) require higher versions:
Patch 27912627 requires OPatch version
Please download latest OPatch from My Oracle Support.

UtilSession failed: Prerequisite check “CheckMinimumOPatchVersion” failed.

Log file location:  /local/mnt/oracle/products/fmw/cfgtoollogs/opatch/opatch2018-07-19_02-08-57AM_1.log

OPatch failed with error code 73

Upgrade Opatch:

Oracle Document “How To Download And Install The Latest OPatch(6880880) Version (Doc ID 274526.1)” talks about how to install or upgrade OPatch with Patch 6880880!
However, you will not see straight instructions about which patch to download to upgrade Opatch when you have Weblogic and/or Middleware Products(SOA, ADF, etc…,)

The patch we need to upgrade Opatch is – “Patch 28186730: PLACEHOLDER BUG FOR WLS 12C OPATCH UPLOAD”

 Upgrade Instructions:

    • Download Patch 28186730
    • Unzip Patch 28186730
      • You will see 6880880 directory
    • Set JAVA_HOME
      • $ export JAVA_HOME=/local/mnt/oracle/products/jdk
      • $ export PATH=/local/mnt/oracle/products/jdk/bin:${PATH}
    • Set ORACLE_HOME to the directory where you have installed your fusion middleware directory
      • $ export ORACLE_HOME=/local/mnt/oracle/products/fmw
    • Include OPatch to PATH
      • $ export PATH=/local/mnt/oracle/products/fmw/OPatch:${PATH}
    • Check Opatch Version
      • $ opatch version
    • Upgrade Opatch
      • Syntax: java -jar <PATCH_HOME>/6880880/opatch_generic.jar -silent oracle_home=<ORACLE_HOME_LOCATION>
      • Example: java -jar /local/mnt/oracle/6880880/opatch_generic.jar -silent oracle_home=/local/mnt/oracle/products/fmw/
    • Check Opatch Version
      • $ opatch version

Example Installation:

$ cd /local/mnt/oracle
$ unzip p28186730_139400_Generic.zip
Archive:  p28186730_139400_Generic.zip
creating: 6880880/
inflating: 6880880/README.txt
inflating: 6880880/opatch_generic.jar
inflating: 6880880/version.txt

$ export JAVA_HOME=/local/mnt/oracle/products/jdk
$ export PATH=/local/mnt/oracle/products/jdk/bin:${PATH}
$ export ORACLE_HOME=/local/mnt/oracle/products/fmw
$ export PATH=/local/mnt/oracle/products/fmw/OPatch:${PATH}

$ opatch version
OPatch Version:

$ java -jar /local/mnt/oracle/6880880/opatch_generic.jar -silent oracle_home=/local/mnt/oracle/products/fmw/
Launcher log file is /tmp/OraInstall2018-07-24_10-26-18PM/launcher2018-07-24_10-26-18PM.log.
Extracting the installer . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 2200.124 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 32767 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 64415 MB    Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2018-07-24_10-26-18PM

Installation Summary
Disk Space : Required 36 MB, Available 109,591 MB
Feature Sets to Install:
Next Generation Install Core
OPatch Auto OPlan
OPatch Auto FMW
Session log file is /tmp/OraInstall2018-07-24_10-26-18PM/install2018-07-24_10-26-18PM.log
Loading products list. Please wait.
Loading products. Please wait.


Updating Libraries

Starting Installations


Install pending
Installation in progress
Component : oracle.com.fasterxml.jackson.core.jackson.core
Copying files for oracle.com.fasterxml.jackson.core.jackson.core
Component : oracle.com.fasterxml.jackson.core.jackson.databind
Copying files for oracle.com.fasterxml.jackson.core.jackson.databind
Component : oracle.com.jcraft.jsch
Copying files for oracle.com.jcraft.jsch
Component : oracle.commons.cli.commons.cli
Copying files for oracle.commons.cli.commons.cli
Component : oracle.org.apache.commons.commons.compress
Copying files for oracle.org.apache.commons.commons.compress
Component : oracle.xerces.xercesimpl
Copying files for oracle.xerces.xercesimpl
Component : oracle.java.xml.bind
Copying files for oracle.java.xml.bind

Component : oracle.glcm.opatchauto.fmw.actions.classpath
Saving the inventory oracle.glcm.opatchauto.fmw.actions.classpath
The install operation completed successfully.
Logs successfully copied to /local/mnt/oracle/oraInventory/logs.

$ opatch version
OPatch Version: