Tuesday, January 6, 2015

OEM Cloud Control 12c: OMS 12.1.0.4.1 PSU installation

OEM: Cloud Control 12.1.0.4
OS: Solaris 10 Sparc 64bit

Download PSU p19218456_121040_Generic.zip and OPatch p6880880_111000_SOLARIS64.zip from my oracle support.

1. Upgrade OPatch
$ $ORACLE_HOME/OPatch/opatch version
OPatch Version: 11.1.0.11.0

OPatch succeeded.
$ cd $ORACLE_HOME
$ pwd
/u01/app/oracle/product/12.1.0/em12104/oms

$ mv OPatch Opatch.11.1.0.11.0

$ unzip /u01/app/media/p6880880_111000_SOLARIS64.zip
... ...

$ $ORACLE_HOME/OPatch/opatch version
OPatch Version: 11.1.0.12.3

OPatch succeeded.

2. Inventory of Oracle Home before patching
$ $ORACLE_HOME/OPatch/opatch lsinventory
Oracle Interim Patch Installer version 11.1.0.12.3
Copyright (c) 2015, Oracle Corporation. All rights reserved.

Oracle Home : /u01/app/oracle/product/12.1.0/em12104/oms
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/12.1.0/em12104/oms/oraInst.loc
OPatch version : 11.1.0.12.3
OUI version : 11.1.0.12.0
Log file location : /u01/app/oracle/product/12.1.0/em12104/oms/cfgtoollogs/opatch/opatch2015-01-02_13-28-19PM_1.log

OPatch detects the Middleware Home as "/u01/app/oracle/product/12.1.0/em12104"

Lsinventory Output file location : /u01/app/oracle/product/12.1.0/em12104/oms/cfgtoollogs/opatch/lsinv/lsinventory2015-01-02_13-28-19PM.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 19136663 : applied on Fri Oct 03 11:00:22 EDT 2014
Unique Patch ID: 18088442
Created on 25 Sep 2014, 04:29:53 hrs PST8PDT
Bugs fixed:
19136663
--------------------------------------------------------------------------------
OPatch succeeded.

3. Ensure that we do not have any issues with configuration and binary prerequisite checks
$ unzip -d /u01/app/setup /u01/app/media/p19218456_121040_Generic.zip
... ...
$ cd /u01/app/setup/19218456
$ $ORACLE_HOME/OPatch/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/oracle/product/12.1.0/em12104/oms
Log file location : /u01/app/oracle/product/12.1.0/em12104/oms/cfgtoollogs/opatch/opatch2015-01-02_13-29-10PM_1.log

OPatchauto log file: /u01/app/oracle/product/12.1.0/em12104/oms/cfgtoollogs/opatchauto/19218456/opatch_oms_2015-01-02_13-29-11PM_analyze.log

