Table des matières

Patch EM 13.5.0.1 to 13.5.0.23

Liens utiles

https://www.dbi-services.com/blog/oem-cloud-control-release-update-to-13-5-0-23/


1/ Prérequis


2/ Patchs nécessaires

OPATCH 13.9.4.2.18 FOR EM 13.5

OMSPatcher:

OMS:

jdbs:

AGENT:


3/ Patching

export OMS_HOME=/u01/app/oracle/product/EnterpriseManager/oms_home
export ORACLE_HOME=$OMS_HOME
export PATH=$ORACLE_HOME/bin:$PATH
export PATH=$OMS_HOME/OMSPatcher:$PATH
export PATH=$OMS_HOME/OPatch:$PATH


[oracle@oem1 oms_home]$ ll /u01/Downloads/
total 10087948
-rwxr-----.  1 oracle oinstall 1897494675 Jan 30 11:49 em13500_linux64-2.zip
-rwxr-----.  1 oracle oinstall 2130750885 Jan 30 11:52 em13500_linux64-3.zip
-rwxr-----.  1 oracle oinstall 1454982045 Jan 30 11:53 em13500_linux64-4.zip
-rwxr-----.  1 oracle oinstall 1494500710 Jan 30 11:55 em13500_linux64-5.zip
-rwxr-----.  1 oracle oinstall 1586801533 Jan 30 11:47 em13500_linux64.bin
drwxr-----.  2 oracle oinstall       4096 Jan 30 17:44 EM_InstallConfFiles
-rwxr-----.  1 oracle oinstall    1322136 Feb  7 14:42 p19999993_OMSPatcher_13.9.5.23.0.zip
-rwxr-----.  1 oracle oinstall     468428 Feb  7 14:43 p28186730_OPATCHforEM_1394218_Generic.zip
-rwxr-----.  1 oracle oinstall     468428 Feb  7 14:43 p31657681_JDBC_191000_Generic.zip
-rwxr-----.  1 oracle oinstall      58787 Feb  7 14:43 p34153238_JDBC_122140_Generic.zip
-rwxr-----.  1 oracle oinstall    1418389 Feb  7 14:43 p35430934_JDBC_122140_Generic.zip
-rwxr-----.  1 oracle oinstall 1489782451 Feb  7 14:44 p36494040_EnterpriseManager_13.0.5.23_Generic.zip
-rwxr-----.  1 oracle oinstall  272446111 Feb  7 14:45 p36494050_OracleManagementAgent_13.0.5.23_Generic.zip
drwxr-----. 10 oracle oinstall       4096 Jan 30 20:08 tmp
cd /u01/app/oracle/product/EnterpriseManager/oms_home
mv OMSPatcher/ OMSPatcher.old
unzip /u01/Downloads/p19999993_OMSPatcher_13.9.5.23.0.zip
 
[oracle@oem1 oms_home]$ OMSPatcher/omspatcher version
OMSPatcher Version: 13.9.5.23.0
OPlan Version: 12.2.0.1.16
OsysModel build: Tue Apr 28 18:16:31 PDT 2020
 
OMSPatcher succeeded.
cd /u01/Downloads/
unzip p28186730_OPATCHforEM_1394218_Generic.zip
cd 6880880/
 
/u01/app/oracle/product/19.0.0/dbhome_1/jdk/bin/java -jar /u01/Downloads/6880880/opatch_generic.jar -silent oracle_home=/u01/app/oracle/product/EnterpriseManager/oms_home
 
[oracle@oem1 6880880]$ /u01/app/oracle/product/EnterpriseManager/oms_home/OPatch/opatch version
OPatch Version: 13.9.4.2.18
 
OPatch succeeded.
unzip p31657681_JDBC_191000_Generic.zip
unzip p34153238_JDBC_122140_Generic.zip
unzip p35430934_JDBC_122140_Generic.zip
 
/u01/app/oracle/product/EnterpriseManager/oms_home/bin/emctl stop oms -force -all
 
