When deleting agent in 12C grid Console an error appering like that "Unknown error. java.sql.SQLException: ORA-20242: Target myhost.mydomain.com:3875:oracle_emd is monitoring other targets. It cannot be deleted
ORA-06512: at "SYSMAN.MGMT_ADMIN", line 484
ORA-06512: at "SYSMAN.MGMT_ADMIN", line 876
ORA-06512: at line 1"
You need clean manually target host from 12C Enterprise Manager.
cd $OMS_HOME/bin
[oracle@myhost bin]$ ./emcli login -username=sysman -password=<sysman password >
[oracle@myhost bin]$ ./emcli get_targets
[oracle@myhost bin]$ ./emcli sync
[oracle@myhost bin]$ ./emcli delete_target -name=<Target IP> -type="host"
Target "xx.xx.xx.xx:host" deleted successfully
[oracle@myhost bin]$ ./emcli delete_target -name=<Target IP>:3875 -type="oracle_emd"
Target "<Target IP>:3875:oracle_emd" deleted successfully
After deleting target host , you can configure this agent again ..
0 yorum:
Yorum Gönder