Why OEM 24ai?
- AI-driven monitoring: Detect anomalies faster with built-in AI models.
- Improved security: Works seamlessly with the latest Critical Patch Updates.
- Performance optimization: Recommendations to tune Oracle 19c workloads.
- Hybrid ready: Unified management for on-premise and cloud workloads.
Step 1: Prepare Your Oracle 19c Database
First, confirm your Oracle 19c database is patched and supported by OEM 24ai. The current release supports Oracle Database 19.22 and higher
Run a quick health check in SQL*Plus:
set lines 200 pages 200 select name, open_mode, log_mode, database_role from v$database;Also check redo log configuration:
col member for a70 select group#, members, bytes/1024/1024 "Size in MB" from v$log; select group#, member from v$logfile;Added larger redo logs (300 MB each). Datafile Resize Operations Slowing Installation
During the installation, the alert log showed multiple datafile resize operations, causing the process to take much longer than expected:
2025-04-28T20:07:56.644938+05:30 Resize operation completed for file# 3, fname /u01/oradata/data/OEM/sysaux01.dbf, old size 880640K, new size 890880K 2025-04-28T20:08:05.292709+05:30 Resize operation completed for file# 1, fname /u01/oradata/data/OEM/system01.dbf, old size 1464320K, new size 1474560KSince the datafiles were already in AUTOEXTEND mode, OEM kept resizing files gradually instead of allocating enough upfront space.
Step 2: Verify and Tune Database Parameters OEM 24ai requires certain parameters to be set properly. Run the following commands to check current values: show parameter _allow_insert_with_update_check; show parameter session_cached_cursors; show parameter shared_pool_size; show parameter processes; show parameter sga_max_size; show parameter sga_target; show parameter pga_aggregate_target; If needed, adjust them to meet OEM 24ai requirements: alter system set "_allow_insert_with_update_check"=true scope=both; alter system set session_cached_cursors=500 scope=spfile; alter system set shared_pool_size=1600M scope=spfile; alter system set processes=600 scope=spfile; alter system set sga_max_size=8G scope=spfile; alter system set sga_target=8G scope=spfile; alter system set pga_aggregate_target=1G scope=spfile; 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='*'; Important: Restart the database after these parameter changes.
Step 3: Patch the Database (Pre-requisite)
Before you install OEM 24ai, ensure your Oracle 19c home is patched with the latest Release Update (RU) and OJVM patches.
Typical patching flow:
Download patches from Oracle Support.
Update OPatch to the latest version.
Run conflict checks.
Shutdown the database and listener.
Apply the RU/OJVM patches using opatch apply.
Restart services and run datapatch -verbose.
Verify with:
select ACTION_TIME,ACTION,STATUS,SOURCE_VERSION,TARGET_VERSION from dba_registry_sqlpatch
Install OEM 24 ai - Binaries
STEP 1: Take server access and check GUI is enable or not.
--------------------------------------------------------------------------
[oracle@orcl-oem01p] ssh -X oracle@198.168.0.100
[oracle@orcl-oem01p OMS_software]$ emac---------------------------------------------------------------------
STEP 2: : FIX GROUP ERROR and CREATE USER
---------------------------------------------------------------------
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle
[root@orcl-oem01p ~]# groupadd oinstall
[root@orcl-oem01p ~]# groupadd dba---------------------------------------------------------------------
STEP 3: DIRECTORY STRUCTURE
---------------------------------------------------------------------
[root@orcl-oem01p u02]# cd app/
[root@orcl-oem01p app]# mkdir oracle
[root@orcl-oem01p app]# cd oracle/
[root@orcl-oem01p oracle]# mkdir agent
[root@orcl-oem01p oracle]# mkdir middleware
[root@orcl-oem01p oracle]# ls -lrt
total 8
drwxr-xr-x. 2 root root 4096 Jun 19 10:36 agent
drwxr-xr-x. 2 root root 4096 Jun 19 10:36 middleware
[root@orcl-oem01p oracle]#
[root@orcl-oem01p oracle]# pwd
/u02/app/oracle
[root@orcl-oem01p oracle]#
[root@orcl-oem01p oracle]#
[root@orcl-oem01p oracle]# cd ..
[root@orcl-oem01p app]# cd ..
[root@orcl-oem01p u02]# chmod -R 755 app
[root@orcl-oem01p u02]# chown -R oracle:ointsall app
[root@orcl-oem01p u02]# cd /u02
[root@orcl-oem01p u02]# mkdir tmp
[root@orcl-oem01p u02]# chmod -R 755 tmp
[root@orcl-oem01p u02]# chown -R oracle:ointsall tmp---------------------------------------------------------------------
STEP 4: VERIFY FILES
---------------------------------------------------------------------
cd /u02/app/oracle/OMS_software
ls -lrt
Ensure below files exist:
V1046951-01.zip
V1046952-01.zip
V1046953-01.zip
V1046954-01.zip
V1046955-01.zip---------------------------------------------------------------------
STEP 5: UNZIP SOFTWARE
---------------------------------------------------------------------
su - oracle
cd /u02/app/oracle/OMS_software
unzip V1046951-01.zip
unzip V1046952-01.zip
unzip V1046953-01.zip
unzip V1046954-01.zip
unzip V1046955-01.zip
[oracle@orcl-oem01p OMS_software]$
[oracle@orcl-oem01p OMS_software]$ unzip V1046951-01.zip
Archive: V1046951-01.zip
inflating: em24100_linux64.bin
[oracle@orcl-oem01p OMS_software]$ ls -lrt
total 9815816
-r-xr-xr-x. 1 oracle oracle 1624325096 Dec 5 2024 em24100_linux64.bin
-rwxrwxr-x. 1 oracle oinstall 1624006261 Jun 19 11:26 V1046951-01.zip
-rwxrwxr-x. 1 oracle oinstall 1669545916 Jun 19 11:30 V1046955-01.zip
-rwxrwxr-x. 1 oracle oinstall 1921746284 Jun 19 11:31 V1046953-01.zip
-rwxrwxr-x. 1 oracle oinstall 1532547469 Jun 19 11:31 V1046952-01.zip
-rwxrwxr-x. 1 oracle oinstall 1679195404 Jun 19 11:32 V1046954-01.zip
[oracle@orcl-oem01p OMS_software]$
[oracle@orcl-oem01p OMS_software]$ unzip V1046952-01.zip
Archive: V1046952-01.zip
extracting: em24100_linux64-2.zip
[oracle@orcl-oem01p OMS_software]$
[oracle@orcl-oem01p OMS_software]$
[oracle@orcl-oem01p OMS_software]$ ls -lrt
total 11312452
-r--r--r--. 1 oracle oracle 1532547277 Dec 5 2024 em24100_linux64-2.zip
-r-xr-xr-x. 1 oracle oracle 1624325096 Dec 5 2024 em24100_linux64.bin
-rwxrwxr-x. 1 oracle oinstall 1624006261 Jun 19 11:26 V1046951-01.zip
-rwxrwxr-x. 1 oracle oinstall 1669545916 Jun 19 11:30 V1046955-01.zip
-rwxrwxr-x. 1 oracle oinstall 1921746284 Jun 19 11:31 V1046953-01.zip
-rwxrwxr-x. 1 oracle oinstall 1532547469 Jun 19 11:31 V1046952-01.zip
-rwxrwxr-x. 1 oracle oinstall 1679195404 Jun 19 11:32 V1046954-01.zip
[oracle@orcl-oem01p OMS_software]$ unzip V1046953-01.zip
Archive: V1046953-01.zip
extracting: em24100_linux64-3.zip
[oracle@orcl-oem01p OMS_software]$
[oracle@orcl-oem01p OMS_software]$
[oracle@orcl-oem01p OMS_software]$
[oracle@orcl-oem01p OMS_software]$
[oracle@orcl-oem01p OMS_software]$
[oracle@orcl-oem01p OMS_software]$ ls -lrt
total 13189164
-r--r--r--. 1 oracle oracle 1532547277 Dec 5 2024 em24100_linux64-2.zip
-r--r--r--. 1 oracle oracle 1921746092 Dec 5 2024 em24100_linux64-3.zip
-r-xr-xr-x. 1 oracle oracle 1624325096 Dec 5 2024 em24100_linux64.bin
-rwxrwxr-x. 1 oracle oinstall 1624006261 Jun 19 11:26 V1046951-01.zip
-rwxrwxr-x. 1 oracle oinstall 1669545916 Jun 19 11:30 V1046955-01.zip
-rwxrwxr-x. 1 oracle oinstall 1921746284 Jun 19 11:31 V1046953-01.zip
-rwxrwxr-x. 1 oracle oinstall 1532547469 Jun 19 11:31 V1046952-01.zip
-rwxrwxr-x. 1 oracle oinstall 1679195404 Jun 19 11:32 V1046954-01.zip
[oracle@orcl-oem01p OMS_software]$
[oracle@orcl-oem01p OMS_software]$
[oracle@orcl-oem01p OMS_software]$ unzip V1046954-01.zip
Archive: V1046954-01.zip
extracting: em24100_linux64-4.zip
[oracle@orcl-oem01p OMS_software]$
[oracle@orcl-oem01p OMS_software]$
[oracle@orcl-oem01p OMS_software]$ ls -lrt
total 14829008
-r--r--r--. 1 oracle oracle 1532547277 Dec 5 2024 em24100_linux64-2.zip
-r--r--r--. 1 oracle oracle 1921746092 Dec 5 2024 em24100_linux64-3.zip
-r--r--r--. 1 oracle oracle 1679195212 Dec 5 2024 em24100_linux64-4.zip
-r-xr-xr-x. 1 oracle oracle 1624325096 Dec 5 2024 em24100_linux64.bin
-rwxrwxr-x. 1 oracle oinstall 1624006261 Jun 19 11:26 V1046951-01.zip
-rwxrwxr-x. 1 oracle oinstall 1669545916 Jun 19 11:30 V1046955-01.zip
-rwxrwxr-x. 1 oracle oinstall 1921746284 Jun 19 11:31 V1046953-01.zip
-rwxrwxr-x. 1 oracle oinstall 1532547469 Jun 19 11:31 V1046952-01.zip
-rwxrwxr-x. 1 oracle oinstall 1679195404 Jun 19 11:32 V1046954-01.zip
[oracle@orcl-oem01p OMS_software]$
[oracle@orcl-oem01p OMS_software]$ unzip V1046955-01.zip
Archive: V1046955-01.zip
extracting: em24100_linux64-5.zip
[oracle@orcl-oem01p OMS_software]$
[oracle@orcl-oem01p OMS_software]$
[oracle@orcl-oem01p OMS_software]$ ls -lrt
total 16459428
-r--r--r--. 1 oracle oracle 1532547277 Dec 5 2024 em24100_linux64-2.zip
-r--r--r--. 1 oracle oracle 1921746092 Dec 5 2024 em24100_linux64-3.zip
-r--r--r--. 1 oracle oracle 1679195212 Dec 5 2024 em24100_linux64-4.zip
-r--r--r--. 1 oracle oracle 1669545724 Dec 5 2024 em24100_linux64-5.zip
-r-xr-xr-x. 1 oracle oracle 1624325096 Dec 5 2024 em24100_linux64.bin
-rwxrwxr-x. 1 oracle oinstall 1624006261 Jun 19 11:26 V1046951-01.zip
-rwxrwxr-x. 1 oracle oinstall 1669545916 Jun 19 11:30 V1046955-01.zip
-rwxrwxr-x. 1 oracle oinstall 1921746284 Jun 19 11:31 V1046953-01.zip
-rwxrwxr-x. 1 oracle oinstall 1532547469 Jun 19 11:31 V1046952-01.zip
-rwxrwxr-x. 1 oracle oinstall 1679195404 Jun 19 11:32 V1046954-01.zip
[oracle@orcl-oem01p OMS_software]$
chown -R oracle:oinstall OMS_software
chmod -R 775 OMS_software---------------------------------------------------------------------
STEP 6: RUN INSTALLER
---------------------------------------------------------------------
cd /u02/app/oracle/OMS_software
[oracle@orcl-oem01p OMS_software]$ unset CLASSPATH
[oracle@orcl-oem01p OMS_software]$ unset JAVA_HOME
[oracle@orcl-oem01p OMS_software]$
[oracle@orcl-oem01p OMS_software]$ ./em24100_linux64.bin -J-Djava.io.tmpdir=/u02/tmp
Launcher log file is /u02/tmp/OraInstall2026-07-03_06-55-32AM/launcher2026-07-03_06-55-32AM.log.
Extracting the installer . . . . . . . . . . . Done
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Checking swap space: must be greater than 512 MB. Actual 4095 MB Passed
Checking if this platform requires a 64-bit JVM. Actual 64 Passed (-d64 flag is not required)
Preparing to launch the Oracle Universal Installer from /u02/tmp/OraInstall2026-07-03_06-55-32AM
------------------------------------------------------------------------------------
STEP 8: ROOT SCRIPTS
------------------------------------------------------------------------------------
/u02/app/oracle/middleware/allroot.sh
sh -x /u02/app/oracle/middleware/oms_home/allroot.sh
[root@orcl-oem01p ~]# sh -x /u02/app/oracle/middleware/oms_home/allroot.sh
+ AWK=/bin/awk
+ ECHO=/bin/echo
+ /bin/echo -e '\nStarting to execute allroot.sh ......... \n'
Starting to execute allroot.sh .........
++ /usr/bin/id
++ /bin/awk '-F(' '{print $2}'
++ /bin/awk '-F)' '{print $1}'
+ RUID=root
+ '[' root '!=' root ']'
+ echo 'Starting to execute /u02/app/oracle/middleware/oms_home/root.sh ......'
Starting to execute /u02/app/oracle/middleware/oms_home/root.sh ......
+ /u02/app/oracle/middleware/oms_home/root.sh -silent
Check /u02/app/oracle/middleware/oms_home/install/root_gcp04oem01p_2026-07-03_09-01-49-042350731.log for the output of root script
+ /u02/app/oracle/agent/agent_24.1.0.0.0/root.sh
Finished product-specific root actions.
/etc exist
+ echo 'Finished execution of /u02/app/oracle/middleware/oms_home/root.sh ......'
Finished execution of /u02/app/oracle/middleware/oms_home/root.sh ......
+ echo
+ echo
+ echo 'Starting to execute /u02/app/oracle/agent/agent_24.1.0.0.0/root.sh ......'
Starting to execute /u02/app/oracle/agent/agent_24.1.0.0.0/root.sh ......
+ /u02/app/oracle/agent/agent_24.1.0.0.0/root.sh
Finished product-specific root actions.
/etc exist
+ echo 'Finished execution of /u02/app/oracle/agent/agent_24.1.0.0.0/root.sh ......'
Finished execution of /u02/app/oracle/agent/agent_24.1.0.0.0/root.sh ......This information is also available at:
/u02/app/oracle/middleware/oms_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://orcl-oem01p.-ora-oraexa-p-1000.internal:7803/em
2. Admin Server URL: https://orcl-oem01p.-ora-oraexa-p-1000.internal:7102/console
The following details need to be provided while installing an additional OMS:
1. Admin Server Host Name: orcl-oem01p.c.mms-ora-oraexa-p-1000.internal
2. Admin Server Port: 7102
You can find the details on ports used by this deployment at : /u02/app/oracle/middleware/oms_home/install/portlist.ini
NOTE:
An encryption key has been generated to encrypt sensitive data in the Management Repository. If this key is lost, all encrypted data in the Repository becomes unusable.
A backup of the OMS configuration is available in /u02/app/oracle/middleware/gc_inst/em/EMGC_OMS1/sysman/backup on host orcl-oem01.-ora-oraexa-p-1000.internal.
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:
/u02/app/oracle/middleware/oms_home/bin/emctl exportconfig oms -dir <backup dir>
https://orcl-oem01p:7803/em
Click on close.
--------------------------------------------------------------------------------------
STEP 9: START OMS
--------------------------------------------------------------------------------------
[oracle@orcl-oem01p bin]$ ./emctl start oms
Oracle Enterprise Manager 24ai Release 1
Copyright (c) 1996, 2024 Oracle Corporation. All rights reserved.
Starting Oracle Management Server...
WebTier Successfully Started
Oracle Management Server Already Started
Oracle Management Server is Up
JVMD Engine is Up
[oracle@orcl-oem01p bin]$ ./emctl status oms -details
Oracle Enterprise Manager 24ai Release 1
Copyright (c) 1996, 2024 Oracle Corporation. All rights reserved.
Console Server Host : orcl-oem01p.c.ora-oraexa-p-1000.internal
HTTP Console Port : 7788
HTTPS Console Port : 7803
HTTP Upload Port : 4889
HTTPS Upload Port : 4903
EM Instance Home : /u02/app/oracle/middleware/gc_inst/em/EMGC_OMS1
OMS Log Directory Location : /u02/app/oracle/middleware/gc_inst/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: 1
Console URL: https://orcl-oem01p.c.ora-oraexa-p-1000.internal:7803/em
Upload URL: https://orcl-oem01p.c.ora-oraexa-p-1000.internal:4903/empbs/upload
WLS Domain Information
Domain Name : GCDomain
Admin Server Host : orcl-oem01p.c.ora-oraexa-p-1000.internal
Admin Server HTTPS Port: 7102
Admin Server is RUNNING
Extended Domain Name : EMExtDomain1
Extended Admin Server Host : orcl-oem01p.c.ora-oraexa-p-1000.internal
Extended Admin Server HTTPS Port: 7016
Extended Admin Server is RUNNING
Oracle Management Server Information
Managed Server Instance Name: EMGC_OMS1
Oracle Management Server Instance Host: orcl-oem01p.c.ora-oraexa-p-1000.internal
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up
curl -k https://orcl-oem01p.c.ora-oraexa-p-1000.internal:7803/em
Below just for checking:
[oracle@orcl-oem01p bin]$ curl -k https://orcl-oem01p.c.ora-oraexa-p-1000.internal:7803/em
<html><head><title>302 Moved Temporarily</title></head>
<body bgcolor="#FFFFFF">
<p>This document you requested has moved
temporarily.</p>
<p>It's now at <a href="https://orcl-oem01p.c.ora-oraexa-p-1000.internal:7803/em/login.jsp">https://orcl-oem01p.c.ora-oraexa-p-1000.internal:7803/em/login.jsp</a>.</p>
</body></html>
-----------------------------------------------------------------------------------------
STEP 10: ACCESS URL
-----------------------------------------------------------------------------------------
https://orcle-oemp01p.oraclevcn.com:7802/em
=========================================================
INSTALLATION COMPLETED
=========================================================
No comments:
Post a Comment