EM 12c: Promoting a Target in Cloud Control 12.1.0.1 fails with the error Oracle.sysman.emSDK.core.target.DuplicateEntityException

(Doc ID 1456454.1)

Last updated on JULY 01, 2017

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.1.0 to 12.1.0.1.0 [Release 12.1]
Information in this document applies to any platform.
Checked for relevance on 03-Jun-2014

Symptoms

You are trying to re-discover a recently removed/re-added target.

After a successfull discovery, you try to promote the target but this fails with this error message on the console:

oracle.sysman.emSDK.core.target.DuplicateEntityException:

ORA-20500: myhost.com:oracle_database:myhost.com:https://myhost.com:3872/emd/main/:2:0

ORA-06512: at "SYSMAN.EM_TARGET", line 3559

ORA-06512: at line 1 - ORA-20500:myhost.com:oracle_database:myhost.com:https://mydomain.com:3872/emd/main/:2:0

ORA-06512: at "SYSMAN.EM_TARGET", line 3559 ORA-06512: at line 1

Changes

You recently removed then re-discovered the host.

Or

You renamed a target from A to B and tried to add A as a target name.

Or

The target exists in auto-discovery results

OrĀ 

The target was discovered, but then discovery was cancelled (for example, with the intention to save as a different name)

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms