Monday 29 September 2008

OEM Agent - Cleaning out

On the Repos Server

SELECT target_name
FROM sysman.MGMT_TARGETS
where 1=1
and target_type = 'oracle_emd'
and target_name like '%mis%'
order by 1

commit

execute sysman.mgmt_admin.cleanup_agent('target_name:port>');

If this hangs then kill it and run ...

update sysman.MGMT_TARGETS_DELETE set delete_complete_time = sysdate
where target_name like '%slofosdb01.odl.com:3872%'

On the Agent Machine
  • rm - rf $OracleHome/sysman/emd/upload
  • rm -rf $OracleHome/sysman/emd/recv
  • rm -rf $OracleHome/sysman/emd/state
  • Resecure the connection - emctl secure agent
  • Restart the agent - emctl start agent
  • Upload info - emctl upload

0 comments: