December 03, 2026

OEM 13.4 to 13.5 Upgrade

 

OEM upgrade 13.4 to 13.5

 

 

Contents

Preparation. 1

Preparing to Upgrade EM 13.3 or 13.4 to EM 13.5: 1

Install OEM 13.5 binary only: 7

Latest patch on OMS 13.5: 19

Now apply, the below patches before the psu: 20

DOWNTIME begins: 21

Output Text: 33

Post Upgrade Tasks. 34

Middleware Home: 34

Post upgrade patches for Middleware Oracle Home: 35

Post upgrade For Agents. 35

Agent Upgrade through Front-end: 35

(Updating the Non-upgradable agents in Manual approach) 38

Agent 13.5 Latest PSU patches: 43

Apply the patches from OEM Patching and Provisioning: 46

Manually Apply Agent Patches on each agent: 48

Patch 36761598: 49

References: 49

 

 

 

 


 

Preparation

 

This is step 1: 13.5: Checklist for Upgrading Enterprise Manager Cloud Control from Version 13.3/13.4 to 13.5 (Doc ID 2761728.1)

 

 

Take a full backup of the repository database – Using RMAN

Take a snapshot backup for OMS server – Unix team/backup team can help.

Keep the below user’s password Handy:

Sys, system, sysman, weblogic, node manager and agent registration.

 

 

Preparing to Upgrade EM 13.3 or 13.4 to EM 13.5:

  1. Confirm the Hardware and package requirements:
  2. Run the below query as sysman user to check any old agent versions present in the oms or not. Version prior to 13.3.0.0.0 is not supported on 13.5.

 

SQL> select mt.target_name||' Agent Version='|| mtp.property_value from mgmt_target_properties mtp , mgmt_targets mt where mt.target_type='oracle_emd' and mt.target_guid = mtp.target_guid and mtp.property_name='Version' and mtp.property_value < '13.3.0.0.0';

 

no rows selected

  1. The following plug-ins are obsolete and support for these plug-ins is discontinued. These plug-ins must be undeployed from the Oracle Management Agents and Oracle Management Services before proceeding with the upgrade.

 

Cloud Services Management (oracle.sysman.csm)

Microsoft .NET Framework (oracle.em.smdn)

Microsoft Active Directory (oracle.em.smad)

Follow the below steps to undeploy the Plug-Ins:

EM Console --->Setup ---> Extensibility --->Plugins ---> Select "<Plug In Name>" ---> click on "Undeploy From --- > click on "Management Agent"

EM Console --->Setup ---> Extensibility --->Plugins ---> Select "<Plug In Name" ---> click on "Undeploy From --- > click on "Management Servers"

 

  1. Plug in Attention:
    1. Verify OMS have the same version of plugins deployed.

set serveroutput on

declare

oms_guids mgmt_medium_string_array := mgmt_medium_string_array();

oms_names mgmt_medium_string_array := mgmt_medium_string_array();

mismatches smp_emd_nvpair_array := smp_emd_nvpair_array();

begin

select host_url, em_plugin_util.get_guid_from_name(unique_oms_name)

bulk collect into oms_names, oms_guids

from gc_oms_info;

for j in 1..oms_guids.count

loop

dbms_output.put_line('Checking mismatch for OMS ' || oms_names(j));

mismatches := smp_emd_nvpair_array();

em_plugin_inventory.get_plugin_mismatch(oms_guids(j), mismatches);

if mismatches is null or mismatches.count = 0

then

dbms_output.put_line('No mismatch found for OMS ' || oms_names(j));

else

dbms_output.put_line('Mismatch found for OMS ' || oms_names(j));

for i in 1..mismatches.count

loop

dbms_output.put_line('Plug-in on repository: ' || nvl(mismatches(i).name, 'None') ||

', Plug-in on OMS: ' || nvl(mismatches(i).value, 'None'));

end loop;

end if;

end loop;

end;

/

 

The output should look like this:

Checking mismatch for OMS <host:port>_Management_Service

No mismatch found for OMS <host:port>_Management_Service

 

PL/SQL procedure successfully completed.

 

  1. If any of the following plugins are being used, download them () and stage them on the OMS_HOST.