cd /u01/Downloads/31657681
/u01/app/oracle/product/EnterpriseManager/oms_home/OPatch/opatch apply -silent
 
cd /u01/Downloads/34153238
/u01/app/oracle/product/EnterpriseManager/oms_home/OPatch/opatch apply -silent
 
cd /u01/Downloads/35430934
/u01/app/oracle/product/EnterpriseManager/oms_home/OPatch/opatch apply -silent
 
/u01/app/oracle/product/EnterpriseManager/oms_home/OPatch/opatch lsinv | grep applied
	Patch  35430934     : applied on Sun Feb 02 21:53:39 CET 2025
	Patch  34153238     : applied on Sun Feb 02 21:52:56 CET 2025
	Patch  31657681     : applied on Sun Feb 02 21:51:28 CET 2025
	Patch  32458315     : applied on Sat Feb 01 21:22:41 CET 2025
	Patch  32412974     : applied on Sat Feb 01 21:22:05 CET 2025
	Patch  31818221     : applied on Sat Feb 01 21:21:54 CET 2025
	Patch  31808404     : applied on Sat Feb 01 21:21:47 CET 2025
	Patch  31708760     : applied on Sat Feb 01 21:21:41 CET 2025
	Patch  31666198     : applied on Sat Feb 01 21:21:35 CET 2025
	Patch  30152128     : applied on Sat Feb 01 21:21:29 CET 2025
	Patch  26626168     : applied on Sat Feb 01 21:21:23 CET 2025
	Patch  122146       : applied on Sat Feb 01 21:21:12 CET 2025
	Patch  32253037     : applied on Sat Feb 01 21:20:25 CET 2025
oracle@oem1 Downloads]$ /u01/app/oracle/product/EnterpriseManager/oms_home/bin/emctl start oms -admin_only
	Oracle Enterprise Manager Cloud Control 13c Release 5  
	Copyright (c) 1996, 2021 Oracle Corporation.  All rights reserved.
	Starting Admin Server only...
	Admin Server Successfully Started 
 
[oracle@oem1 Downloads]$ /u01/app/oracle/product/EnterpriseManager/oms_home/bin/emctl status oms
	Oracle Enterprise Manager Cloud Control 13c Release 5  
	Copyright (c) 1996, 2021 Oracle Corporation.  All rights reserved.
	WebTier is Down
	Oracle Management Server is Down
	JVMD Engine is Down
 
