Mir Sayeed Hassan – Oracle Blog

Oracle DBA – Tips & Techniques | Learn with real-time examples

  • Translate

  • It’s Me






  • My Certificates

  • Links

    My Acclaim Certification : Credly Profile
    My Oracle ACE Pro Profile

  • Achievements

    Awarded Top 100 Oracle Blogs from Worldwide - #RANK 39
  • VISITORS COUNT

  • Verified International Academic Qualification from World Education Service (WES)

    Verified International Academic Qualification from World Education Service (WES)

  • Jobs

How to delete an agent from OEM 12C/13C in Oracle Database 11gR2

Posted by Mir Sayeed Hassan on June 20th, 2020

How to delete an agent from OEM 12C/13C in Oracle Database 11gR2

Stop the agent on the target database

[oracle@oem bin]$ cd /u01/app/OEM/agent_inst/bin/

[oracle@oem bin]$]$ ./emctl stop agent

Login to the OEM 1C/13C Database & goto the OMS Default location

Goto OMS location:

[oracle@oem bin]$ cd /oradata/oem12c/middleware/oms/bin

Login to the OMS with sysman user

[oracle@oem bin]$ ./emcli login -username=sysman
Enter password : ********

Login successful

Check the status of OMS

[oracle@oem bin]$ ./emcli status oms

Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
WebTier is Up
Oracle Management Server is Up

Select the target database & assign the IP & Port to delete as shown below

My target Database to delete the agent: 10.234.23.1

Port Used: 3872

Delete the selected agent from OMS Location

[oracle@oem bin]$ ./emcli delete_target -name="10.234.23.1: 3872" -type="oracle_emd" -delete_monitored_targets
Target "10.234.23.1:3872:oracle_emd" deleted successfully

Therefore the agent is deleted successfully & all its monitoring targets from the repository of the OEM Database.

=====Hence tested & Verified in our test env====