Please enter OMS weblogic admin server URL(t3s://host01.dbaplus.ca:7101):>
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/oracle/product/12.1.0/em12104/oms"...
Please monitor OPatch log file: /u01/app/oracle/product/12.1.0/em12104/oms/cfgtoollogs/opatch/19218456_Jan_02_2015_13_29_10/ApplyPrereq2015-01-02_13-29-37PM_2.log
Sub-patch(es) "19218456" are successfully analyzed for Oracle Home "/u01/app/oracle/product/12.1.0/em12104/oms"

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

All log file names referenced below can be accessed from the directory "/u01/app/oracle/product/12.1.0/em12104/oms/cfgtoollogs/opatch/2015-01-02_13-29-10PM_SystemPatch_19218456_1"

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

The following sub-patch(es) are applicable:

Oracle Home Name Sub-patches Log file
---------------- ----------- --------
oms12c1 19218456 19218456_ApplyPrereq2015-01-02_13-29-37PM_2.log

Log file location: /u01/app/oracle/product/12.1.0/em12104/oms/cfgtoollogs/opatchauto/19218456/opatch_oms_2015-01-02_13-29-11PM_analyze.log
OPatchauto succeeded.

4. Stop OMS
$ which emctl
/u01/app/oracle/product/12.1.0/em12104/oms/bin/emctl
$ emctl stop oms
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Stopping WebTier...
Error Occurred: Cannot run program "/u01/app/oracle/product/12.1.0/gc_inst/WebTierIH1/bin/opmnctl": error=12, Not enough space
Please check /u01/app/oracle/product/12.1.0/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log for error details

There is not enough SWAP free space. Check article "Got ‘Not enought space’ while ‘emctl stop oms’" for details.
Step ahead after reclaiming SWAP space:
$ 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

5. Install PSU
$ cd /u01/app/setup/19218456
$ $ORACLE_HOME/OPatch/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/oracle/product/12.1.0/em12104/oms
Log file location : /u01/app/oracle/product/12.1.0/em12104/oms/cfgtoollogs/opatch/opatch2015-01-02_14-24-17PM_1.log

OPatchauto log file: /u01/app/oracle/product/12.1.0/em12104/oms/cfgtoollogs/opatchauto/19218456/opatch_oms_2015-01-02_14-24-18PM_deploy.log

Please enter OMS weblogic admin server URL(t3s://host01.dbaplus.ca:7101):>
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/oracle/product/12.1.0/em12104/oms"...
Please monitor OPatch log file: /u01/app/oracle/product/12.1.0/em12104/oms/cfgtoollogs/opatch/19218456_Jan_02_2015_14_24_17/ApplyPrereq2015-01-02_14-24-41PM_2.log
Sub-patch(es) "19218456" are successfully analyzed for Oracle Home "/u01/app/oracle/product/12.1.0/em12104/oms"

To continue, OPatchauto will do the following:
[Patch and deploy artifacts] : Apply sub-patch(es) [ 19218456 ] to Oracle Home "/u01/app/oracle/product/12.1.0/em12104/oms";
Apply RCU artifact with patch "/u01/app/oracle/product/12.1.0/em12104/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/oracle/product/12.1.0/em12104/oms"...
Please monitor OPatch log file: /u01/app/oracle/product/12.1.0/em12104/oms/cfgtoollogs/opatch/19218456_Jan_02_2015_14_24_17/apply2015-01-02_14-25-16PM_4.log

Updating repository with RCU reference file "/u01/app/oracle/product/12.1.0/em12104/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/oracle/product/12.1.0/em12104/oms/cfgtoollogs/opatch/2015-01-02_14-24-17PM_SystemPatch_19218456_1"

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

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

Oracle Home Name Sub-patches Log file
---------------- ----------- --------
oms12c1 19218456 19218456_apply2015-01-02_14-25-16PM_4.log

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

The following artifact(s) have been successfully deployed:

Artifacts Log file
--------- --------
SQL rcu_applypatch_original_patch_2015-01-02_14-27-25PM.log


Log file location: /u01/app/oracle/product/12.1.0/em12104/oms/cfgtoollogs/opatchauto/19218456/opatch_oms_2015-01-02_14-24-18PM_deploy.log

OPatchauto succeeded.

6 Start OMS
$ 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

7 Validate ORACLE_HOME
$ $ORACLE_HOME/OPatch/opatch lsinventory
Oracle Interim Patch Installer version 11.1.0.12.3
Copyright (c) 2015, Oracle Corporation. All rights reserved.

Oracle Home : /u01/app/oracle/product/12.1.0/em12104/oms
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/12.1.0/em12104/oms/oraInst.loc
OPatch version : 11.1.0.12.3
OUI version : 11.1.0.12.0
Log file location : /u01/app/oracle/product/12.1.0/em12104/oms/cfgtoollogs/opatch/opatch2015-01-02_14-33-53PM_1.log

OPatch detects the Middleware Home as "/u01/app/oracle/product/12.1.0/em12104"

Lsinventory Output file location : /u01/app/oracle/product/12.1.0/em12104/oms/cfgtoollogs/opatch/lsinv/lsinventory2015-01-02_14-33-53PM.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 (2) :

Patch 19218456 : applied on Fri Jan 02 14:27:10 EST 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

Patch 19136663 : applied on Fri Oct 03 11:00:22 EDT 2014
Unique Patch ID: 18088442
Created on 25 Sep 2014, 04:29:53 hrs PST8PDT
Bugs fixed:
19136663

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

OPatch succeeded.

8 References:

Readme - Oracle Enterprise Manager 12c Release 4 Patch Set Update 1 (12.1.0.4.1) for Oracle Management Service

No comments: