we had to restore and recover a database using a rman. The procedure of recovering it worked ok, but after that OEM 12 (22.214.171.124.0) reports and incident that says:
Metric collection error: "Target operation is unavailable: Cleanup of previous target with the same name (oracle_database.PNETPRE_m4desa) is in progress"
Is it posible to clear this incident?
Thanks in advance,
You can try the following
Use the below query to check status of the target delete
select * from mgmt_targets_delete
where delete_complete_time is null;
You can use the following to force the delete of the database targets
That table is empty ... could it be a bug?
$ sqlplus / as sysdba
SQL*Plus: Release 126.96.36.199.0 Production on Fri Aug 23 17:08:19 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Oracle Database 11g Enterprise Edition Release 188.8.131.52.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select * from sysman.mgmt_targets_delete;
no rows selected
There are 8 targets, all working ok (except this one).
(grid)@():/home/grid:>/grid_agent/OracleHomes/agent12c/core/184.108.40.206.0/bin/emctl clearstate agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
EMD clearstate completed successfully
I even tried to resync/resecure/stop-start the agent without sucess.