OEM 13.4 Installation

https://192.168.56.211:7803/em



 
If your OMSPatcher has an older release, take a look here how to update it: EM 13c: How To Upgrade Enterprise Manager 13.4 Cloud Control OMSPatcher Utility to Version 13.9.4.1.0 (Doc ID 2646080.1)




https://orabliss.blogspot.com/2023/09/oracle-enterprise-manager-oms-134-patching.html









/ora01 ===70 gb of free space

/tmp 30 gb free space 


Please set the below parameter on repository database 
alter system set "_allow_insert_with_update_check"=true scope=both;
alter system set session_cached_cursors=200 scope=spfile;
alter system set sga_target=800M scope=both;
alter system set pga_aggregate_target=450M scope=both;
alter system set "_optimizer_nlj_hj_adaptive_join"= FALSE scope=both;
alter system set "_optimizer_strans_adaptive_pruning" = FALSE scope=both;
alter system set "_px_adaptive_dist_method" = OFF scope=both;
alter system set "_sql_plan_directive_mgmt_control" = 0 scope=both;
alter system set "_optimizer_dsdir_usage_control" = 0 scope=both;
alter system set "_optimizer_use_feedback" = FALSE scope=both;
alter system set "_optimizer_gather_feedback" = FALSE scope=both;
alter system set "_optimizer_performance_feedback" = OFF scope=both;
export ORACLE_SID=OEMDB
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/19.3/db_home
export OMS_HOME=/u01/app/oracle/middleware
export AGENT_HOME=/u01/app/oracle/agent/agent_inst

































[oracle@oem bin]$ export ORACLE_HOME=/u01/app/oracle/middleware
[oracle@oem bin]$ $ORACLE_HOME/OMSPatcher/omspatcher version
OMSPatcher Version: 13.8.0.0.3
OPlan Version: 12.2.0.1.16
OsysModel build: Thu Oct 25 18:18:12 PDT 2018

OMSPatcher succeeded.
[oracle@oem bin]$




export ORACLE_HOME=/u01/app/oracle/middleware
echo $ORACLE_HOME
$ORACLE_HOME/bin/emctl status oms -details

Next, I built the WebLogic encrypted configuration and key files. For this I need my WebLogic password.
cd $ORACLE_HOME
./createkeys.sh -oh $ORACLE_HOME -location $HOME/working/antunez/em_keys


Once I had done this, I created a property file to be used during the patching activities so I wouldn't have to input the Weblogic information over and over.


[oracle@hostname ~]$ cat $HOME/working/antunez/PropertyFile.txt
 AdminServerURL=t3s://oracleenterprisemanager:7102
 AdminConfigFile=/home/oracle/working/antunez/em_keys/config
 AdminKeyFile=/home/oracle/working/antunez/em_keys/key

The next step was to analyze whether this patch was applicable to my OMS home. Because I was copy-pasting from a VI file, the hyphen for the "analyze" command was not read correctly. I tried again, typing the hyphen manually, and was able to proceed.

[oracle@hostname ~]$ cd /u01/working/software/13.4.0.6/31767864
 [oracle@hostname ~]$ export ORACLE_HOME=/u01/app/oracle/middleware
 [oracle@hostname ~]$ export omspatcher=$ORACLE_HOME/OMSPATCHER/omspatcher
 [oracle@hostname ~]$ export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OMSPatcher:$PATH
 [oracle@hostname ~]$ omspatcher apply -analyze -property_file $HOME/working/antunez/PropertyFile.txt
 OMSPatcher Automation Tool


I received a couple of warnings regarding a few plugins that couldn't be applied, but that's ok. The next step was to shutdown the OMS


[oracle@hostname ~]$ 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
 JVMD Engine is Down


Finally I was ready to apply the patch (I have trimmed down the log below):

[oracle@hostname ~]$ omspatcher apply -property_file $HOME/working/antunez/PropertyFile.txt
 OMSPatcher Automation Tool



OMSPatcher version : 13.9.4.2.0
 OUI version : 13.9.4.0.0
 Running from : /u01/app/oracle/middleware
 Log file location : /u01/app/oracle/middleware/cfgtoollogs/omspatcher/opatch2020-09-28_11-29-51AM_1.log
 
 OMSPatcher log file: /u01/app/oracle/middleware/cfgtoollogs/omspatcher/31767864/omspatcher_2020-09-28_11-29-58AM_deploy.log
 ...
 
 Configuration Validation: Success
 
 
 Running apply prerequisite checks for sub-patch(es) "31661020,31661036,31812958,31661157,31661194,31661066" and Oracle Home "/u01/app/oracle/middleware"...
 Sub-patch(es) "31661020,31661036,31812958,31661157,31661194,31661066" are successfully analyzed for Oracle Home "/u01/app/oracle/middleware"
 
 To continue, OMSPatcher will do the following:
 [Patch and deploy artifacts] : Apply sub-patch(es) [ 31661020 31661036 31661066 31661157 31661194 31812958 ]
  Apply RCU artifact with patch "/u01/app/oracle/middleware/.omspatcher_storage/31661020_Sep_8_2020_04_05_17/original_patch";
  Apply RCU artifact with patch "/u01/app/oracle/middleware/.omspatcher_storage/31661036_Sep_8_2020_04_34_39/original_patch";
  Apply RCU artifact with patch "/u01/app/oracle/middleware/.omspatcher_storage/31661157_Sep_8_2020_04_34_53/original_patch";
  Apply RCU artifact with patch "/u01/app/oracle/middleware/.omspatcher_storage/31661194_Sep_8_2020_04_35_23/original_patch";
  Apply RCU artifact with patch "/u01/app/oracle/middleware/.omspatcher_storage/31661066_Sep_8_2020_04_36_14/original_patch";
  Apply RCU artifact with patch "/u01/app/oracle/middleware/.omspatcher_storage/31812958_Sep_8_2020_04_35_38/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
 

Since I saw no errors in my log, I proceeded to start the OMS:

[oracle@hostname ~]$ 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



/u01/app/oracle/agent/agent_inst/agent_13.4.0.0.0/bin
[oracle@oem bin]$ ./emctl status agent


export ORACLE_HOME=/u01/app/oracle/middleware
[oracle@oem bin]$ cd $ORACLE_HOME
[oracle@oem middleware]$ pwd
/u01/app/oracle/middleware

[oracle@oem bin]$ export ORACLE_HOME=/u01/app/oracle/middleware
[oracle@oem bin]$ echo $ORACLE_HOME
/u01/app/oracle/middleware
[oracle@oem bin]$ $ORACLE_HOME/bin/emctl status oms -details


Stop/Start OMS:
export OMS_HOME=/u01/app/oracle/middleware
/u01/app/oracle/middleware/bin/emctl stop oms -all
/u01/app/oracle/middleware/bin/emctl start oms
/u01/app/oracle/middleware/bin/emctl status oms
/u01/app/oracle/middleware/bin/emctl status oms -details 

Stop/Start Agent:
export AGENT_HOME=/u01/app/oracle/agent/agent_inst
/u01/app/oracle/agent/agent_inst/bin/emctl stop agent
/u01/app/oracle/agent/agent_inst/bin/emctl start agent
/u01/app/oracle/agent/agent_inst/bin/emctl status agent

Stop/Start Database:
. oraenv --- OEMDB
sqlplus / as sysdba
shut immediate;
startup;
select name,open_mode from v$database;

Stop/Start Listener:
lsnrctl stop LISTENER_
lsnrctl start LISTENER
lsnrctl status LISTENER
Access console:
username: sysman
Passwd: 


Agent installation 
===================
[oracle@19cprod01 ~]$ cat /etc/oragc*
/u01/em/agent/agent_13.4.0.0.0:/u01/em/agent/agent_inst
[oracle@19cprod01 ~]$ cd /u01/em/agent/agent_inst/bin/
[oracle@19cprod01 bin]$ ./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.4.0.0.0
Protocol Version       : 12.1.0.1.0
Agent Home             : /u01/em/agent/agent_inst
Agent Log Directory    : /u01/em/agent/agent_inst/sysman/log
Agent Binaries         : /u01/em/agent/agent_13.4.0.0.0
Core JAR Location      : /u01/em/agent/agent_13.4.0.0.0/jlib
Agent Process ID       : 21593
Parent Process ID      : 21556
Agent URL              : https://19cprod01.oracle.com:3872/emd/main/
Local Agent URL in NAT : https://19cprod01.oracle.com:3872/emd/main/
Repository URL         : https://oms01.oracle.com:4903/empbs/upload
Started at             : 2025-07-27 01:45:56
Started by user        : oracle
Operating System       : Linux version 5.4.17-2102.201.3.el7uek.x86_64 (amd64)
Number of Targets      : 4
Last Reload            : (none)
Last successful upload                       : 2025-07-27 01:49:36
Last attempted upload                        : 2025-07-27 01:49:36
Total Megabytes of XML files uploaded so far : 0.48
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 15.80%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2025-07-27 01:49:01
Last successful heartbeat to OMS             : 2025-07-27 01:49:01
Next scheduled heartbeat to OMS              : 2025-07-27 01:50:01
---------------------------------------------------------------
Agent is Running and Ready
[oracle@19cprod01 bin]$

Comments

Popular posts from this blog

MY NOTEPAD

Oracle OEM Holistic Patch

Upgrade Oracle 19c DB to 21c using Auto Upgrade utility inprogress