Initiate the upgrade using: em13500_<platform>.bin PLUGIN_LOCATION=<path where the plugins are staged>

 

EM 13.5: https://www.oracle.com/enterprise-manager/downloads/oem-v135-update-plugins-downloads.html

 

Enterprise Manager for Times Ten

Enterprise Manager for People Soft

Enterprise Manager for Oracle Unified Directory

Enterprise Manager for Utilities (TUGBU)

Enterprise Manager for Golden Gate

Enterprise Manager for Database Appliance

  1. If the OMS was ever migrated to another host or the hostname of the OMS was changed before, the repository DB might contain old OMS hostnames. To delete them, follow this document:

    13c: How To Cleanup the Old OMS Entries in the Repository DB That are Leftover After OMS Migration Activity Note 2764682.1

 

  1. Check for PropogateTarget jobs. If the number is high, then the repository upgrade can consume very long time.

SELECT job_type, status, cnt

FROM (

SELECT job_type, status, count(*) as cnt

FROM MGMT_JOB_EXEC_SUMMARY join MGMT_JOB_TYPE_INFO using (job_type_id)

WHERE status NOT IN(3,4,5,8,18,19,23)

group by job_type, status

order by 3, 1, 2

)

where cnt > 10000; 

 

no rows selected

 

 

*** If "PropagateTarget" are listed, clean up the stuck jobs by running the below query till there are no more rows left for update:

 

UPDATE MGMT_JOB_EXEC_SUMMARY SET status = 23 WHERE status = 15

AND job_type_id IN (SELECT job_type_id FROM MGMT_JOB_TYPE_INFO WHERE job_type = 'PropagateTarget')

AND rownum < 100*1000;

commit;

  1. If there are any customized (foreign) objects, e.g Materialized views, created in the repository, drop the objects prior to Upgrade or else it can cause the Repository Upgrade to fail.
  2. As a best practice, and to avoid any issues during the upgrade that might be caused due to network disruption, always use VNC. Issues like VPN disconnection, UI timeout have been noticed, which if it should occur, would need a restart of upgrade from the beginning.
  3. Ensure that the tables in the Management Repository do not have any snapshots created:

SQL> select master, log_table from all_mview_logs where log_owner='SYSMAN';

 

no rows selected

***

If there are snapshots, then drop them by running the following command as SYSMAN user:

 

SQL> Drop snapshot log on <master in above output>;

 

  1. Ensure that theere are no logon or logoff triggers set

SQL> SELECT trigger_name FROM sys.dba_triggers WHERE TRIGGERING_EVENT LIKE 'LOGON%' AND status='ENABLED';

 

TRIGGER_NAME

--------------------------------------------------------------------------------

DBMS_SET_PDB

 

SQL> SELECT trigger_name FROM sys.dba_triggers WHERE TRIGGERING_EVENT LIKE 'LOGOFF%' AND status='ENABLED';

 

TRIGGER_NAME

--------------------------------------------------------------------------------

GSMLOGOFF

 

****

 If there are any logon or logoff triggers, disable them as follows:

 

Conn / as sysdba

  SQL> alter trigger <trigger_name> disable;

 

SQL> alter trigger DBMS_SET_PDB disable;

 

Trigger altered.

 

SQL> alter trigger GSMADMIN_INTERNAL.GSMLOGOFF disable;

 

Trigger altered.

 

  1. Disable the password_verify_function

alter profile default limit password_verify_function null;

  1. If there are any customized applications rendering information from Repository database using sysman or sysman related schemas, then stop all these applications before starting upgrade.
  2. Once all OMS's are stopped, before starting the upgrade, make sure no active sysman sessions are running in the Repository database. Executing the following query as the SYS user in repository db:

select sid,serial#,username,status,action,machine from v$session;

  1. Ensure that the database initialization parameter (_allow_insert_with_update_check) is set to true in the Oracle Database 18c or 19c:

alter system set "_allow_insert_with_update_check"=true scope=both;

  1. For improved SQL performance all the adaptive features parameters should be unset prior to the upgrade.

Connect to the database as SYSDBA and run the following commands:

 

