Tuesday, February 1, 2022

Upgrading Enterprise Manager Cloud Control from 13.4 to 13.5 - 2

This is the second post on upgrading EMCC from 13.4 to 13.5 The previous post mentioned pre-req tasks to be carried out before the installation. The approach used in this case consists of two phase. First phase installs the 13.5 binaries and patch them. The existing 13.4 EM could be up and running at this stage. The second phase is the actual configuration of 13.5 EM and upgrade of the schemas in the repository. Prior to the second phase the existing 13.4 EM and agents must be shutdown. Also any pre-req work that was postponed (i.e. database init parameter changes) must be completed. This two phase approach reduces the total downtime needed for upgrading.
It is possible to run the upgrade either in GUI mode or silent mode using the softwareOnlyWithPlugins_upgrade.rsp extracted from the installers. In this case the GUI was chosen. To start the binary installation execute the following
./em13500_linux64.bin
This will open the GUI. Select upgrade existing EM and under it select the option upgrade software only and configure later.

Skip the software update download. Previous post showed how (if it works) patches could be downloaded beforehand.


Ensure no pre-req failures.

Give new location for the middleware.

Give repository DB connection details

Ensure following DB pre-req succeeds.

Two DB pre-req will have warnings. One of them is the use of MD5 which was covered in the previous post and is safe to ignore.

The other warning is related to applying of applyg RU 1 (which is minimum version needed when upgrading from 13.4 RU12). Since this will be done after binary install, this warning too could be ignored.

When the next button is clicked following information will be shown.

Upgrade will take care of some plugin by upgrading or migrating them depending on availability.

Select any additional plugin to deploy.

Review Space and install location.

Click the upgrade button to begin the upgrade.

When the upgrade completes run the allroot.sh.
# /opt/xxx/app/software/em/middleware135/allroot.sh

Starting to execute allroot.sh .........

Starting to execute /opt/xxx/app/software/em/middleware135/root.sh ......
Check /opt/xxx/app/software/em/middleware135/install/root_vm-em-console_2022-01-11_15-17-28.log for the output of root script
Finished execution of  /opt/xxx/app/software/em/middleware135/root.sh ......
Once the allroot.sh is run click the OK button. This will complete the install of binaries and give instructions on the next step which is to configure the setup but do not run the ConfigureGC.sh until the binaries are patched. It is alright to click the close button before the patch apply.




Download the latest omsopatcher (patch 19999993) from Oracle (refer 2809842.1) and install in the new 13.5 middleware home.
export ORACLE_HOME=/opt/xxx/app/software/em/middleware135
export PATH=$ORACLE_HOME/bin:$PATH
export PATH=$ORACLE_HOME/OMSPatcher:$PATH
export PATH=$ORACLE_HOME/OPatch:$PATH

which omspatcher
/opt/xxx/app/software/em/middleware135/OMSPatcher/omspatcher

omspatcher version
OMSPatcher Version: 13.9.4.4.0
OPlan Version: 12.2.0.1.16
OsysModel build: Tue Apr 28 18:16:31 PDT 2020

OMSPatcher succeeded.

unzip p19999993_135000_Generic_oms_patcher.zip -d $ORACLE_HOME/

omspatcher version
OMSPatcher Version: 13.9.5.1.0
OPlan Version: 12.2.0.1.16
OsysModel build: Tue Apr 28 18:16:31 PDT 2020

OMSPatcher succeeded.
Apply the 13.5 RU3 patch to the new 13.5 middleware home (refer 2810169.1). Patch analysis output is shown below
unzip p33588912_135000_Generic_oms_base_13.5.0.3.zip
cd 33588912

omspatcher apply -analyze -bitonly
OMSPatcher Automation Tool
Copyright (c) 2017, Oracle Corporation.  All rights reserved.


OMSPatcher version : 13.9.5.1.0
OUI version        : 13.9.4.0.0
Running from       : /opt/xxx/app/software/em/middleware135
Log file location  : /opt/xxx/app/software/em/middleware135/cfgtoollogs/omspatcher/opatch2022-01-11_15-25-06PM_1.log

