Howto apply PSU on OEM 12.1.0.4

This post is also available in: Português

In this article I will show you how to upgrade your Oracle Enterprise Manager Cloud Control 12c Release 4 to the first Patch Set Update (PSU).

First of all, you need to check the current version of you opatch utility. Patch 19218456 requires OPatch version 11.1.0.11.0 (or higher).

[oem@oraem12ctrj001 ~]$ opatch version
OPatch Version: 11.1.0.10.4

OPatch succeeded.
[oem@oraem12ctrj001 ~]$

As in my case the version is lower than the required, I needed to download the latest one in: https://updates.oracle.com/download/6880880.html

Select the release "Oracle 11.1.0.0.0" and, in my case, it is a Linux x86-64. Download and place the new version correctly.

[oem@oraem12ctrj001 ~]$ opatch version
OPatch Version: 11.1.0.12.3

OPatch succeeded.
[oem@oraem12ctrj001 ~]$

Better now.

P.S: It's recommended to read the "readme.html" inside the patch folder before starting.

Next, download and unzip the patch 19218456 (file name is p19218456_121040_Generic.zip):

[oem@oraem12ctrj001 ~]$ unzip p19218456_121040_Generic.zip
Archive:  p19218456_121040_Generic.zip
   creating: 19218456/
   ...
[oem@oraem12ctrj001 ~]$

Go inside the patch directory and verify if everything is ok:

[oem@oraem12ctrj001 ~]$ cd 19218456
[oem@oraem12ctrj001 19218456]$ opatchauto apply -analyze
OPatch Automation Tool
Copyright (c) 2014, Oracle Corporation.  All rights reserved.


OPatchauto version : 11.1.0.12.3
OUI version        : 11.1.0.12.0
Running from       : /u01/app/oem/em12cR4/Middleware/oms
Log file location  : /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatch/opatch2015-01-16_18-12-30PM_1.log

OPatchauto log file: /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatchauto/19218456/opatch_oms_2015-01-16_18-12-32PM_analyze.log

