Infrastructure at your Service

Pierre Sicot

Oracle OEM Cloud Control 12c upgrade to 12.1.0.4

In this blog post, I will describe how to upgrade from Oracle Enterprise Manager Cloud Control 12.1.0.3 to OEM 12.1.0.4.0. I have already described the main new features of Cloud Control 12.1.0.4 version in an earlier post (Oracle OEM Cloud Control 12.1.0.4 – the new features). The first pre-requisite is to apply the patch 11061801 on the repository database in 11.2.0.3 version, using the classical opatch apply method. Then, we can begin the upgrade phase.

First, we should explicitly stop the OMS jvmd and adp engines:

oracle@vmtestoraem12c:/home/oracle/ [oms12c] emctl extended oms jvmd stop -allOracle Enterprise Manager Cloud Control 12c Release 3Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.Please enter the SYSMAN password:Stopping all Engines{}
No engines found for this operation
oracle@vmtestoraem12c:/home/oracle/ [oms12c] emctl extended oms adp stop -a
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
No valid registry entry found for verb jv

Then we stop the OMS:

oracle@vmtestoraem12c:/home/oracle/ [oms12c] emctl stop oms -all
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation.
All rights reserved.Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
AdminServer Successfully Stopped
Oracle Management Server is Down

We stop the management agent:

oracle@vmtestoraem12c:/home/oracle/ [agent12c] emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation.
All rights reserved.
Stopping agent ..... stopped.

Finally after unzipping the 12.1.0.4 binary files, we can run the installer:

cc1

We choose not to receive security updates:

cc2

cc3

We choose to skip the updates:

cc4

All the prerequisites checks have succeeded :=)

cc5

We select a One System Upgrade and the Oracle_Home where the 12.1.0.3 version is installed:

cc7

We select the new Middleware Home:

cc8

We enter the administration passwords:

cc9

The installer reminds you that you have correctly patched the repository database. Let’s check if it is correct:

Interim patches (1) :
Patch 11061801 : applied on Mon Aug 04 16:52:51 CEST 2014
Unique Patch ID: 16493357
Created on 24 Jun 2013, 23:28:20 hrs PST8PDT
Bugs fixed: 11061801

 

cc10

We did not copy the emkey to the repository, so we have to run:

oracle@vmtestoraem12c:/u01/app/oracle/MiddleWare_12103/oms/bin/ [oms12c] emctl config emkey -copy_to_repos_from_file -repos_conndesc '"(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=vmtestoraem12c.it.dbi-services.com)(PORT=1521)))(CONNECT_DATA=(SID=OMSREP)))"' -repos_user sysman -emkey_file /u01/app/oracle/MiddleWare_12103/oms/sysman/config/emkey.ora
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation.
All rights reserved.
Enter Admin User's Password :
Enter Enterprise Manager Root (SYSMAN) Password :
The EMKey has been copied to the Management Repository.
This operation will cause the EMKey to become unsecure.

After the required operation has been completed, secure the EMKey by running “emctl config emkey -remove_from_repos”:

cc11

We select Yes to let the installer fix the isssue automatically:

cc12

We select Next:

cc13

We can select additionnal plugins:

cc14

We enter the weblogic password:

cc15

We select install:

cc16

And finally we run the allroot.sh script connected as root:

cc17

The upgrade is successfull! Let’s check the OMs status:

oracle@vmtestoraem12c:/u01/app/oracle/MiddleWare_12cR4/oms/ [oms12c] emctl status oms -details
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation.
All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
Console Server Host : vmtestoraem12c.it.dbi-services.com
HTTP Console Port : 7789
HTTPS Console Port : 7801
HTTP Upload Port : 4890
HTTPS Upload Port : 4901
EM Instance Home : /u01/app/oracle/gc_inst/em/EMGC_OMS1
OMS Log Directory Location : /u01/app/oracle/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://vmtestoraem12c.it.dbi-services.com:7801/em
Upload URL: https://vmtestoraem12c.it.dbi-services.com:4901/empbs/upload
WLS Domain InformationDomain Name : GCDomain
Admin Server Host : vmtestoraem12c.it.dbi-services.com
Admin Server HTTPS Port: 7102
Admin Server is RUNNING
Oracle Management Server Information
Managed Server Instance Name: EMGC_OMS1
Oracle Management Server Instance Host: vmtestoraem12c.it.dbi-services.com
WebTier is Up
Oracle Management Server is Up
BI Publisher is not configured to run on this host.

Now we have access to the Enterprise Manager Cloud Control 12.1.0.4:

cc18

The next step consists in upgrading the management agents. From the Setup menu, we select Upgrade Agents:

cc19

cc20

The management agent is detected:

cc21

The operation is successfull:

cc22

The update to 12.1.0.4 Enterprise Manager version did not cause any problem and has a new feature which checks the correct patching of the Enterprise Manager repository database.

 

2 Comments

  • Harry Taieb says:

    Hi,

    From Document : ” Oracle® Enterprise Manager Cloud Control Upgrade Guide — 12c Release 4 (12.1.0.4) — E22625-38 ”

    Part 5 : Upgrading Oracle Management Service and Oracle Management Repository 12c Release 3 (12.1.0.3) or 12c Release 2 (12.1.0.2) to 12c Release 4 (12.1.0.4)

    Section 4 :

    On the Software Updates screen, apply the latest software updates, including the latest PSU patches.
    You can download the software updates in offline mode (if you do not have Internet connectivity) or online mode (if you have Internet connectivity).
    For instructions, see Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide.

    Questions :
    – Have you Run Software Updates ?
    – Which PSU have you installed ?

    Regards,

    Harry

     
  • pierre sicot says:

    Hello Harry,

    No I did not run Software Updates and did not install any PSU on my test system, but I would recommend to do it. The only patch I applied was the 11061801 on the repository database in 11.2.0.3 version.
    Regards
    Pierre

     

Leave a Reply

Pierre Sicot
Pierre Sicot

Senior Consultant