OMSPatcher log file: /opt/xxx/app/software/em/middleware135/cfgtoollogs/omspatcher/33588912/omspatcher_2022-01-11_15-25-07PM_analyze.log

WARNING: OMSPatcher has been invoked with bitonly option but the System patch provided has deployment metadata.
Invocation in bitonly mode will prevent OMSPatcher from deploying artifacts.

Do you want to proceed? [y|n]
y
User Responded with: Y


Prereq "checkComponents" for patch 33424163 passed.

Prereq "checkComponents" for patch 32941631 passed.
WARNING: Could not apply the patch "33424187" because the "oracle.sysman.smf.oms.plugin with version 13.5.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 "33424202" because the "oracle.sysman.vt.oms.plugin with version 13.5.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 "32972412" because the "oracle.sysman.empa.oms.plugin with version 13.5.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.

Prereq "checkComponents" for patch 33424205 passed.
WARNING: Could not apply the patch "33424177" because the "oracle.sysman.am.oms.plugin with version 13.5.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.

Prereq "checkComponents" for patch 33424166 passed.

Prereq "checkComponents" for patch 33424169 passed.
WARNING: Could not apply the patch "33424180" because the "oracle.sysman.bda.oms.plugin with version 13.5.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 "33424183" because the "oracle.sysman.emct.oms.plugin with version 13.5.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 "33424173" because the "oracle.sysman.emfa.oms.plugin with version 13.5.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 "33424196" because the "oracle.sysman.ssa.oms.plugin with version 13.5.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.

Prereq "checkComponents" for patch 33424193 passed.
WARNING: Could not apply the patch "33424208" because the "oracle.sysman.vi.oms.plugin with version 13.5.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.

Running apply prerequisite checks for sub-patch(es) "33424169,32941631,33424166,33424163,33424193,33424205" and Oracle Home "/opt/xxx/app/software/em/middleware135"...
Sub-patch(es) "33424169,32941631,33424166,33424163,33424193,33424205" are successfully analyzed for Oracle Home "/opt/xxx/app/software/em/middleware135"


Complete Summary
================


All log file names referenced below can be accessed from the directory "/opt/xxx/app/software/em/middleware135/cfgtoollogs/omspatcher/2022-01-11_15-25-06PM_SystemPatch_33588912_1"

Prerequisites analysis summary:
-------------------------------

The following sub-patch(es) are applicable:

             Featureset                                             Sub-patches                                                                                  Log file
             ----------                                             -----------                                                                                  --------
  oracle.sysman.top.oms   33424169,32941631,33424166,33424163,33424193,33424205   33424169,32941631,33424166,33424163,33424193,33424205_opatch2022-01-11_15-25-10PM_1.log


The following sub-patches are incompatible with components installed in the OMS system:
33424187,33424202,32972412,33424177,33424180,33424183,33424173,33424196,33424208



--------------------------------------------------------------------------------
The following warnings have occurred during OPatch execution:
1)  OMSPatcher has been invoked with bitonly option but the System patch provided has deployment metadata.
Invocation in bitonly mode will prevent OMSPatcher from deploying artifacts.
2)  Could not apply the patch "33424187" because the "oracle.sysman.smf.oms.plugin with version 13.5.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.
3)  Could not apply the patch "33424202" because the "oracle.sysman.vt.oms.plugin with version 13.5.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.
4)  Could not apply the patch "32972412" because the "oracle.sysman.empa.oms.plugin with version 13.5.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.
5)  Could not apply the patch "33424177" because the "oracle.sysman.am.oms.plugin with version 13.5.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.
6)  Could not apply the patch "33424180" because the "oracle.sysman.bda.oms.plugin with version 13.5.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.
7)  Could not apply the patch "33424183" because the "oracle.sysman.emct.oms.plugin with version 13.5.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.
8)  Could not apply the patch "33424173" because the "oracle.sysman.emfa.oms.plugin with version 13.5.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.
9)  Could not apply the patch "33424196" because the "oracle.sysman.ssa.oms.plugin with version 13.5.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.
10)  Could not apply the patch "33424208" because the "oracle.sysman.vi.oms.plugin with version 13.5.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.
--------------------------------------------------------------------------------
OMSPatcher Session completed with warnings.
Log file location: /opt/xxx/app/software/em/middleware135/cfgtoollogs/omspatcher/33588912/omspatcher_2022-01-11_15-25-07PM_analyze.log

