Step by Step Installing Oracle Enterprise Manager 13cR3( 13.3.0.0 ) Cloud Control

CONTENTS

Introduction

This post demonstrates the installation of Oracle Enterprise Manager Cloud Control 13c Release 3 (13.3.0.0) on Oracle Linux  7 (x86_64).

Subscribe to get access

Read more of this content when you subscribe today.

Access Enterprise Manager Cloud Control 13c

URL :            https://oemnode1:7803/em
username:  sysman
Password:   you specified during your installation

Capture
Capture

Check OMS and Local Agent Status

Local Agent Status

[oracle@oemnode1 scripts]$ . oraenv
ORACLE_SID = [OEMREP] ? AGENT

[oracle@oemnode1 scripts]$ emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 13.3.0.0.0
OMS Version : 13.3.0.0.0
Protocol Version : 12.1.0.1.0
Agent Home : /u01/app/oracle/Product/Agent/agent_inst
Agent Log Directory : /u01/app/oracle/Product/Agent/agent_inst/sysman/log
Agent Binaries : /u01/app/oracle/Product/Agent/agent_13.3.0.0.0
Core JAR Location : /u01/app/oracle/Product/Agent/agent_13.3.0.0.0/jlib
Agent Process ID : 6463
Parent Process ID : 6403
Agent URL : https://oemnode1:3872/emd/main/
Local Agent URL in NAT : https://oemnode1:3872/emd/main/
Repository URL : https://oemnode1:4903/empbs/upload
Started at : 2020-03-27 23:43:12
Started by user : oracle
Operating System : Linux version 4.14.35-1902.10.7.el7uek.x86_64 (amd64)
Number of Targets : 33
Last Reload : (none)
Last successful upload : 2020-03-28 00:14:07
Last attempted upload : 2020-03-28 00:14:07
Total Megabytes of XML files uploaded so far : 1.72
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 13.15%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2020-03-28 00:13:52
Last successful heartbeat to OMS : 2020-03-28 00:13:52
Next scheduled heartbeat to OMS : 2020-03-28 00:14:52

Agent is Running and Ready

OMS & BI Publisher status

[oracle@oemnode1 ~]$ . oraenv
ORACLE_SID = [OMS] ? OMS

[oracle@oemnode1 ~]$ emctl status oms -bip_only
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved.
BI Publisher Server is Up

[oracle@oemnode1 ~]$ emctl status oms -details
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
Console Server Host : oemnode1
HTTP Console Port : 7788
HTTPS Console Port : 7803
HTTP Upload Port : 4889
HTTPS Upload Port : 4903
EM Instance Home : /u01/app/oracle/Product/gc_inst/em/EMGC_OMS1
OMS Log Directory Location : /u01/app/oracle/Product/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://oemnode1:7803/em
Upload URL: https://oemnode1:4903/empbs/upload

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

Oracle Management Server Information
Managed Server Instance Name: EMGC_OMS1
Oracle Management Server Instance Host: oemnode1
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up

BI Publisher Server Information
BI Publisher Managed Server Name: BIP
BI Publisher Server is Up

BI Publisher HTTP Managed Server Port : 9701
BI Publisher HTTPS Managed Server Port : 9803
BI Publisher HTTP OHS Port : 9788
BI Publisher HTTPS OHS Port : 9851
BI Publisher is locked.
BI Publisher Server named 'BIP' running at URL: https://oemnode1:9851/xmlpserver/servlet/home
BI Publisher Server Logs: /u01/app/oracle/Product/gc_inst/user_projects/domains/GCDomain/servers/BIP/logs/
BI Publisher Log : /u01/app/oracle/Product/gc_inst/user_projects/domains/GCDomain/servers/BIP/logs/bipublisher/bipublisher.log
[oracle@oemnode1 ~]$

Most Used Commands for OMS and Agent

Stop only OMS & JVMD Engine

[oracle@oemnode1 ~]$ emctl stop oms
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation.  All rights reserved.
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
Oracle Management Server is Down
JVMD Engine is Down

[oracle@oemnode1 ~]$ emctl status oms
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation.  All rights reserved.
WebTier is Up
Oracle Management Server is Down
JVMD Engine is Down
BI Publisher Server is Up
[oracle@oemnode1 ~]$

Stop OMS including Administration Server, BI Publisher,HTTP Server and Node Manager

[oracle@oemnode1 ~]$ emctl stop oms -all
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation.  All rights reserved.
Stopping Oracle Management Server...
WebTier Successfully Stopped
Oracle Management Server Successfully Stopped
Oracle Management Server is Down
JVMD Engine is Down
Stopping BI Publisher Server...
BI Publisher Server Successfully Stopped
AdminServer Successfully Stopped
BI Publisher Server is Down
[oracle@oemnode1 ~]$