alter system reset "_optimizer_nlj_hj_adaptive_join" scope=both sid='*';

alter system reset "_optimizer_strans_adaptive_pruning" scope=both sid='*';

alter system reset "_px_adaptive_dist_method" scope=both sid='*';

alter system reset "_sql_plan_directive_mgmt_control" scope=both sid='*';

alter system reset "_optimizer_dsdir_usage_control" scope=both sid='*';

alter system reset "_optimizer_use_feedback" scope=both sid='*';

alter system reset "_optimizer_gather_feedback" scope=both sid='*';

alter system reset "_optimizer_performance_feedback" scope=both sid='*';

  1.  Ensure that the ulimit is updated to the following values before Upgrade:

softnofiles : 30000

file-max : 65536

  1. Prior to the upgrade, the EM KEY must be copied into the repository: EMKEY Copy Requirements --> extra Doc(Prerequisites for Upgrading to Enterprise Manager Cloud Control 13c Release 5)

$<ORACLE_HOME>/bin/emctl config emkey -copy_to_repos [-sysman_pwd <sysman_pwd>]

$<ORACLE_HOME>/bin/emctl status emkey

  1. If there are any Role Names with leading or trailing spaces, it can cause errors during OMS Configuration. Execute the following query in the repository as SYS user to identify any roles:

 

     select username from dba_users where username like '%OPSS%';

 

a) If you are upgrading from OEM version 13.4, execute the following query and Skip b and c below.

 

select * from sysman122130_opss.jps_dn where parentdn like '%cn=roles%' and (rdn like '%'||CHR(9)||'%' OR rdn like '%\%' OR rdn like ' %' OR rdn like '% ') and (rdn like '%cn=%')

b) If you are upgrading from OEM version 13.3 and SYSMANUPGR_OPSS exists, execute the following query and Skip c

 

select * from sysmanUPGR_opss.jps_dn where parentdn like '%cn=roles%' and (rdn like '%'||CHR(9)||'%' OR rdn like '%\%' OR rdn like ' %' OR rdn like '% ') and (rdn like '%cn=%')

c) If you are upgrading from OEM version 13.3 and SYSMAN_OPSS exists (and not SYSMANUPGR_OPSS), execute the following query.

 

select * from sysman_opss.jps_dn where parentdn like '%cn=roles%' and (rdn like '%'||CHR(9)||'%' OR rdn like '%\%' OR rdn like ' %' OR rdn like '% ') and (rdn like '%cn=%')

If this query returns any rows, contact Oracle Support. If no rows are returned, continue with the upgrade.

=============================output================

SQL> select username from dba_users where username like '%OPSS%';

 

USERNAME

--------------------------------------------------------------------------------------------------------------------------------

SYSMAN122130_OPSS

 

SQL>    select * from sysman122130_opss.jps_dn where parentdn like '%cn=roles%' and (rdn like '%'||CHR(9)||'%' OR rdn like '%\%' OR rdn like ' %' OR rdn like '% ') and (rdn like '%cn=%')

  2  ;

 

no rows selected

 

 

 

Install OEM 13.5 binary only:

 

Before Proceeding, make sure below checklists are completed.

ü  Take a full DB backup

ü  Export ORACLE_HOME=13.4 Oracle home location

ü  export DISPLAY=<IP>:0.0

ü  Launch Xlaunch or any X11 client

ü  Run xclock and see the GUI is popping up or not.

ü  Check /etc/oraInst.loc so the inventory is correct.

ü  Check the mountpoint where the new home will be installed is having approx. 35gb space left.

 

Go to temporary location and give necessary permission to the software downloaded.

Now run ./em13500_linux64.bin

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Click on OK.

 

 

Now, Hit Upgrade here.

 

 

Note: It will only install the binaries and the outage has still not begun.

 

 

Here the software installation is completed and work with your unix admin/ login as root user and run the mentioned script.

 

 

Then the next step is needed to be executed under old oracle home.

 

 

 

 

 

 

 

==============================================================

Latest patch on OMS 13.5:

13.5: How To Upgrade Enterprise Manager 13.5 Cloud Control OMSPatcher Utility to the Latest Version (Doc ID 2809842.1)

 