OMSPatcher completed with warnings.

Patches before the RU apply
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

OPatch succeeded.
Applyign the RU with bitonly option
omspatcher apply -bitonly
OMSPatcher Automation Tool
Copyright (c) 2017, Oracle Corporation.  All rights reserved.


OMSPatcher version : 13.9.5.1.0
OUI version        : 13.9.4.0.0
Running from       : /opt/xxx/app/software/em/middleware135
Log file location  : /opt/xxx/app/software/em/middleware135/cfgtoollogs/omspatcher/opatch2022-01-11_15-28-18PM_1.log

OMSPatcher log file: /opt/xxx/app/software/em/middleware135/cfgtoollogs/omspatcher/33588912/omspatcher_2022-01-11_15-28-18PM_deploy.log

WARNING: OMSPatcher has been invoked with bitonly option but the System patch provided has deployment metadata.
Invocation in bitonly mode will prevent OMSPatcher from deploying artifacts.

Do you want to proceed? [y|n]
y
User Responded with: Y


Prereq "checkComponents" for patch 33424163 passed.

Prereq "checkComponents" for patch 32941631 passed.
WARNING: Could not apply the patch "33424187" because the "oracle.sysman.smf.oms.plugin with version 13.5.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 "33424202" because the "oracle.sysman.vt.oms.plugin with version 13.5.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 "32972412" because the "oracle.sysman.empa.oms.plugin with version 13.5.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.

Prereq "checkComponents" for patch 33424205 passed.
WARNING: Could not apply the patch "33424177" because the "oracle.sysman.am.oms.plugin with version 13.5.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.

Prereq "checkComponents" for patch 33424166 passed.

Prereq "checkComponents" for patch 33424169 passed.
WARNING: Could not apply the patch "33424180" because the "oracle.sysman.bda.oms.plugin with version 13.5.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 "33424183" because the "oracle.sysman.emct.oms.plugin with version 13.5.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 "33424173" because the "oracle.sysman.emfa.oms.plugin with version 13.5.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 "33424196" because the "oracle.sysman.ssa.oms.plugin with version 13.5.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.

Prereq "checkComponents" for patch 33424193 passed.
WARNING: Could not apply the patch "33424208" because the "oracle.sysman.vi.oms.plugin with version 13.5.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.

Running apply prerequisite checks for sub-patch(es) "33424169,32941631,33424166,33424163,33424193,33424205" and Oracle Home "/opt/xxx/app/software/em/middleware135"...
Sub-patch(es) "33424169,32941631,33424166,33424163,33424193,33424205" are successfully analyzed for Oracle Home "/opt/xxx/app/software/em/middleware135"

To continue, OMSPatcher will do the following:
[Patch and deploy artifacts]   :


Do you want to proceed? [y|n]
y
User Responded with: Y

Applying sub-patch(es) "32941631,33424163,33424166,33424169,33424193,33424205"
Please monitor log file: /opt/xxx/app/software/em/middleware135/cfgtoollogs/opatch/opatch2022-01-11_15-28-21PM_1.log


Complete Summary
================


All log file names referenced below can be accessed from the directory "/opt/xxx/app/software/em/middleware135/cfgtoollogs/omspatcher/2022-01-11_15-28-18PM_SystemPatch_33588912_1"

Patching summary:
-----------------

Binaries of the following sub-patch(es) have been applied successfully:

                        Featureset                                             Sub-patches                                                                                  Log file
                        ----------                                             -----------                                                                                  --------
  oracle.sysman.top.oms_13.5.0.0.0   32941631,33424163,33424166,33424169,33424193,33424205   32941631,33424163,33424166,33424169,33424193,33424205_opatch2022-01-11_15-28-21PM_1.log


The following sub-patches are incompatible with components installed in the OMS system:
33424187,33424202,32972412,33424177,33424180,33424183,33424173,33424196,33424208