Please enter OMS weblogic admin server URL(t3s://oraem12ctrj001:7102):>
Please enter OMS weblogic admin server username:> weblogic
Please enter OMS weblogic admin server password:>


Configuration Validation: Success


Running apply prerequisite checks for sub-patch(es) "19218456" and Oracle Home "/u01/app/oem/em12cR4/Middleware/oms"...
Please monitor OPatch log file: /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatch/19218456_Jan_16_2015_18_12_30/ApplyPrereq2015-01-16_18-13-02PM_2.log
Sub-patch(es) "19218456" are successfully analyzed for Oracle Home "/u01/app/oem/em12cR4/Middleware/oms"


Complete Summary
================


All log file names referenced below can be accessed from the directory "/u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatch/2015-01-16_18-12-30PM_SystemPatch_19218456_1"

Prerequisites analysis summary:
-------------------------------

The following sub-patch(es) are applicable:

  Oracle Home Name   Sub-patches                                          Log file
  ----------------   -----------                                          --------
           oms12c2      19218456   19218456_ApplyPrereq2015-01-16_18-13-02PM_2.log



Log file location: /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatchauto/19218456/opatch_oms_2015-01-16_18-12-32PM_analyze.log

OPatchauto succeeded.
[oem@oraem12ctrj001 19218456]$

Good, everything passed.

Next, stop the oms and then apply the patch definitely.

[oem@oraem12ctrj001 19218456]$ emctl stop oms
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation.  All rights reserved.
Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
Oracle Management Server is Down
[oem@oraem12ctrj001 19218456]$

Applying..

[oem@oraem12ctrj001 19218456]$ opatchauto apply
OPatch Automation Tool
Copyright (c) 2014, Oracle Corporation.  All rights reserved.


OPatchauto version : 11.1.0.12.3
OUI version        : 11.1.0.12.0
Running from       : /u01/app/oem/em12cR4/Middleware/oms
Log file location  : /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatch/opatch2015-01-16_18-14-49PM_1.log

OPatchauto log file: /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatchauto/19218456/opatch_oms_2015-01-16_18-14-51PM_deploy.log

Please enter OMS weblogic admin server URL(t3s://oraem12ctrj001:7102):>
Please enter OMS weblogic admin server username:> weblogic
Please enter OMS weblogic admin server password:>


Configuration Validation: Success


Running apply prerequisite checks for sub-patch(es) "19218456" and Oracle Home "/u01/app/oem/em12cR4/Middleware/oms"...
Please monitor OPatch log file: /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatch/19218456_Jan_16_2015_18_14_49/ApplyPrereq2015-01-16_18-15-34PM_2.log
Sub-patch(es) "19218456" are successfully analyzed for Oracle Home "/u01/app/oem/em12cR4/Middleware/oms"

To continue, OPatchauto will do the following:
[Patch and deploy artifacts]   : Apply sub-patch(es) [ 19218456 ] to Oracle Home "/u01/app/oem/em12cR4/Middleware/oms";
                                 Apply RCU artifact with patch "/u01/app/oem/em12cR4/Middleware/oms/.patch_storage/19218456_Oct_14_2014_03_22_39/original_patch"


Do you want to proceed? [y|n]
y
User Responded with: Y

Applying sub-patch "19218456" to Oracle Home "/u01/app/oem/em12cR4/Middleware/oms"...
Please monitor OPatch log file: /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatch/19218456_Jan_16_2015_18_14_49/apply2015-01-16_18-15-57PM_4.log

Updating repository with RCU reference file "/u01/app/oem/em12cR4/Middleware/oms/.patch_storage/19218456_Oct_14_2014_03_22_39/original_patch"

Complete Summary
================


All log file names referenced below can be accessed from the directory "/u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatch/2015-01-16_18-14-49PM_SystemPatch_19218456_1"

Patching summary:
-----------------

Binaries of the following sub-patch(es) have been applied successfully:

  Oracle Home Name   Sub-patches                                    Log file
  ----------------   -----------                                    --------
           oms12c2      19218456   19218456_apply2015-01-16_18-15-57PM_4.log

Deployment summary:
-------------------

The following artifact(s) have been successfully deployed:

  Artifacts                                                  Log file
  ---------                                                  --------
        SQL   rcu_applypatch_original_patch_2015-01-16_18-17-19PM.log


Log file location: /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatchauto/19218456/opatch_oms_2015-01-16_18-14-51PM_deploy.log

OPatchauto succeeded.
[oem@oraem12ctrj001 19218456]$

Bringing oms back:

[oem@oraem12ctrj001 19218456]$ emctl start oms
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation.  All rights reserved.
Starting Oracle Management Server...
Starting WebTier...
WebTier Successfully Started
Oracle Management Server Successfully Started
Oracle Management Server is Up
[oem@oraem12ctrj001 19218456]$

Check if it is in you inventory:

[oem@oraem12ctrj001 ~]$ opatch lsinv
Oracle Interim Patch Installer version 11.1.0.12.3
Copyright (c) 2015, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oem/em12cR4/Middleware/oms
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oem/em12cR4/Middleware/oms/oraInst.loc
OPatch version    : 11.1.0.12.3
OUI version       : 11.1.0.12.0
Log file location : /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatch/opatch2015-01-16_19-00-57PM_1.log


OPatch detects the Middleware Home as "/u01/app/oem/em12cR4/Middleware"

Lsinventory Output file location : /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatch/lsinv/lsinventory2015-01-16_19-00-57PM.txt

--------------------------------------------------------------------------------
Installed Top-level Products (1):

EM Platform (OMS)                                                    12.1.0.4.0
There are 1 products installed in this Oracle Home.


Interim patches (1) :

Patch  19218456     : applied on Fri Jan 16 18:17:04 BRST 2015
Unique Patch ID:  17982946
Patch description:  "ENTERPRISE MANAGER BASE PLATFORM - OMS 12.1.0.4.1 PSU (GENERIC)"
   Created on 14 Oct 2014, 03:22:39 hrs PST8PDT
   Bugs fixed:
     18599481, 17407918, 18932882, 18805935, 19258481, 19376082, 19323634
     18938561, 17812648, 18725891, 18945007, 18721562, 18359621, 18490432
     19218456, 18490468, 19137411, 17843191, 18710124, 18516298, 18490455
     18256983, 18999400, 19329809, 19300103, 18351725, 18521731, 18485889
     19458672, 18490444, 18446798, 18765545, 18389542, 18509136



--------------------------------------------------------------------------------

OPatch succeeded.
[oem@oraem12ctrj001 ~]$

 

Great. Now you have your environment corrected from some bugs!

Have you enjoyed? Please leave a comment or give a 👍!

1 comments

    • david xiang on February 1, 2017 at 16:18
    • Reply

    great document. Thanks,

Leave a Reply

Your email address will not be published.