1) Download Patch 19999993 for EM 13.5.0.0.0 from My Oracle Support.

 

2) Copy the zip file "p19999993_135000_Generic.zip" to the EM 13.5 <OMS ORACLE_HOME>.

 

3) Take a backup of the existing <OMS ORACLE_HOME>/OMSPatcher directory:

 

mv <OMS ORACLE_HOME>/OMSPatcher <OMS ORACLE_HOME>/OMSPatcher_old

 

4) Unzip the p19999993_135000_Generic.zip file inside the <OMS ORACLE_HOME>:

 

>export ORACLE_HOME=<MIDDLEWARE_HOME>

Cd <MIDDLEWARE_HOME>OMSPatcher

./omspatcher version

 

Now apply, the below patches before the psu:

 

Apply the 12.2.1.4.0 version of below JDBC Patches on all the OMSes before proceeding with Enterprise Manager 13c Release 5 Update 24 patch 36761595 or later:

 

High level steps:

export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/OMSPatcher:.

 

MLR Patch 35430934 (or its superset) which includes 32720458 and 33607709 :

Unzip the patch

Go to patch folder

Opatch apply

 

Patch 34153238:

Unzip the patch

Opatch apply

 

Patch 31657681:

Unzip patch

Opatch apply

 

Apply patch 36761595:

Export ORACLE_HOME=<13.5 Oracle home>

export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/OMSPatcher:.

Goto patch folder:

omspatcher apply -analyze -bitonly

Before applying the patch grab the information required for the patching:

$<13.4ORACLE_HOME>/bin/emctl status oms -details

omspatcher apply -bitonly [-property_file <location of property file>]

(I am not using any property file, so just omspatcher apply to have the session interactive and see the steps it is going through.)

 

DOWNTIME begins:

Shut the OMS and agent for 13.4:

 

13.4 OMS Home/bin

./emctl stop oms -all

$AGENT_HOME/bin/emctl stop agent

 

Now all the task is going to be done on 13.5 oracle  home:

 

Login to Database as sys:

SQL> sho parameter job_queue_processes

 

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

job_queue_processes                  integer     80

 

SQL> alter system set job_queue_processes=0;

 

System altered.

 

SQL> sho parameter job_queue_processes;

 

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

job_queue_processes                  integer     0

SQL>grant execute on DBMS_RANDOM to DBSNMP;

 

 

export ORACLE_HOME=<NEW_MIDDLEWARE_HOME>

export CV_ASSUME_DISTID=OEL7.8

export DISPLAY=<Local System IP>:0.0

$ORACLE_HOME/sysman/install/ConfigureGC.sh

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

It takes few hours to finish the upgrade. In my case it took around 3 hours.

 

 

 

 

Output Text: 

 

This information is also available at:

 

<MIDDLEWARE_HOME>/install/setupinfo.txt

 

See the following for information pertaining to your Enterprise Manager installation:

Use the following URL to access:

 

1. Enterprise Manager Cloud Control URL: https://<HOST>:<PORT>/em

2. Admin Server URL: https://<host>:<port>/console

 

The following details need to be provided while installing an additional OMS:

 

1. Admin Server Host Name: <host>

2. Admin Server Port: <port>

 

 A backup of the OMS configuration is available in <Installation_base_dir>/gc_inst1/em/EMGC_OMS1/sysman/backup on <host>. See Cloud Control Administrators Guide for details on how to back up and recover an OMS.

 

 NOTE: This backup is valid only for the initial OMS configuration. For example, it will not reflect plug-ins installed later, topology changes like the addition of a load balancer, or changes to other properties made using emctl or emcli. Backups should be created on a regular basis to ensure they capture the current OMS configuration. Use the following command to backup the OMS configuration:

<MIDDLEWARE_HOME>/bin/emctl exportconfig oms -dir <backup dir>

 

Version: 

 

 

Upgrade completes here….

 

Post Upgrade Tasks

 

Middleware Home:

The below patch is required to update the opatch in middleware home

(EM 13c: How to Upgrade OPatch to the Latest Version on the Enterprise Manager 13.4 or 13.5 Cloud Control (Doc ID 2728285.1))

