Upgrade Opatch To 13.9.4.0.0

Sep 4, 2018

Share this post
upgrade-opatch-to-139400

Symptoms:

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

    • Patch 27912627: WLS PATCH SET UPDATE 12.2.1.3.180717
    • Patch 28300397: SOA Bundle Patch 12.2.1.3.0(ID:180705.1130.0048)

 OPatch failed with error code 73

$ opatch apply

Oracle Interim Patch Installer version 13.9.2.0.0
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 : 13.9.2.0.0

OUI version : 13.9.2.0.0
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 13.9.2.0.0 while the following patch(es) require higher versions:
Patch 27912627 requires OPatch version 13.9.4.0.0.
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: 13.9.2.0.0

$ 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 13.9.3.0.0
OPatch 13.9.4.0.0
OPatch Auto OPlan 13.9.4.0.0
OPatch Auto FMW 13.9.4.0.0
Session log file is /tmp/OraInstall2018-07-24_10-26-18PM/install2018-07-24_10-26-18PM.log
Loading products list. Please wait.
1%
40%
Loading products. Please wait.
41%
42%
43%
44%
.
.
.

94%
95%
96%
97%
98%
99%

Updating Libraries

Starting Installations

1%
2%
3%
.
.
.
60%
61%
62%
63%

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

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: 13.9.4.0.0