TO remove the target from OEM

OEM Server:

cd $OMS_HOME/bin

./emcli login -username=sysman

./emcli sync

[oracle@dbtools bin]$ emcli get_targets |grep Down

Status  Status           Target Type           Target Name
————————————————————————-
0       Down             oracle_database       test.doyensys.com



Command:emcli delete_target -name=”Target Name” -type=”Target Type”
————————————————————————————————

./emcli delete_target -name=”test.doyensys.com” -type=”oracle_database”


Query
=====

SQL> select TARGET_NAME,TARGET_TYPE,PROPERTY_VALUE,PROPERTY_NAME  from mgmt$target_properties where target_name = ‘&1’;

Enter value for 1: test.pasa.pas.local
old   1: select TARGET_NAME,TARGET_TYPE,PROPERTY_VALUE,PROPERTY_NAME  from mgmt$target_properties where target_name = ‘&1’
new   1: select TARGET_NAME,TARGET_TYPE,PROPERTY_VALUE,PROPERTY_NAME  from mgmt$target_properties where target_name = ‘test.doyensys.com’

no rows selected

  • August 29, 2017 | 19 views
  • Comments