--------------------------------------------------------------------------------
The following warnings have occurred during OPatch execution:
1)  OMSPatcher has been invoked with bitonly option but the System patch provided has deployment metadata.
Invocation in bitonly mode will prevent OMSPatcher from deploying artifacts.
2)  Could not apply the patch "33424187" because the "oracle.sysman.smf.oms.plugin with version 13.5.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.
3)  Could not apply the patch "33424202" because the "oracle.sysman.vt.oms.plugin with version 13.5.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.
4)  Could not apply the patch "32972412" because the "oracle.sysman.empa.oms.plugin with version 13.5.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.
5)  Could not apply the patch "33424177" because the "oracle.sysman.am.oms.plugin with version 13.5.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.
6)  Could not apply the patch "33424180" because the "oracle.sysman.bda.oms.plugin with version 13.5.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.
7)  Could not apply the patch "33424183" because the "oracle.sysman.emct.oms.plugin with version 13.5.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.
8)  Could not apply the patch "33424173" because the "oracle.sysman.emfa.oms.plugin with version 13.5.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.
9)  Could not apply the patch "33424196" because the "oracle.sysman.ssa.oms.plugin with version 13.5.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.
10)  Could not apply the patch "33424208" because the "oracle.sysman.vi.oms.plugin with version 13.5.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.
--------------------------------------------------------------------------------
OMSPatcher Session completed with warnings.
Log file location: /opt/xxx/app/software/em/middleware135/cfgtoollogs/omspatcher/33588912/omspatcher_2022-01-11_15-28-18PM_deploy.log

OMSPatcher completed with warnings.

Patches after apply
opatch lspatches
33424205;Oracle Enterprise Manager for Systems Infrastructure 13c Release 5 Plug-in Update 3 (13.5.1.3) for Oracle Management Service
33424193;Oracle Enterprise Manager for Exadata 13c Release 5 Plug-in Update 3 (13.5.1.3) for Oracle Management Service
33424169;Oracle Enterprise Manager for Oracle Database 13c Release 5 Plug-in Update 3 (13.5.1.3) for Oracle Management Service
33424166;Oracle Enterprise Manager for Fusion Middleware 13c Release 5 Plug-in Update 3 (13.5.1.3) for Oracle Management Service
33424163;Oracle Enterprise Manager 13c Release 5 Platform Update 3 (13.5.0.3) for Oracle Management Service
32941631;Oracle Enterprise Manager for Cloud Framework 13c Release 5 Plug-in Update 1 (13.5.1.1) for Oracle Management Service
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

OPatch succeeded.
After RU is applied the next step is to run the ConfigureGC.sh. Before running this stop the oms with -all option
emctl stop oms -all
Also all agents connecting to the OMS.
emctl stop agent
Carry out any DB pre-req work postponed. In this case the "Check if all adaptive features parameters are unset" and "Check the active job execution count before a job type upgrade" were postponed. So those will be carried out now. If these parameters were set at PDB level instead of CDB level then make sure reset is run on PDB.
 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='*';
 
 alter system set job_queue_processes=0 scope=both;
Set the ORACLE_HOME variable to new OMS home and run the ConfigureGC.sh.
export ORACLE_HOME=/opt/xxx/app/software/em/middleware135
$ORACLE_HOME/sysman/install/ConfigureGC.sh
This will open GUI. Select upgrade existing EM system

At this stage the DB modification will happen as such its a good idea to have a backup of the DB.

Ensure all DB pre-req are successful.

The extend weblogic server domain step comes pre-populated with server,port and the weblgoic user names. Enter the password for the user and the base location.

The port configuration will come pre-populated with existing ports used for configuration.

Review and click configure button.

Configuration assitants show the progress of each step

At the end of the configuration the finish page shows the EM URL and port along with admin service information.




With this the EM is upgraded to 13.5. The status command shows the following
emctl status oms
Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 1996, 2021 Oracle Corporation.  All rights reserved.
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up