Check the status of OMS

[oracle@oemnode1 ~]$ emctl status oms
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved.
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up
BI Publisher Server is Up
[oracle@oemnode1 ~]$

Get detailed OMS status,  SYSMAN Password is required

[oracle@oemnode1 ~]$ emctl status oms -details
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
Console Server Host : oemnode1
HTTP Console Port : 7788
HTTPS Console Port : 7803
HTTP Upload Port : 4889
HTTPS Upload Port : 4903
EM Instance Home : /u01/app/oracle/Product/gc_inst/em/EMGC_OMS1
OMS Log Directory Location : /u01/app/oracle/Product/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://oemnode1:7803/em
Upload URL: https://oemnode1:4903/empbs/upload

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

Oracle Management Server Information
Managed Server Instance Name: EMGC_OMS1
Oracle Management Server Instance Host: oemnode1
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up

BI Publisher Server Information
BI Publisher Managed Server Name: BIP
BI Publisher Server is Up

BI Publisher HTTP Managed Server Port : 9701
BI Publisher HTTPS Managed Server Port : 9803
BI Publisher HTTP OHS Port : 9788
BI Publisher HTTPS OHS Port : 9851
BI Publisher is locked.
BI Publisher Server named 'BIP' running at URL: https://oemnode1:9851/xmlpserver/servlet/home
BI Publisher Server Logs: /u01/app/oracle/Product/gc_inst/user_projects/domains/GCDomain/servers/BIP/logs/
BI Publisher Log : /u01/app/oracle/Product/gc_inst/user_projects/domains/GCDomain/servers/BIP/logs/bipublisher/bipublisher.log

Stop OEM agent

[oracle@oemnode1 ~]$ emctl stop agent

Start OEM agent

[oracle@oemnode1 ~]$ emctl start agent

Check status of OEM agent

[oracle@oemnode1 ~]$ emctl status agent

How to Relink 12c Oracle GI / RAC Binaries after OS Upgrade

It is recommended to relink GI and RAC Home binaries after OS upgrading or patching.

This post demonstrates how to relink Oracle Grid Infrastructure ( GI ) and RAC Home binaries after OS upgrading or patching.

Subscribe to get access

Read more of this content when you subscribe today.

How to Deinstall OEM Agent from Oracle Enterprise Manager 12C

There are a couple of ways to deinstall an OEM agent: from OEM Console, in silent mode, by running runInstaller, by running AgentDeinstall.pl, etc.

This post shows different kind of ways available for uninstalling an Oracle 12c EM agent.

Before starting to uninstall an agent, stop OEM agent first.

   $ emctl stop agent

Decommission the agent from OEM Console

a) Go to OEM agent home –> Target Setup –> Agent Decommission

Capture1

b) Confirm the agent decommission.

uninstall_2

c) It will delete all the related targets monitored by this agent. This will save lots of time and energy compared to the old way, in which we have to manually delete every monitored target one by one.

d) Confirm the agent target will be deleted, plus all the targets monitored by this agent.

uninstall_4

e) Agent is decommissioned. All the targets monitored by this agent are deleted from OEM as well.

uninstall_5

De-install the agent in Silent Mode

$export AGENT_HOME=/u01/app/oracle/product/agent12g/core/12.1.0.5.0

$ cat inventory.xml
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2015, Oracle and/or its affiliates.
All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
 <SAVED_WITH>11.1.0.13.0</SAVED_WITH>
 <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="OraGI12Home1" LOC="/u01/app/12.1.0.2/grid" TYPE="O" IDX="1" CRS="true">
 <NODE_LIST>
 <NODE NAME="racnode1"/>
 <NODE NAME="racnode2"/>
 </NODE_LIST>
</HOME>
<HOME NAME="OraDb11g_home1" LOC="/u01/app/oracle/product/11.2.0/dbhome_1" TYPE="O" IDX="2">
 <NODE_LIST>
 <NODE NAME="racnode1"/>
 <NODE NAME="racnode2"/>
 </NODE_LIST>
</HOME>
<HOME NAME="agent12c1" LOC="/u01/app/oracle/product/agent12g/core/12.1.0.5.0" TYPE="O" IDX="3">
 <REFHOMELIST>
 <REFHOME LOC="/u01/app/oracle/product/agent12g/sbin"/>
 <REFHOME LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.xa.discovery.plugin_12.1.0.6.0"/>
 <REFHOME LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.db.discovery.plugin_12.1.0.8.0"/>
 <REFHOME LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.emas.discovery.plugin_12.1.0.8.0"/>
 <REFHOME LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.oh.discovery.plugin_12.1.0.5.0"/>
 <REFHOME LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.oh.agent.plugin_12.1.0.5.0"/>
 </REFHOMELIST>