PATCH 28186730 - OPATCH 13.9.4.2.17 FOR EM 13.5 and FMW/WLS 12.2.1.4.0 AND 14.1.1.0.0

 

>$OMS_HOME/bin/emctl stop oms -all

>$AGENT_HOME/bin/emctl stop agent

>export ORACLE_HOME=<MIDDLEWARE_HOME>

$ORACLE_HOME/oracle_common/jdk/bin/java -jar <PATCH_TOP_DIR>/6880880/opatch_generic.jar -silent oracle_home=$ORACLE_HOME

>opatch version

OPatch Version: 13.9.4.2.17

 OPatch succeeded.

 

 

Post upgrade patches for Middleware Oracle Home:
Patch 35965629: ADR FOR WEBLOGIC SERVER 12.2.1.4.0 - SIZE OPTIMIZED FOR JAN 2024

Downloaded

Unzip

Opatch apply

Patch 36805124: WLS PATCH SET UPDATE 12.2.1.4.240704 -- Superseeded

Patch 37087476: WLS PATCH SET UPDATE 12.2.1.4.240922

Downloaded

Unzip

Opatch apply 

 

At this stage, startup the OMS and validate the URL and login.

     $$OMS_HOME/bin/emctl start oms

$$AGENT_HOME/bin/emctl start agent

 

Post upgrade For Agents

Agent Upgrade through Front-end:

             

 

 

 

 

 

(Updating the Non-upgradable agents in Manual approach)

 

 

 

In the list of Not Upgradable Agents the below reason and recommendation will be there, clisk on self update and follow the below instruction.

 

 

 

Goto Setup->Extensibility->Self Update - > Download and apply required

 

 

Go to Self Update, then clisk on Check Updates:

 

 

Download the file and transfer to the OMS host.

 

Then run the below command:

 

emcli login -username=sysman

Enter password

emcli sync

emcli import_update_catalog -file=<file_patch>/p9348486_112000_Generic.zip -omslocal

 

After the import now there are all the agent software available in the self update page:

Click on the agent software:

Choose the one that is required for the agents. In this case I chose the required one and click on Download. It will prompt the below popup on the instructions on how to download the patch and import it.

 

 

 

Once the patch is downloaded and transferred to the OMS host, need to run the below command:

emcli import_update -omslocal -file=<full_path>/p32672867_112000_Generic.zip

 

The output will prompt like this:

Processing update: Agent Software - Agent Software (13.5.0.0.0) for Oracle <platform>

Successfully uploaded the update to Enterprise Manager. Use the Self Update Console to manage this update.

 

Now go to console and refresh the Agent Software page, the Software should be showing as downloaded and it is ready to be applied.

 

Click on Apply.

 

Click on OK

 

Monitor the Job until finished, It will take few seconds.

 

Now again go the the Agent Upgrade Console: Setup -> Manage Cloud Contro, -> Upgrade Agents

 

Now all the agents should be there in the Upgrade Agents search. Add all the Agents you want to upgrade and click on submit.

Note:

How to change the /tmp location while upgrading agents?

You can add one parameter in Additional Input on Stage Location like SCRATCHPATH=<custom location>, if you feel the /tmp location doesnot have enough space.

 

 

 

After clicking on Submit, the job will take some time to finish up the upgrade on the each and every Agent. Once the Agent Upgrade is completed, OMS and Agents are all in the 13.5 version now.

 

Upgrade completed for all components…. 

 

Now we need to apply the latest PSU patches on the Agents.

 

Agent 13.5 Latest PSU patches:

Patch 36459164: MERGE REQUEST ON TOP OF 13.5.0.0.0 FOR BUGS 33565758 36015161

 

Patch 36761598: Oracle Enterprise Manager 13c Release 5 Update 24 ( 13.5.0.24 ) for Oracle Management Agent

 

Download these two patches from Oracle Support and Upload these into Saved patches.

 

Setup Software Library:

 

 

 

Give a name and location. Make sure the mountpoint has enough space as the offline patches needs to be kept in this location.

 

 

 

Choose the patch Zip file and upload.

