My Oracle Support Banner

EM13C: Fleet Emcli Command To List Of Oracle homes That Can Be Deleted Even Outside Lineage (Doc ID 2992673.1)

Last updated on FEBRUARY 01, 2024

Applies to:

Enterprise Manager for Oracle Database - Version 13.5.1.1.0 and later
Information in this document applies to any platform.

Symptoms

In Enterprise Manager (EM) Cloud Control, Oracle home has been discovered in OEM either using fleet or outside of fleet. We can use the below emcli command to list oracle homes that are provisioned outside of fleet.

Command:

$ emcli db_software_maintenance -performOperation -name="cleanup" -purpose="CLEANUP_SOFTWARE" -reportOnly="true" -filter="target_type:host"

$ emcli db_software_maintenance -performOperation -name="cleanup" -purpose="CLEANUP_SOFTWARE" -target_type="oracle_database" -reportOnly="true"
   -target_list="trgt1,targt2"

$ emcli db_software_maintenance -performOperation -name="cleanup" -purpose="CLEANUP_SOFTWARE" -reportOnly="true" -filter="target_type:host#target_list:host1,host2"

$ emcli db_software_maintenance -performOperation -name="cleanup" -purpose="CLEANUP_SOFTWARE" -reportOnly="true"
  -filter="target_type:cluster#target_list:cluster1,cluster2"

Sample:

$ emcli db_software_maintenance -performOperation -name="cleanup" -purpose="CLEANUP_SOFTWARE" -reportOnly="true" -filter="target_type:host"
The following Oracle homes which do not have any instances associated are eligible for cleanup

================================================================================================================================================================
TARGETID ORACLE HOME TARGET ORACLE HOME LOCATION ORACLE HOME TYPE RELEASE HOST CLUSTER
=========================================================================================================================================
Total Rows: 0

Verb performOperation completed successfully
[oracle@oms bin]$

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.