</HOME>
<HOME NAME="sbin12c1" LOC="/u01/app/oracle/product/agent12g/sbin" TYPE="O" IDX="4">
 <DEPHOMELIST>
 <DEPHOME LOC="/u01/app/oracle/product/agent12g/core/12.1.0.5.0"/>
 </DEPHOMELIST>
</HOME>
<HOME NAME="OraHome1" LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.xa.discovery.plugin_12.1.0.6.0" TYPE="O" IDX="5">
 <DEPHOMELIST>
 <DEPHOME LOC="/u01/app/oracle/product/agent12g/core/12.1.0.5.0"/>
 </DEPHOMELIST>
</HOME>
<HOME NAME="OraHome2" LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.db.discovery.plugin_12.1.0.8.0" TYPE="O" IDX="6">
 <DEPHOMELIST>
 <DEPHOME LOC="/u01/app/oracle/product/agent12g/core/12.1.0.5.0"/>
 </DEPHOMELIST>
</HOME>
<HOME NAME="OraHome3" LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.emas.discovery.plugin_12.1.0.8.0" TYPE="O" IDX="7">
 <DEPHOMELIST>
 <DEPHOME LOC="/u01/app/oracle/product/agent12g/core/12.1.0.5.0"/>
 </DEPHOMELIST>
</HOME>
<HOME NAME="OraHome4" LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.oh.discovery.plugin_12.1.0.5.0" TYPE="O" IDX="8">
 <DEPHOMELIST>
 <DEPHOME LOC="/u01/app/oracle/product/agent12g/core/12.1.0.5.0"/>
 </DEPHOMELIST>
</HOME>
<HOME NAME="OraHome5" LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.oh.agent.plugin_12.1.0.5.0" TYPE="O" IDX="9">
 <DEPHOMELIST>
 <DEPHOME LOC="/u01/app/oracle/product/agent12g/core/12.1.0.5.0"/>
 </DEPHOMELIST>
</HOME>
</HOME_LIST>
<COMPOSITEHOME_LIST>
</COMPOSITEHOME_LIST>
</INVENTORY>

a) Deinstall the plug-in homes.

$AGENT_HOME/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={/u01/app/oracle/product/agent12g/plugins/oracle.sysman.xa.discovery.plugin_12.1.0.6.0}" -invPtrLoc /etc/oraInst.loc
$AGENT_HOME/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={/u01/app/oracle/product/agent12g/plugins/oracle.sysman.db.discovery.plugin_12.1.0.8.0}" -invPtrLoc /etc/oraInst.loc
$AGENT_HOME/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={/u01/app/oracle/product/agent12g/plugins/oracle.sysman.emas.discovery.plugin_12.1.0.8.0}" -invPtrLoc /etc/oraInst.loc
$AGENT_HOME/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={/u01/app/oracle/product/agent12g/plugins/oracle.sysman.oh.discovery.plugin_12.1.0.5.0}" -invPtrLoc /etc/oraInst.loc
$AGENT_HOME/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={/u01/app/oracle/product/agent12g/plugins/oracle.sysman.oh.agent.plugin_12.1.0.5.0}" -invPtrLoc /etc/oraInst.loc

b) Deinstall the sbin home.

$AGENT_HOME/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={/u01/app/oracle/product/agent12g/sbin}" -invPtrLoc /etc/oraInst.loc

c) Deinstall the Management Agent.

$AGENT_HOME/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={/u01/app/oracle/product/agent12g/core/12.1.0.5.0}" -invPtrLoc /etc/oraInst.loc
$cat inventory.xml
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2015, Oracle and/or its affiliates.
All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
 <SAVED_WITH>11.1.0.13.0</SAVED_WITH>
 <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="OraGI12Home1" LOC="/u01/app/12.1.0.2/grid" TYPE="O" IDX="1" CRS="true">
 <NODE_LIST>
 <NODE NAME="racnode1"/>
 <NODE NAME="racnode2"/>
 </NODE_LIST>
</HOME>
<HOME NAME="OraDb11g_home1" LOC="/u01/app/oracle/product/11.2.0/dbhome_1" TYPE="O" IDX="2">
 <NODE_LIST>
 <NODE NAME="racnode1"/>
 <NODE NAME="racnode2"/>
 </NODE_LIST>
</HOME>
</HOME_LIST>
<COMPOSITEHOME_LIST>
</COMPOSITEHOME_LIST>
</INVENTORY>

d) Delete the binaries.

$cd /u01/app/oracle/product/agent12g
$ pwd
/u01/app/oracle/product/agent12g
$ rm -fr *

De-install the agent from server with GUI interface

