My Oracle Support Banner

Fleet: Emcli "subscribeTarget/unsubscribeTarget" Should Not Be Allowed For Individual Instances InCase Of "rac_database" (Doc ID 2687692.1)

Last updated on AUGUST 26, 2020

Applies to:

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

Symptoms

In Enterprise Manager (EM) Cloud Control, while performing subscribeTarget/unsubscribeTarget should not be allowed for individual database instances in case of rac_database

Command:

$ emcli db_software_maintenance -subscribeTarget -target_name="<SOURCE TARGET DB NAME>" -target_type="oracle_pdb" -image_id=992BEC00A34C3AD0E053D970400AF70E
Target '<SOURCE TARGET DB NAME>' subscribed successfully.
Verb subscribeTarget completed successfully

$ emcli db_software_maintenance -getTargetSubscriptions -target_name="<SOURCE TARGET DB NAME>" -target_type="oracle_pdb"

==================================================================================
TARGET NAME TARGET TYPE IMAGE ID IMAGE NAME
==================================================================================
<SOURCE TARGET DB NAME> oracle_pdb 992BEC00A34C3AD0E053D970400AF7 12cOJVMDGTEST

----------------------------------------------------------------------------------
Verb getTargetSubscriptions completed successfully
[oracle@oms bin]$

Note: In the above output the individual instances in rac database are getting subscribed.

Command:

$ emcli db_software_maintenance -unsubscribeTarget -target_name="<SOURCE TARGET DB NAME>" -target_type="rac_database" -image_id=947B0A24F2C72335E053D970400A0904
Target '<SOURCE TARGET DB NAME>' unsubscribed successfully.
Verb unsubscribeTarget completed successfully

$ emcli db_software_maintenance -getTargetSubscriptions -target_name="<SOURCE TARGET DB NAME>" -target_type="rac_database"
No subscriptions were found for the given target
Verb getTargetSubscriptions completed successfully

$ emcli db_software_maintenance -getTargetSubscriptions -target_name="<SOURCE TARGET DB NAME>" -target_type="oracle_database"
==============================================================================
TARGET NAME TARGET TYPE IMAGE ID IMAGE NAME
==============================================================================

<SOURCE TARGET DB NAME> oracle_database 947B0A24F2C72335E053D970400A09 RACDB_12c
------------------------------------------------------------------------------
Total Rows: 1
Verb getTargetSubscriptions completed successfully
[oracle@oms bin]$

Note: unsubscribing the rac_database is not removing the instances.

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
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.