emctl status oms -details
Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 1996, 2021 Oracle Corporation.  All rights reserved.
Console Server Host        : xxx
HTTP Console Port          : xxx
HTTPS Console Port         : xx
HTTP Upload Port           : xx
HTTPS Upload Port          : xx
EM Instance Home           : /opt/xxx/app/software/em/gc_inst135/em/EMGC_OMS1
OMS Log Directory Location : /opt/xxx/app/software/em/gc_inst135/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: 2
Console URL: https://xxx:xxx/em
Upload URL: https://xxx:xxx/empbs/upload

WLS Domain Information
Domain Name            : GCDomain
Admin Server Host      : xxx
Admin Server HTTPS Port: xxx
Admin Server is RUNNING

Oracle Management Server Information
Managed Server Instance Name: EMGC_OMS1
Oracle Management Server Instance Host: xxx
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up
The repost key will also be secured.
emctl status emkey
Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 1996, 2021 Oracle Corporation.  All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
The EMKey is configured properly.
If the central agent has JDK 1.8u261 applied then it could be started and will start monitoring the 13.5 OMS. Without JDK 1.8u261 the agent will run into issues and won't be able to monitor the OMS until upgraded. In this case the agent had JDK 1.8.0_291 applied so was able to start and monitor OMS before the agent upgrade.
emctl start agent
emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version          : 13.4.0.0.0
OMS Version            : 13.5.0.0.0
Protocol Version       : 12.1.0.1.0
...
During the configuration the job_queue_processes will be set to 50. This could be seen on the alert log.
pdbname(3):ALTER SYSTEM SET job_queue_processes=50 SCOPE=BOTH SID='cdbname' PDB='pdbname';
If password verification function was set to null set it back to original value.

To remove the old 13.4 middleware home verify no processes are running out of it and detach it from inventory.
ps ax | grep  /middleware/
echo $ORACLE_HOME
/opt/xxx/app/software/em/middleware

$ORACLE_HOME/oui/bin/detachHome.sh -silent ORACLE_HOME=$ORACLE_HOME
Launcher log file is /tmp/OraInstall2022-01-17_03-43-48PM/launcher2022-01-17_03-43-48PM.log.
Checking swap space: must be greater than 500 MB.   Actual 1023 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
detachHome failed.

The log(s) can be found here: /tmp/OraInstall2022-01-17_03-43-48PM.
Though message says detachment fails the inventory.xml says the old home has been rmeoved.
more /opt/xxx/app/oraInventory/ContentsXML/inventory.xml
...
<HOME_LIST>
      <HOME NAME="oms13c1" LOC="/opt/xxx/app/software/em/middleware" TYPE="O" IDX="3" REMOVED="T"/>
<HOME_LIST>
Oracle documentation also states to detach oracle_common directory
$ORACLE_HOME/oui/bin/detachHome.sh -silent ORACLE_HOME=$ORACLE_HOME/oracle_common
but as there's no such entry in the inventory this fails and could be ignored.
Once detached from oracle inventory the old middleware home and instance base location could be removed.
ls
agent  gc_inst  gc_inst135  middleware  middleware135  swlib

rm -rf middleware gc_inst

ls
agent  gc_inst135  middleware135  swlib
The next post will show how to upgrade the central agent to 13.5.

Related Posts
Upgrading Enterprise Manager Cloud Control from 13.4 to 13.5 - 1
Upgrading Enterprise Manager Cloud Control from 13.4 to 13.5 - 3
Installing Enterprise Manager Cloud Control 13c (13.4)
Converting EM Repository DB from Non-CDB to PDB
Adding Targets on EM Cloud Control 13c
Installing Enterprise Manager Cloud Control 13c (13.3)
Installing Grid Control 11gR1 and Deploying Agents
Upgrading Grid Control 11g to 12c - 1

Useful MOS Docs
13.5: How To Upgrade Enterprise Manager 13.5 Cloud Control OMSPatcher Utility to Version 13.9.5.1.0 [ID 2809842.1]
13.5: How to Apply Release Update on the OMS During the Install/Upgrade [ID 2810169.1]
EM 13c: GCDomain Coherence Targets Are Showing Down in the OEM Console [ID 2657900.1]
How to Refresh or Remove the Obsolete Cache Members in the EM Console for the Coherence Cluster? [ID 2765636.1]