a) start runInstaller from AGENT_HOME :

 $ /u01/app/oracle/product/agent12g/core/12.1.0.5.0/oui/bin/runInstaller -deinstall ORACLE_HOME=/u01/app/oracle/product/agent12g/core/12.1.0.5.0 -removeallfiles

b) Choose one of six plug-in HOMEs and remove them one by one.

<HOME NAME="OraHome1" LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.xa.discovery.plugin_12.1.0.6.0" TYPE="O" IDX="4">
 <DEPHOMELIST>
 <DEPHOME LOC="/u01/app/oracle/product/agent12g/core/12.1.0.5.0"/>
 </DEPHOMELIST>
</HOME>
<HOME NAME="OraHome2" LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.db.discovery.plugin_12.1.0.8.0" TYPE="O" IDX="5">
 <DEPHOMELIST>
 <DEPHOME LOC="/u01/app/oracle/product/agent12g/core/12.1.0.5.0"/>
 </DEPHOMELIST>
</HOME>
<HOME NAME="OraHome3" LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.emas.discovery.plugin_12.1.0.8.0" TYPE="O" IDX="6">
 <DEPHOMELIST>
 <DEPHOME LOC="/u01/app/oracle/product/agent12g/core/12.1.0.5.0"/>
 </DEPHOMELIST>
</HOME>
<HOME NAME="OraHome4" LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.oh.discovery.plugin_12.1.0.5.0" TYPE="O" IDX="7">
 <DEPHOMELIST>
 <DEPHOME LOC="/u01/app/oracle/product/agent12g/core/12.1.0.5.0"/>
 </DEPHOMELIST>
</HOME>
<HOME NAME="OraHome5" LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.oh.agent.plugin_12.1.0.5.0" TYPE="O" IDX="8">
 <DEPHOMELIST>
 <DEPHOME LOC="/u01/app/oracle/product/agent12g/core/12.1.0.5.0"/>
 </DEPHOMELIST>
</HOME>
<HOME NAME="OraHome6" LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.db.agent.plugin_12.1.0.8.0" TYPE="O" IDX="10">
 <DEPHOMELIST>
 <DEPHOME LOC="/u01/app/oracle/product/agent12g/core/12.1.0.5.0"/>
 </DEPHOMELIST>
</HOME>
uninstall_8

c) Choose sbin HOME, and remove this HOME.

<HOME NAME=”sbin12c1” LOC=”/u01/app/oracle/product/agent12g/sbin” TYPE=”O” IDX=”3″ >

uninstall_7

d) The last is to choose agent12c HOME and remove it accordingly.

uninstall_10

If plug-ins or sbin HOME has not been removed before removing agent12c HOME, the below WARNING will be received.

uninstall_9

e) Remove the contents left under <AGENT_HOME> folder, like :

$ rm -fr /u01/app/oracle/product/agent12g

f) Check oraInventory to confirm the agent has been de-installed successfully.

uninstall_11
$ cat inventory.xml

....
....
...
<HOME NAME="sbin12c1" LOC="/u01/app/oracle/product/agent12g/sbin" TYPE="O" IDX="3" REMOVED="T"/>
<HOME NAME="OraHome1" LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.xa.discovery.plugin_12.1.0.6.0" TYPE="O" IDX="4" REMOVED="T"/>
<HOME NAME="OraHome2" LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.db.discovery.plugin_12.1.0.8.0" TYPE="O" IDX="5" REMOVED="T"/>
<HOME NAME="OraHome3" LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.emas.discovery.plugin_12.1.0.8.0" TYPE="O" IDX="6" REMOVED="T"/>
<HOME NAME="OraHome4" LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.oh.discovery.plugin_12.1.0.5.0" TYPE="O" IDX="7" REMOVED="T"/>
<HOME NAME="OraHome5" LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.oh.agent.plugin_12.1.0.5.0" TYPE="O" IDX="8" REMOVED="T"/>
<HOME NAME="OraHome6" LOC="/u01/app/oracle/product/agent12g/plugins/oracle.sysman.db.agent.plugin_12.1.0.8.0" TYPE="O" IDX="10" REMOVED="T"/>
<HOME NAME="agent12c1" LOC="/u01/app/oracle/product/agent12g/core/12.1.0.5.0" TYPE="O" IDX="2" REMOVED="T"/>
...
...
...

Deinstall the agent in Silent Mode Using AgentDeinstall.pl Script

$AGENT_HOME/perl/bin/perl <AGENT_HOME>/sysman/install/AgentDeinstall.pl -agentHome  $AGENT_HOME

-- Remove binaries

$cd /u01/app/oracle/product/agent12g
$ rm -fr *

Delete OEM agent auto-start scripts

#cd  /etc/rc.d/  
#rm gcstartup unlockgcstartup lockgcstartup