2014-04-26 1 Patch OMS to 12.1.0.3.2

Overview

Patched OMS to 12.1.0.3.2 using patch 18090046.

References

Procedure

Upload Patch

Patch 18090046 is uploaded to /tmp and unzipped there as follows:

unzip -q /tmp/p18090046_121030_Generic.zip -d /tmp

Check OPATCH Version

The version of OPatch is out of date:

[oracle@cronulla 18090046]$ /opt/app/oracle/em/middleware/oms/OPatch/opatch version OPatch Version: 11.1.0.10.0 OPatch succeeded.

Upload new version of OPATCH (Patch 6880880) into /tmp and overwrote old version:

unzip -q /tmp/p6880880_111000_Linux-x86-64.zip -d /opt/app/oracle/em/middleware/oms

The new version is now confirmed:

OPatch Version: 11.1.0.10.3 OPatch succeeded.

Create Property File

The README for Patch 18090046 recommends the creation of a property file for storing responses to the opatchauto utility.

The following commands are used to create encrypted files:

mkdir -p /opt/app/oracle/software/.secure /opt/app/oracle/em/middleware/oms/OPatch/wlskeys/createkeys.sh –oh /opt/app/oracle/em/middleware/oms -location /opt/app/oracle/software/.secure

The output is:

Please enter weblogic admin server username:weblogic Please enter weblogic admin server password: Creating the key file can reduce the security of your system if it is not kept in a secured location after it is created. Creating new key... User configuration file created: /opt/app/oracle/software/.secure/config User key file created: /opt/app/oracle/software/.secure/key 'createKeys' succeeded.

The output of emctl status oms -details is:

Oracle Enterprise Manager Cloud Control 12c Release 3 Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved. Enter Enterprise Manager Root (SYSMAN) Password : Console Server Host : cronulla.yaocm.id.au HTTP Console Port : 7788 HTTPS Console Port : 7802 HTTP Upload Port : 4889 HTTPS Upload Port : 4903 EM Instance Home : /opt/app/oracle/em/gc_inst/em/EMGC_OMS1 OMS Log Directory Location : /opt/app/oracle/em/gc_inst/em/EMGC_OMS1/sysman/log OMS is not configured with SLB or virtual hostname Agent Upload is locked. OMS Console is locked. Active CA ID: 1 Console URL: https://cronulla.yaocm.id.au:7802/em Upload URL: https://cronulla.yaocm.id.au:4903/empbs/upload WLS Domain Information Domain Name : GCDomain Admin Server Host : cronulla.yaocm.id.au Admin Server HTTPS Port: 7102 Admin Server is RUNNING Managed Server Information Managed Server Instance Name: EMGC_OMS1 Managed Server Instance Host: cronulla.yaocm.id.au WebTier is Up Oracle Management Server is Up

The property file, /opt/app/oracle/software/oms.properties, is composed as follows:

AdminServerURL=t3s://cronulla.yaocm.id.au:7102 AdminConfigFile=/opt/app/oracle/software/.secure/config AdminKeyFile=/opt/app/oracle/software/.secure/key

Set Up Environment

The following commands were used to set the patching environment:

export ORACLE_HOME=/opt/app/oracle/em/middleware/oms export PATH=${ORACLE_HOME}/bin:${ORACLE_HOME}/OPatch:${PATH}

Validate Patch

Used the following commands to validate the patch prior to application:

cd /tmp/18090046 opatchauto apply -analyze -property_file /opt/app/oracle/software/oms.properties

The output is:

OPatch Automation Tool Copyright (c) 2013, Oracle Corporation. All rights reserved. OPatchauto version : 11.1.0.10.3 OUI version : 11.1.0.11.0 Running from : /opt/app/oracle/em/middleware/oms Log file location : /opt/app/oracle/em/middleware/oms/cfgtoollogs/opatch/opatch2014-04-26_18-09-19PM_1.log opatchauto log file: /opt/app/oracle/em/middleware/oms/cfgtoollogs/opatchauto/18090046/opatch_oms_2014-04-26_18-09-25PM_analyze.log Configuration Validation: Success Running apply prerequisite checks for patch(es) "18090046" and Oracle Home "/opt/app/oracle/em/middleware/oms"... Please monitor OPatch log file: /opt/app/oracle/em/middleware/oms/cfgtoollogs/opatch/18090046_Apr_26_2014_18_09_19/ApplyPrereq2014-04-26_18-11-09PM_8.log Patches "18090046" are successfully analyzed for Oracle Home "/opt/app/oracle/em/middleware/oms" Copying all logs to: /opt/app/oracle/em/middleware/oms/cfgtoollogs/opatch/2014-04-26_18-09-19PM_SystemPatch_18090046_1 Log file location: /opt/app/oracle/em/middleware/oms/cfgtoollogs/opatchauto/18090046/opatch_oms_2014-04-26_18-09-25PM_analyze.log opatchauto succeeded.

Apply the Patch

Used the following commands to apply PSU 12.1.0.3.2 to OMS:

emctl stop oms opatchauto apply -property_file /opt/app/oracle/software/oms.properties emctl start oms emctl status oms -details

The output is attached as 13 Patch OMS.log.