As you may know, EM12c BP1 was released for Solaris about 3 weeks ago. Our EM12c runs on Solaris, so I decided to apply it to our production system. To apply BP1 to EM12c environment, first we need to apply BP1 (and additional 1-2 patches) to OMS (Oracle Management Service), then apply some patches to deployed agents, and lastly, upgrade EM12c plug-ins (some of them may require additional patches to be applied to OMS). As you may guess, it’s not a piece of cake. Oracle recommends you to analyze how much effort you need to re-configure and re-deploy agents, and if it’s feasible, uninstall the existing Cloud Control and do a fresh installation.
These instructions are only valid (and tested) for EM12c running gon Solaris 10 (SPARC). You may need additional patches for Linux or AIX. My OMS is located in “/u03/oracle/Middleware/oms/”. My repository DB is “emrep” and located in a server named “erciyes”. Before I start to apply the patch, I stop all services by issuing the following command:
1 |
emctl stop oms |
Important: Before you apply Bundle Patch 1, Oracle recommends to back up all EM components:
- Management Repository Database (Highly Recommended!)
- Middleware Home and EM domain
- Instance Home where OMS is installed
- Default Management Agent with OMS
- Software Library
- Oracle Inventory
If patching fails during any stage, you may have to restore these components, and this is not an unsual situation. So be sure to backup all these components.
We’ll apply BP1 (13242773), then required patches for JDeveloper and Web Services Manager (13470978 and 12321965) and 14040891 (for Bug# 14040891). Login to MOS and search for these patches and download them to a directory (I’ll use “/setup”).
Be careful that you should pick 11.1.0.5 release of patch 12321965. I marked the patch you shouldn’t pick on the image:
As usual, we need latest OPatch. Download OPatch for 11.1.0.x. I downloaded p6880880_111000_SOLARIS64.zip and extracted it into OMS directory:
1 2 3 4 |
cp p6880880_111000_SOLARIS64.zip /u03/oracle/Middleware/oms/ cd /u03/oracle/Middleware/oms/ mv OPatch OPtach.bak unzip p6880880_111000_SOLARIS64.zip |
Now I’ll set ORACLE_HOME and PATH variables:
1 2 |
export ORACLE_HOME=/u03/oracle/Middleware/oms export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH |
and then I test it:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
opatch lsinventory Oracle Interim Patch Installer version 11.1.0.9.7 Copyright (c) 2012, Oracle Corporation. All rights reserved. Oracle Home : /u03/oracle/Middleware/oms Central Inventory : /u01/oraInventory from : /u03/oracle/Middleware/oms/oraInst.loc OPatch version : 11.1.0.9.7 OUI version : 11.1.0.9.0 Log file location : /u03/oracle/Middleware/oms/...log OPatch detects the Middleware Home as "/u03/oracle/Middleware" Lsinventory Output file location : /u03/oracle/Middleware/oms/...txt -------------------------------------------------------------------------------- Installed Top-level Products (1): EM Platform (OMS) 12.1.0.1.0 There are 1 products installed in this Oracle Home. Interim patches (13) : Patch 13403327 : applied on Wed Jul 25 16:06:08 EEST 2012 Created on 19 Nov 2011, 07:31:49 hrs PST8PDT Bugs fixed: 13403327 ... Patch 12920846 : applied on Wed Jul 25 15:44:25 EEST 2012 Created on 11 Nov 2011, 12:44:53 hrs PST8PDT Bugs fixed: 12920846 -------------------------------------------------------------------------------- OPatch succeeded. |
It worked without any problem. Now we need to download OMS BP1 13242773 from My Oracle Support. I’ll extract the file under “/setup” folder and apply the patch:
1 2 3 4 |
cd /setup unzip p13242773_121010_SOLARIS64.zip cd 13242773 opatch apply |
OPatch will verifying environment and perform prerequisite checks, backup files, then will roll back the subset patches and apply the BP1. It takes some time (about 1 hour depending on your server configuration).
To complete the patch update, we need to run “post_deploy.sh” but before running it, you should stop EM Jobs. So connect to Repository DB as SYSMAN and issue the following command:
1 |
EXEC emd_maintenance.remove_em_dbms_jobs; |
Then run post_deploy.sh script, please refer to the documentation if you have multi-OMS setup. You need to enter repository DB information and SYSMAN password:
1 2 3 4 5 6 7 8 9 10 |
./post_deploy.sh Post deploy OMS automation script [Version: 11.1.0.9.5] ________________________________________________________________ Please enter Patch Location: /setup/13242773 Please enter SYSMAN password: Please enter EM repository host name: erciyes Please enter EM repository port: 1521 Please enter EM repository SID: emrep |
After it’s completed, connect to repository DB and check invalid objects and enable EM JOBs:
1 2 3 |
EXEC EMD_MAINT_UTIL.recompile_invalid_objects; SELECT object_name, object_type FROM ALL_OBJECTS WHERE status <>'VALID'; EXEC EMD_MAINTENANCE.submit_em_dbms_jobs; |
Now it’s time to apply 13470978 and 12321965 patches. We need to set environment variable ORACLE_HOME to our oracle_common directory and stop OMS:
1 2 3 4 5 6 |
emctl stop oms export ORACLE_HOME=/u03/oracle/Middleware/oracle_common cd /setup unzip p13470978_111150_Generic.zip cd 13470978 opatch apply |
Extract the patch file (12321965) and apply it (ORACLE_HOME should be set to oracle_common):
1 2 3 4 |
cd /setup unzip p12321965_111150_Generic.zip cd 12321965 opatch apply |
So we’ll keep patching with BP1 14040891. We need to set ORACLE_HOME to OMS directory, then apply the patch:
1 2 3 4 5 |
export ORACLE_HOME=/u03/oracle/Middleware/oms cd /setup unzip p14040891_121011_Generic.zip cd 14040891 opatch napply |
After applying the patch, we need to patch repository and register some metadata:
1 2 3 4 5 6 7 8 9 |
emctl applypatch repos -patchHome /setup/14040891/13653571 emctl register oms metadata -service swlib \ -file $ORACLE_HOME/sysman/metadata/swlib/multioms -core emctl register oms metadata -service procedures \ -file $ORACLE_HOME/sysman/metadata/procedures/multioms/MultiOMS.xml -core emctl register oms metadata -service derivedAssocs \ -file $ORACLE_HOME/sysman/metadata/derivedAssocs/emSystemAssocRules.xml -core emctl start oms |
With the last step, we applied Bundle Patch 1 to Oracle Management Service. If you follow these steps strictly, you shouldn’t get any errors. On my next blog post, I’ll continue with applying required patches to management agents.
Blue Medora Service Account
Gokhan Atil
IgnitedMind
Gokhan Atil
IgnitedMind
IgnitedMind
IgnitedMind
Martin Falco