unzip /u01/Downloads/p36494040_EnterpriseManager_13.0.5.23_Generic.zip
cd /u01/Downloads/36494040
/u01/app/oracle/product/EnterpriseManager/oms_home/OMSPatcher/omspatcher apply -analyze
 
		OMSPatcher Automation Tool
		Copyright (c) 2017, Oracle Corporation.  All rights reserved.
 
 
		OMSPatcher version : 13.9.5.23.0
		OUI version        : 13.9.4.0.0
		Running from       : /u01/app/oracle/product/EnterpriseManager/oms_home
		Log file location  : /u01/app/oracle/product/EnterpriseManager/oms_home/cfgtoollogs/omspatcher/opatch2025-02-02_22-09-26PM_1.log
 
		OMSPatcher log file: /u01/app/oracle/product/EnterpriseManager/oms_home/cfgtoollogs/omspatcher/37057635/omspatcher_2025-02-02_22-09-30PM_analyze.log
 
		Please enter OMS weblogic admin server URL(t3s://oem1.labo.local:7102):> 
		Please enter OMS weblogic admin server username(weblogic):> 
		Please enter OMS weblogic admin server password:> 
 
		Enter DB user name : sys
		Enter 'sys' password : 
		Checking if current repository database is a supported version
		Current repository database version is supported
 
 
		Prereq "checkComponents" for patch 37051009 passed.
 
		Prereq "checkComponents" for patch 36752903 passed.
 
		Prereq "checkComponents" for patch 37051110 passed.
 
		Prereq "checkComponents" for patch 37051018 passed.
 
		Prereq "checkComponents" for patch 37051029 passed.
 
		Prereq "checkComponents" for patch 37051095 passed.
 
		Configuration Validation: Success
 
 
		Running apply prerequisite checks for sub-patch(es) "37051009,37051095,37051018,36752903,37051110,37051029" and Oracle Home "/u01/app/oracle/product/EnterpriseManager/oms_home"...
		Sub-patch(es) "37051009,37051095,37051018,36752903,37051110,37051029" are successfully analyzed for Oracle Home "/u01/app/oracle/product/EnterpriseManager/oms_home"
 
 
		Complete Summary
		================
 
 
		All log file names referenced below can be accessed from the directory "/u01/app/oracle/product/EnterpriseManager/oms_home/cfgtoollogs/omspatcher/2025-02-02_22-09-26PM_SystemPatch_37057635_1"
 
		Prerequisites analysis summary:
		-------------------------------
 
		The following sub-patch(es) are applicable:
 
					 Featureset                                             Sub-patches                                                                                  Log file
					 ----------                                             -----------                                                                                  --------
		  oracle.sysman.top.oms   37051009,37051095,37051018,36752903,37051110,37051029   37051009,37051095,37051018,36752903,37051110,37051029_opatch2025-02-02_22-10-04PM_1.log
 
 
		The following sub-patches are not needed by any component installed in the OMS system:
		35582217,34430509,36752930,37051051,35854914,36752809,36329046,36752861,36752891
 
 
 
		Log file location: /u01/app/oracle/product/EnterpriseManager/oms_home/cfgtoollogs/omspatcher/37057635/omspatcher_2025-02-02_22-09-30PM_analyze.log
 
		OMSPatcher succeeded.
[oracle@oem1]$ /u01/app/oracle/product/EnterpriseManager/oms_home/OMSPatcher/omspatcher apply
OMSPatcher Automation Tool
Copyright (c) 2017, Oracle Corporation.  All rights reserved.
 
 
OMSPatcher version : 13.9.5.23.0
OUI version        : 13.9.4.0.0
Running from       : /u01/app/oracle/product/EnterpriseManager/oms_home
Log file location  : /u01/app/oracle/product/EnterpriseManager/oms_home/cfgtoollogs/omspatcher/opatch2025-02-07_16-50-21PM_1.log
 
OMSPatcher log file: /u01/app/oracle/product/EnterpriseManager/oms_home/cfgtoollogs/omspatcher/36494040/omspatcher_2025-02-07_16-50-29PM_apply.log
 
Please enter OMS weblogic admin server URL(t3s://gvacoeoem.corp.sch.ch:7102):>
Please enter OMS weblogic admin server username(weblogic):>
Please enter OMS weblogic admin server password:>
 
Enter DB user name : sys
Enter 'sys' password :
Checking if current repository database is a supported version
Current repository database version is supported
 
 
Prereq "checkComponents" for patch 36487738 passed.
 
Prereq "checkComponents" for patch 36329231 passed.
 
Prereq "checkComponents" for patch 36487989 passed.
 
Prereq "checkComponents" for patch 36487743 passed.
 
Prereq "checkComponents" for patch 36487747 passed.
 
Prereq "checkComponents" for patch 36487829 passed.
 
Configuration Validation: Success
 
 
Running apply prerequisite checks for sub-patch(es) "36487738,36487747,36487989,36487829,36487743,36329231" and Oracle Home "/u01/app/oracle/product/EnterpriseManager/oms_home"...
Sub-patch(es) "36487738,36487747,36487989,36487829,36487743,36329231" are successfully analyzed for Oracle Home "/u01/app/oracle/product/EnterpriseManager/oms_home"
 
To continue, OMSPatcher will do the following:
[Patch and deploy artifacts]   : Apply sub-patch(es) [ 36329231 36487738 36487743 36487747 36487829 36487989 ]
                                 Apply RCU artifact with patch "/u01/app/oracle/product/EnterpriseManager/oms_home/.omspatcher_storage/36487738_Aug_3_2024_00_57_51/original_patch";
                                 Apply RCU artifact with patch "/u01/app/oracle/product/EnterpriseManager/oms_home/.omspatcher_storage/36329231_May_8_2024_02_03_34/original_patch";
                                 Apply RCU artifact with patch "/u01/app/oracle/product/EnterpriseManager/oms_home/.omspatcher_storage/36487989_Aug_3_2024_02_10_51/original_patch";
                                 Apply RCU artifact with patch "/u01/app/oracle/product/EnterpriseManager/oms_home/.omspatcher_storage/36487743_Aug_3_2024_02_08_52/original_patch";
                                 Apply RCU artifact with patch "/u01/app/oracle/product/EnterpriseManager/oms_home/.omspatcher_storage/36487747_Aug_3_2024_02_09_46/original_patch";
                                 Apply RCU artifact with patch "/u01/app/oracle/product/EnterpriseManager/oms_home/.omspatcher_storage/36487829_Aug_3_2024_02_11_15/original_patch";
                                 Register MRS artifact "commands";
                                 Register MRS artifact "omsPropertyDef";
                                 Register MRS artifact "targetType";
                                 Register MRS artifact "chargeback";
                                 Register MRS artifact "default_collection";
                                 Register MRS artifact "assoc";
                                 Register MRS artifact "jobTypes";
                                 Register MRS artifact "systemStencil";
                                 Register MRS artifact "procedures";
                                 Register MRS artifact "discovery";
                                 Register MRS artifact "EcmMetadataOnlyRegistration";
                                 Register MRS artifact "swlib";
                                 Register MRS artifact "OracleCertifiedTemplate";
                                 Register MRS artifact "namedQuery";
                                 Register MRS artifact "TargetPrivilege";
                                 Register MRS artifact "CredStoreMetadata";
                                 Register MRS artifact "storeTargetType";
                                 Register MRS artifact "gccompliance";
                                 Register MRS artifact "compression";
                                 Register MRS artifact "SecurityClassManager";
                                 Register MRS artifact "OutOfBoxRole";
                                 Register MRS artifact "eventSpecificCustmzn";
                                 Register MRS artifact "report";
                                 Register MRS artifact "namedsql";
                                 Register MRS artifact "runbooks";
                                 Register MRS artifact "derivedAssocs"
 
 
Do you want to proceed? [y|n]
y
User Responded with: Y
Stopping the OMS.....
Please monitor log file: /u01/app/oracle/product/EnterpriseManager/oms_home/cfgtoollogs/omspatcher/2025-02-07_16-56-34PM_SystemPatch_36494040_9/stop_oms_2025-02-07_16-56-34PM.log
 
[...]
 
Complete Summary
================
 
 
All log file names referenced below can be accessed from the directory "/u01/app/oracle/product/EnterpriseManager/oms_home/cfgtoollogs/omspatcher/2025-02-13_22-16-46PM_SystemPatch_37057635_112"


ERROR
OMSPatch failure:
[Jan 24, 2024 10:26:42 AM] DB user name: SYSMAN is used for db connection
[Jan 24, 2024 10:26:42 AM] Executing Stop agent ....
[Jan 24, 2024 10:26:42 AM] The agent is -------------
[Jan 24, 2024 10:26:42 AM] The command executed is /bin/emctl stop agent
[Jan 24, 2024 10:26:42 AM] ###### .getNormalMessage Cannot run program "/bin/emctl": error=2, No such file or directory
[Jan 24, 2024 10:26:42 AM] ******** getErrorMessage Cannot run program "/bin/emctl": error=2, No such file or directory
[Jan 24, 2024 10:26:42 AM] Failed to stop agent
[Jan 24, 2024 10:26:42 AM] Failed to stop agent
perl $AGENT_HOME/sysman/install/AgentDeinstall.pl -agentHome $AGENT_HOME

A FAIRE