Neste post será apresentado o procedimento para aplicar o update 13.4.0.5 no Enterprise Manager Cloud Control 13cR4. Trata-se do patch 31604791 lançado em agosto de 2020.
Downloads
Precisamos da versão 13.9.4.1.0 ou superior do OMSPatcher, que é disponibilizado através do patch 19999993.
Faça o download para a versão 13.4.0.0:

Para realizar o download do patch 31604791, clique aqui. Para baixar um patch mais recente, acesse a nota Doc ID 2647078.1.

Preparando o ambiente
Copie os arquivos p19999993_134000_Generic.zip e p31604791_134000_Generic.zip para o servidor do Enterprise Manager.
Identifique o ORACLE_HOME do Enterprise Manager, neste exemplo é /u02/middeware.
Para simplificar, podemos incluir uma entrada no arquivo /etc/oratab para utilizar o script oraenv, o que torna mais simples configurar as variáveis de ambiente no Linux

$ . oraenv ORACLE_SID = [oracle] ? wls The Oracle base has been set to oms13c1
Precisamos incluir o diretório do OMSPatcher na variável PATH:
$ export PATH=$ORACLE_HOME/OMSPatcher:$PATH
Atualizando o OMSPatcher
Nada demais aqui, o procedimento é o mesmo do já conhecido OPatch do Oracle Database:
$ mv $ORACLE_HOME/OMSPatcher $ORACLE_HOME/OMSPatcher.old $ unzip p19999993_134000_Generic.zip $ mv OMSPatcher/ $ORACLE_HOME
Verificando a versao do OMSPatcher:
$ omspatcher version OMSPatcher Version: 13.9.4.1.0 OPlan Version: 12.2.0.1.16 OsysModel build: Thu Oct 25 18:18:12 PDT 2018
Gerando um Property File com as credenciais do WebLogic
Essa etapa é opcional, mas é recomendada, trata-se de um arquivo que informamos como parâmetro na hora de fazer o apply e o omspatcher não solicitará os dados do weblogic. Quando for aplicar um novo patch, pode reutilizar esse arquivo.
Precisamos saber os valores das propriedades “Admin Server Host” e “Admin Server HTTPS Port”, essas informações aparecem na sessão “WLS Domain Information” do comando emctl status oms -details.
$ emctl status oms -details

