I will go over how to patch Oracle Enterprise Manager (OEM) 13.5 OMS components in this post. You should also patch OEM repository database to latest released patches. Latest released patches are from July 2021 at the time of writing this blog. Please refer to Critical Patch Update (CPU) Program Jul 2021 Patch Availability Document (PAD) (Doc ID 2773670.1) on Oracle Support site to get more information. To apply all patches except Java one, opatch command line utility will be used. I will also go over how to patch this utility to latest available version.
Here is the list of patches that will be applied.
Opatch
– OPATCH 13.9.4.2.7 FOR EM 13.4, 13.5 AND FMW/WLS 12.2.1.3.0, 12.3.1.4.0 AND 14.1.1.0.0 Patch 28186730
Base Platform Fusion Middleware Home
– Oracle WebLogic Server Patch Set Update 12.2.1.4.210629 Patch 33059296
– OHS (NATIVE) BUNDLE PATCH 12.2.1.4.210324 Patch 32673423
– OPSS BUNDLE PATCH 12.2.1.4.210418 Patch 32784652
– OSS BUNDLE PATCH 12.2.1.4.210302 Patch 32575741
– ADF BUNDLE PATCH 12.2.1.4.210706 Patch 33084721
– Coherence 12.2.1.4 Cumulative Patch 10 Patch 32973297
Oracle Java SE Home
– Patch 32726659 (JDK 1.8 Update 301)
* Patch 31544353 ADR FOR WEBLOGIC SERVER 12.2.1.4.0 JULY CPU 2020
* Patch 33093748 FMW PLATFORM 12.2.1.4.0 SPU FOR APRCPU2021
* Patch 32880070 FMW COMMON THIRDPARTY SPU 12.2.1.4.0 FOR APRIL2021CPU
All of these patches have read me file and/or reference to some support document. Please refer to those documents before applying the patch. Most common steps for patching will be,
– Stage the patch
– Stop all services running from Oracle home
– apply the patch
-Start all services from Oracle home.
Let’s update opatch version first.
[oracle@emcc135oms ~]$ export ORACLE_HOME=/u01/app/oracle/mw_home
[oracle@emcc135oms ~]$ export PATH=$ORACLE_HOME/OPatch:$ORACLE_HOME/bin:$PATH
[oracle@emcc135oms ~]$ opatch version
OPatch Version: 13.9.4.2.5
[oracle@emcc135oms ~]$ ll /u01/patches/ | grep 28186730
-rw-r–r–. 1 root root 52172002 Sep 9 14:57 p28186730_139427_Generic.zip
[oracle@emcc135oms mw_home]$ cd /u01/patches
[oracle@emcc135oms patches]$ unzip p28186730_139427_Generic.zip
[oracle@emcc135oms bin]$ ./emctl stop oms
[oracle@emcc135oms bin]$ pwd
/u01/app/oracle/mw_home/oracle_common/jdk/bin
[oracle@emcc135oms bin]$ ./java -jar /u01/6880880/opatch_generic.jar -silent oracle_home=/u01/app/oracle/mw_home
[oracle@emcc135oms OPatch]$ ./opatch version
OPatch Version: 13.9.4.2.7
Let’s begin with all the patches as listed above.
Oracle WebLogic Server Patch Set Update 12.2.1.4.210629 Patch 33059296
[oracle@emcc135oms ~]$ export ORACLE_HOME=/u01/app/oracle/mw_home
[oracle@emcc135oms ~]$ export PATH=$ORACLE_HOME/OPatch:$ORACLE_HOME/bin:$PATH
[oracle@emcc135oms ~]$ ll /u01/patches/ | grep 33059296
-rw-r–r–. 1 root root 28042906 Sep 9 14:00 p33059296_122140_Generic.zip
[oracle@emcc135oms ~]$ opatch lspatches
32458315;ADF BUNDLE PATCH 12.2.1.4.210203
32412974;One-off
31818221;One-off
31808404;OHS (NATIVE) BUNDLE PATCH 12.2.1.4.200826
31708760;One-off
31666198;OPSS Bundle Patch 12.2.1.4.200724
30152128;One-off
26626168;One-off
122146;Bundle patch for Oracle Coherence Version 12.2.1.4.6
32253037;WLS PATCH SET UPDATE 12.2.1.4.201209
[root@emcc135oms init.d]$ pwd
/etc/init.d
[root@emcc135oms init.d]# ./gcstartup stop
[oracle@emcc135oms patches]$ unzip p33059296_122140_Generic.zip
[oracle@emcc135oms patches]$ cd 33059296
[oracle@emcc135oms 33059296]$ opatch apply
[oracle@emcc135oms 33059296]$ opatch lspatches
33059296;WLS PATCH SET UPDATE 12.2.1.4.210629
32458315;ADF BUNDLE PATCH 12.2.1.4.210203
31818221;One-off
31808404;OHS (NATIVE) BUNDLE PATCH 12.2.1.4.200826
31708760;One-off
31666198;OPSS Bundle Patch 12.2.1.4.200724
30152128;One-off
26626168;One-off
122146;Bundle patch for Oracle Coherence Version 12.2.1.4.6
[root@emcc135oms init.d]$ pwd
/etc/init.d
[root@emcc135oms init.d]# ./gcstartup start
OHS (NATIVE) BUNDLE PATCH 12.2.1.4.210324 Patch 32673423
[oracle@emcc135oms ~]$ export ORACLE_HOME=/u01/app/oracle/mw_home
[oracle@emcc135oms ~]$ export PATH=$ORACLE_HOME/OPatch:$ORACLE_HOME/bin:$PATH
[oracle@emcc135oms ~]$ ll /u01/patches/ | grep 32673423
-rw-r–r–. 1 root root 12204802 Sep 9 14:00 p32673423_122140_Linux-x86-64.zip
[oracle@emcc135oms ~]$ opatch lspatches
[root@emcc135oms init.d]$ pwd
/etc/init.d
[root@emcc135oms init.d]# ./gcstartup stop
[oracle@emcc135oms patches]$ unzip p32673423_122140_Linux-x86-64.zip
[oracle@emcc135oms patches]$ cd 32673423
[oracle@emcc135oms 32673423]$ opatch apply
[oracle@emcc135oms 32673423]$ opatch lspatches
[root@emcc135oms init.d]$ pwd
/etc/init.d
[root@emcc135oms init.d]# ./gcstartup start
OPSS BUNDLE PATCH 12.2.1.4.210418 Patch 32784652
[oracle@emcc135oms ~]$ export ORACLE_HOME=/u01/app/oracle/mw_home
[oracle@emcc135oms ~]$ export PATH=$ORACLE_HOME/OPatch:$ORACLE_HOME/bin:$PATH
[oracle@emcc135oms ~]$ ll /u01/patches/ | grep 32784652
-rw-r–r–. 1 root root 242526 Sep 9 14:00 p32784652_122140_Generic.zip
[oracle@emcc135oms ~]$ opatch lspatches
[root@emcc135oms init.d]$ pwd
/etc/init.d
[root@emcc135oms init.d]# ./gcstartup stop
[oracle@emcc135oms patches]$ unzip p32784652_122140_Generic.zip
[oracle@emcc135oms patches]$ cd 32784652
[oracle@emcc135oms 32784652]$ opatch apply
[oracle@emcc135oms 32784652]$ opatch lspatches
[root@emcc135oms init.d]$ pwd
/etc/init.d
[root@emcc135oms init.d]# ./gcstartup start
OSS BUNDLE PATCH 12.2.1.4.210302 Patch 32575741
[oracle@emcc135oms ~]$ export ORACLE_HOME=/u01/app/oracle/mw_home
[oracle@emcc135oms ~]$ export PATH=$ORACLE_HOME/OPatch:$ORACLE_HOME/bin:$PATH
[oracle@emcc135oms ~]$ ll /u01/patches/ | grep 32575741
-rw-r–r–. 1 root root 242526 Sep 9 14:00 p32575741_122140_Linux-x86-64.zip
[oracle@emcc135oms ~]$ opatch lspatches
[root@emcc135oms init.d]$ pwd
/etc/init.d
[root@emcc135oms init.d]# ./gcstartup stop
[oracle@emcc135oms patches]$ unzip p32575741_122140_Linux-x86-64.zip
[oracle@emcc135oms patches]$ cd 32575741
[oracle@emcc135oms 32575741]$ opatch apply
[oracle@emcc135oms 32575741]$ opatch lspatches
[root@emcc135oms init.d]$ pwd
/etc/init.d
[root@emcc135oms init.d]# ./gcstartup start
ADF BUNDLE PATCH 12.2.1.4.210706 Patch 33084721
[oracle@emcc135oms ~]$ export ORACLE_HOME=/u01/app/oracle/mw_home
[oracle@emcc135oms ~]$ export PATH=$ORACLE_HOME/OPatch:$ORACLE_HOME/bin:$PATH
[oracle@emcc135oms ~]$ ll /u01/patches/ | grep 33084721
-rw-r–r–. 1 root root 30707567 Sep 9 14:00 p33084721_122140_Generic.zip
[oracle@emcc135oms ~]$ opatch lspatches
[root@emcc135oms init.d]$ pwd
/etc/init.d
[root@emcc135oms init.d]# ./gcstartup stop
[oracle@emcc135oms patches]$ unzip p33084721_122140_Generic.zip
[oracle@emcc135oms patches]$ cd 33084721
[oracle@emcc135oms 33084721]$ opatch apply
[oracle@emcc135oms 33084721]$ opatch lspatches
[root@emcc135oms init.d]$ pwd
/etc/init.d
[root@emcc135oms init.d]# ./gcstartup start
Coherence 12.2.1.4 Cumulative Patch 10 Patch 32973297
[oracle@emcc135oms ~]$ export ORACLE_HOME=/u01/app/oracle/mw_home
[oracle@emcc135oms ~]$ export PATH=$ORACLE_HOME/OPatch:$ORACLE_HOME/bin:$PATH
[oracle@emcc135oms ~]$ export JAVA_HOME=/u01/app/oracle/mw_home/oracle_common/jdk
[oracle@emcc135oms ~]$ ll /u01/patches/ | grep 32973297
-rw-r–r–. 1 root root 19697783 Sep 10 11:21 p32973297_122140_Generic.zip
[oracle@emcc135oms ~]$ opatch lspatches
[root@emcc135oms init.d]$ pwd
/etc/init.d
[root@emcc135oms init.d]# ./gcstartup stop
[oracle@emcc135oms patches]$ unzip p32973297_122140_Generic.zip
[oracle@emcc135oms patches]$ cd 1221410
[oracle@emcc135oms 1221410]$ opatch apply -jdk $JAVA_HOME
[oracle@emcc135oms 1221410]$ opatch lspatches
[root@emcc135oms init.d]$ pwd
/etc/init.d
[root@emcc135oms init.d]# ./gcstartup start
By default, OEM 13.5 uses java version “1.8.0_261”. JDK 1.8.0 Update 301 is the latest certified version with OEM 13.5. Before we proceed to updating JDK version, we will have to patch all components (as shown above) and other perquisite patches (also listed above),
– Patch 32726659 (JDK 1.8 Update 301)
* Patch 31544353 ADR FOR WEBLOGIC SERVER 12.2.1.4.0 JULY CPU 2020
* Patch 33093748 FMW PLATFORM 12.2.1.4.0 SPU FOR APRCPU2021
* Patch 32880070 FMW COMMON THIRDPARTY SPU 12.2.1.4.0 FOR APRIL2021CPU
Patch 31544353 ADR FOR WEBLOGIC SERVER 12.2.1.4.0 JULY CPU 2020
[oracle@emcc135oms ~]$ export ORACLE_HOME=/u01/app/oracle/mw_home
[oracle@emcc135oms ~]$ export PATH=$ORACLE_HOME/OPatch:$ORACLE_HOME/bin:$PATH
[oracle@emcc135oms ~]$ ll /u01/patches/java/ | grep 31544353
-rw-r–r–. 1 root root 26463956 Sep 10 11:52 p31544353_122140_Linux-x86-64.zip
[oracle@emcc135oms ~]$ opatch lspatches
[root@emcc135oms init.d]$ pwd
/etc/init.d
[root@emcc135oms init.d]# ./gcstartup stop
[oracle@emcc135oms patches]$ unzip p31544353_122140_Linux-x86-64.zip
[oracle@emcc135oms patches]$ cd 31544353
[oracle@emcc135oms 31544353]$ opatch apply
[oracle@emcc135oms 31544353]$ opatch lspatches
[root@emcc135oms init.d]$ pwd
/etc/init.d
[root@emcc135oms init.d]# ./gcstartup start
Patch 33093748 FMW PLATFORM 12.2.1.4.0 SPU FOR APRCPU2021
[oracle@emcc135oms ~]$ export ORACLE_HOME=/u01/app/oracle/mw_home
[oracle@emcc135oms ~]$ export PATH=$ORACLE_HOME/OPatch:$ORACLE_HOME/bin:$PATH
[oracle@emcc135oms ~]$ ll /u01/patches/java/ | grep 33093748
-rw-r–r–. 1 root root 54061 Sep 10 11:52 p33093748_122140_Generic.zip
[oracle@emcc135oms ~]$ opatch lspatches
[root@emcc135oms init.d]$ pwd
/etc/init.d
[root@emcc135oms init.d]# ./gcstartup stop
[oracle@emcc135oms patches]$ unzip p33093748_122140_Generic.zip
[oracle@emcc135oms patches]$ cd 33093748
[oracle@emcc135oms 33093748]$ opatch apply
[oracle@emcc135oms 33093748]$ opatch lspatches
[root@emcc135oms init.d]$ pwd
/etc/init.d
[root@emcc135oms init.d]# ./gcstartup start
Patch 32880070 FMW COMMON THIRDPARTY SPU 12.2.1.4.0 FOR APRIL2021CPU
[oracle@emcc135oms ~]$ export ORACLE_HOME=/u01/app/oracle/mw_home
[oracle@emcc135oms ~]$ export PATH=$ORACLE_HOME/OPatch:$ORACLE_HOME/bin:$PATH
[oracle@emcc135oms ~]$ ll /u01/patches/java/ | grep 32880070
-rw-r–r–. 1 root root 9947487 Sep 10 11:51 p32880070_122140_Generic.zip
[oracle@emcc135oms ~]$ opatch lspatches
[root@emcc135oms init.d]$ pwd
/etc/init.d
[root@emcc135oms init.d]# ./gcstartup stop
[oracle@emcc135oms patches]$ unzip p32880070_122140_Generic.zip
[oracle@emcc135oms patches]$ cd 32880070
[oracle@emcc135oms 32880070]$ opatch apply
[oracle@emcc135oms 32880070]$ opatch lspatches
[root@emcc135oms init.d]$ pwd
/etc/init.d
[root@emcc135oms init.d]# ./gcstartup start
Patch 32726659 (JDK 1.8 Update 301)
[oracle@emcc135oms ~]$ export ORACLE_HOME=/u01/app/oracle/mw_home
[oracle@emcc135oms ~]$ export JAVA_HOME=/u01/app/oracle/mw_home/oracle_common/jdk
[oracle@emcc135oms ~]$ export PATH=$ORACLE_HOME/OPatch:$ORACLE_HOME/bin:$JAVA_HOME/bin:$PATH
[oracle@emcc135oms bin]$ java -version
java version “1.8.0_261”
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)
[oracle@emcc135oms oracle_common]$ pwd
/u01/app/oracle/mw_home/oracle_common
[oracle@emcc135oms oracle_common]$ cp /u01/patches/java/p32726659_180301_Linux-x86-64.zip .
[oracle@emcc135oms oracle_common]$ ls | grep 32726659
p32726659_180301_Linux-x86-64.zip
[oracle@emcc135oms oracle_common]$ /u01/app/oracle/mw_home/bin/emctl stop oms -all
[oracle@emcc135oms oracle_common]$ mv jdk/ jdk_bkp/
[oracle@emcc135oms oracle_common]$ unzip p32726659_180301_Linux-x86-64.zip
[oracle@emcc135oms oracle_common]$ tar zxvf jdk-8u301-linux-x64.tar.gz
[oracle@emcc135oms oracle_common]$ mv jdk1.8.0_301/ jdk/
[oracle@emcc135oms oracle_common]$ java -version
java version “1.8.0_301”
Java(TM) SE Runtime Environment (build 1.8.0_301-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.301-b25, mixed mode)
[oracle@emcc135oms oracle_common]$ /u01/app/oracle/mw_home/bin/emctl start oms
All patching activities for OEM 13.5 are complete now. In next article I will go over how to set up Oracle Analytical Server to run reports.