For uploading multiple patches together you can use the emcli upload_patches.

Apply the patches from OEM Patching and Provisioning:  

 

Go to Enterprise -> Provisioning and patching -> Patches & Updates

 

Go to Patch Recommendations -> click on the Target Type (Radio Button) -> It will show the component wise recommendation and Click on the Agent

 

Select the number of agents you want to update in one plan and hit create Plan. Provide a name and the plan is created.

Now go back o the Patches & Updates page and in the Plans section, click on the plan that is created.

This will bring the Plan Information and we need to hit Next and follow the instructions.

 

 

 

In the Validation Phase, hit on Analyze to see for any conflicts or any issues.

 

Once analyze is done, click on Deploy and wait for the completion. This completed the agent patching.

 

Manually Apply Agent Patches on each agent:

1) Download Patch 33355570 for EM 13.5.0.0.0 from My Oracle Support.

 

2) Copy the zip file "p33355570_135000_Generic.zip" to the EM 13.5 <Agent ORACLE_HOME>.

 

    <Agent ORACLE_HOME> is <Agent_Base_Directory>/agent_13.5.0.0.0

 

3) If the AgentPatcher directory exists inside the <Agent Oracle_Home>, take a backup:

$ cd <Agent ORACLE_HOME>

$mv AgentPatcher AgentPatcher_old

 

4) Unzip the p33355570_135000_Generic.zip file inside the <Agent ORACLE_HOME>

 

$ cd <Agent ORACLE_HOME>

 

$ unzip p33355570_135000_Generic.zip

 

5) Export the ORACLE_HOME variable to the <Agent ORACLE_HOME>:

 

      $ export ORACLE_HOME=<AGENT_HOME>

 

6) Verify the AgentPatcher version by executing:

 

$ cd $ORACLE_HOME/AgentPatcher

 

$ ./agentpatcher version

AgentPatcher Version: 13.9.5.10.0

OPlan Version: 12.2.0.1.16

OsysModel build: <timestamp>

 

Patch 36761598:

Oracle Enterprise Manager 13c Release 5 Update 24 ( 13.5.0.24 ) for Oracle Management Agent

unzip the patch

cd PATCH_TOP/36761598

export PATH=$ORACLE_HOME/Agentpatcher:$ORACLE_HOME/bin:$PATH:.

emctl stop agent

agentpatcher apply -analyze

agentpatcher apply

emctl start agent

 

Now the agent patching is also completed and we can call it a wrap.

 

 

References:

  • OEM 13.4 to 13.5 - Upgrade Path (Doc ID 2815000.1)

 

  • 13.5: Checklist for Upgrading Enterprise Manager Cloud Control from Version 13.3/13.4 to 13.5 (Doc ID 2761728.1)

 

  • Enterprise Manager 13.5 Main Release Update List (Includes Plug-ins) (Doc ID 2760230.2)

 

  • 13.5.0 Enterprise zManager Cloud Control Base Platform Monthly Release Update (RU) 24 (Doc ID 3056569.1)

 

  • EM 13c: How to Upgrade OPatch to the Latest Version on the Enterprise Manager 13.4 or 13.5 Cloud Control (Doc ID 2728285.1)

 

  • EM Key Requirements:

https://docs.oracle.com/en/enterprise-manager/cloud-control/enterprise-manager-cloud-control/13.5/emupg/prerequisites-upgrading-enterprise-manager-cloud-control-13c-release.html#GUID-6D6846C1-F565-4B65-9E09-2D059855B422

 

  • 13c: Cloud Control Upgrade Failed with Error: The following plug-ins are obsolete and support for these plug-ins is discontinued (Doc ID 2438565.1)
  • EM 13c: How to Upgrade OPatch to the Latest Version on the Enterprise Manager 13.4 or 13.5 Cloud Control (Doc ID 2728285.1)

 

 

 

 

 

 

 

Recent Post

OEM 13.4 to 13.5 Upgrade

  OEM upgrade 13.4 to 13.5     Contents Preparation . 1 Preparing to Upgrade EM 13.3 or 13.4 to EM 13.5: 1 Install OEM 13.5 b...