Usamos o script createkeys.sh para gerar os arquivos que contém as credenciais do weblogic. Neste exemplo, o diretório utilizado é /home/oracle, dois arquivos serão criados automaticamente: key e config.
$ORACLE_HOME/OMSPatcher/wlskeys/createkeys.sh –oh $ORACLE_HOME -location /home/oracle
Para finalizar, criamos um arquivo chamado “property” (você pode escolher outro nome), pode ser utilizado qualquer editor de texto, também no diretório /home/oracle:
$ vi /home/oracle/property AdminServerURL=t3s://oem.localdomain:7102 AdminConfigFile=/home/oracle/config AdminKeyFile=/home/oracle/key
Aplicando o patch
Extraia o arquivo p31604791_134000_Generic.zip:
$ unzip p31604791_134000_Generic.zip
Pare o Oracle Management Server
$ emctl stop oms Oracle Enterprise Manager Cloud Control 13c Release 4 Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved. Stopping Oracle Management Server... Oracle Management Server Successfully Stopped Oracle Management Server is Down
Alterne para o diretório em que o patch foi extraído e execute o omspatcher apply, informando o caminho do Property File criado anteriormente.
Obs: As mensagens de aviso indicando que determinados plugins não foram encontrados ou estão em uma versão diferente, podem ser ingnoradas, é porque não tem o plugin instalado no OMS.
$ cd /home/oracle/31604791
$ omspatcher apply -property_file /home/oracle/property
OMSPatcher Automation Tool
Copyright (c) 2017, Oracle Corporation. All rights reserved.
OMSPatcher version : 13.9.4.1.0
OUI version : 13.9.4.0.0
Running from : /u02/middleware
Log file location : /u02/middleware/cfgtoollogs/omspatcher/opatch2020-08-27_18-32-15PM_1.log
OMSPatcher log file: /u02/middleware/cfgtoollogs/omspatcher/31604791/omspatcher_2020-08-27_18-32-21PM_deploy.log
WARNING: Could not apply the patch "31511488" because the "oracle.sysman.vt.oms.plugin with version 13.4.1.0.0" core component of the OMS or the plug-in for which the patch is intended is either not deployed or deployed with another version in your Enterprise Manager system.
WARNING: Could not apply the patch "31511179" because the "oracle.sysman.emct.oms.plugin with version 13.4.1.0.0" core component of the OMS or the plug-in for which the patch is intended is either not deployed or deployed with another version in your Enterprise Manager system.
WARNING: Could not apply the patch "31511147" because the "oracle.sysman.am.oms.plugin with version 13.4.1.0.0" core component of the OMS or the plug-in for which the patch is intended is either not deployed or deployed with another version in your Enterprise Manager system.
WARNING: Could not apply the patch "30851102" because the "oracle.sysman.vi.oms.plugin with version 13.4.1.0.0" core component of the OMS or the plug-in for which the patch is intended is either not deployed or deployed with another version in your Enterprise Manager system.
WARNING: Could not apply the patch "31187567" because the "oracle.sysman.bda.oms.plugin with version 13.4.1.0.0" core component of the OMS or the plug-in for which the patch is intended is either not deployed or deployed with another version in your Enterprise Manager system.
WARNING: Could not apply the patch "31352743" because the "oracle.sysman.ssa.oms.plugin with version 13.4.1.0.0" core component of the OMS or the plug-in for which the patch is intended is either not deployed or deployed with another version in your Enterprise Manager system.
WARNING: Could not apply the patch "31510486" because the "oracle.sysman.emfa.oms.plugin with version 13.4.1.0.0" core component of the OMS or the plug-in for which the patch is intended is either not deployed or deployed with another version in your Enterprise Manager system.
Configuration Validation: Success
Running apply prerequisite checks for sub-patch(es) "31510453,31510438,31511270,31511543,31510471" and Oracle Home "/u02/middleware"...
Sub-patch(es) "31510453,31510438,31511270,31511543,31510471" are successfully analyzed for Oracle Home "/u02/middleware"
To continue, OMSPatcher will do the following:
[Patch and deploy artifacts] : Apply sub-patch(es) [ 31510438 31510453 31510471 31511270 31511543 ]
Apply RCU artifact with patch "/u02/middleware/.omspatcher_storage/31510438_Aug_12_2020_22_12_39/original_patch";
Apply RCU artifact with patch "/u02/middleware/.omspatcher_storage/31510453_Aug_12_2020_22_33_31/original_patch";
Apply RCU artifact with patch "/u02/middleware/.omspatcher_storage/31511270_Aug_12_2020_22_33_41/original_patch";
Apply RCU artifact with patch "/u02/middleware/.omspatcher_storage/31511543_Aug_12_2020_22_34_03/original_patch";
Apply RCU artifact with patch "/u02/middleware/.omspatcher_storage/31510471_Aug_12_2020_22_34_44/original_patch";
Register MRS artifact "commands";
Register MRS artifact "procedures";
Register MRS artifact "swlib";
Register MRS artifact "targetType";
Register MRS artifact "storeTargetType";
Register MRS artifact "default_collection";
Register MRS artifact "omsPropertyDef";
Register MRS artifact "jobTypes";
Register MRS artifact "systemStencil";
Register MRS artifact "gccompliance";
Register MRS artifact "discovery";
Register MRS artifact "CredstoreMetadata"
Do you want to proceed? [y|n]
y
User Responded with: Y
Applying sub-patch(es) "31510438,31510453,31510471,31511270,31511543"
.............................
Deployment summary:
The following artifact(s) have been successfully deployed:
Artifacts Log file --------- -------- SQL rcu_applypatch_original_patch_2020-08-27_18-47-43PM.log SQL rcu_applypatch_original_patch_2020-08-27_18-52-01PM.log SQL rcu_applypatch_original_patch_2020-08-27_18-55-28PM.log SQL rcu_applypatch_original_patch_2020-08-27_18-58-50PM.log SQL rcu_applypatch_original_patch_2020-08-27_19-02-12PM.log MRS-commands emctl_register_commands_2020-08-27_19-05-40PM.log MRS-commands emctl_register_commands_2020-08-27_19-05-43PM.log MRS-procedures emctl_register_procedures_2020-08-27_19-05-47PM.log MRS-procedures emctl_register_procedures_2020-08-27_19-05-51PM.log MRS-swlib emctl_register_swlib_2020-08-27_19-05-59PM.log MRS-swlib emctl_register_swlib_2020-08-27_19-06-05PM.log MRS-targetType emctl_register_targetType_2020-08-27_19-06-15PM.log MRS-targetType emctl_register_targetType_2020-08-27_19-06-36PM.log MRS-targetType emctl_register_targetType_2020-08-27_19-06-44PM.log MRS-targetType emctl_register_targetType_2020-08-27_19-06-52PM.log MRS-targetType emctl_register_targetType_2020-08-27_19-07-47PM.log MRS-storeTargetType emctl_register_storeTargetType_2020-08-27_19-11-03PM.log MRS-storeTargetType emctl_register_storeTargetType_2020-08-27_19-11-08PM.log MRS-storeTargetType emctl_register_storeTargetType_2020-08-27_19-11-12PM.log MRS-storeTargetType emctl_register_storeTargetType_2020-08-27_19-11-17PM.log MRS-storeTargetType emctl_register_storeTargetType_2020-08-27_19-11-24PM.log
MRS-default_collection emctl_register_default_collection_2020-08-27_19-11-30PM.log
MRS-default_collection emctl_register_default_collection_2020-08-27_19-11-39PM.log
MRS-default_collection emctl_register_default_collection_2020-08-27_19-11-45PM.log
MRS-default_collection emctl_register_default_collection_2020-08-27_19-11-51PM.log
MRS-default_collection emctl_register_default_collection_2020-08-27_19-12-24PM.log
MRS-omsPropertyDef emctl_register_omsPropertyDef_2020-08-27_19-13-07PM.log
MRS-omsPropertyDef emctl_register_omsPropertyDef_2020-08-27_19-13-11PM.log
MRS-omsPropertyDef emctl_register_omsPropertyDef_2020-08-27_19-13-16PM.log
MRS-jobTypes emctl_register_jobTypes_2020-08-27_19-13-20PM.log
MRS-jobTypes emctl_register_jobTypes_2020-08-27_19-13-27PM.log
MRS-jobTypes emctl_register_jobTypes_2020-08-27_19-13-32PM.log
MRS-systemStencil emctl_register_systemStencil_2020-08-27_19-13-38PM.log
MRS-systemStencil emctl_register_systemStencil_2020-08-27_19-13-42PM.log
MRS-systemStencil emctl_register_systemStencil_2020-08-27_19-13-47PM.log
MRS-gccompliance emctl_register_gccompliance_2020-08-27_19-13-52PM.log
MRS-discovery emctl_register_discovery_2020-08-27_19-14-13PM.log
MRS-CredstoreMetadata emctl_register_CredstoreMetadata_2020-08-27_19-14-17PM.log
Inicie o Oracle Management Server novamente:
$ emctl start oms Oracle Enterprise Manager Cloud Control 13c Release 4 Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved. Starting Oracle Management Server… WebTier Successfully Started Oracle Management Server Successfully Started Oracle Management Server is Up JVMD Engine is Up Starting BI Publisher Server … BI Publisher Server Already Started BI Publisher Server is Up
No Enterprise Manager Console, clique em “SYSMAN” e depois em “About Enterprise Manager”, a versão deverá apresentar 13.4.0.5:

Conclusão
Este post apresentou uma demonstração de aplicação de patch do Oracle Enterprise Manager Cloud Control, apesar de ter sido utilizado um patch específico, o procedimento é basicamente o mesmo para todos os patches no EM, inclusive em outras releases.
Para atualizar todo o ambiente, é necessário aplicar os patches do WebLogic Server e seus componentes, você pode ver um exemplo em um outro post: Aplicando CPU Abril/2020 no Weblogic 12.1.0.3 do EM Cloud Control.