Home > Blogroll, OEM > How To Add The Domain Name Of The Host To Name Of The Agent

How To Add The Domain Name Of The Host To Name Of The Agent

November 9th, 2006

I have been looking for this note for ages : Metalink note 295949.1

Now I know how to rename my targets in Grid Control! the trick is to stop the agent
AH/emctl stop agent
to remove the upload and state files/subdirectories


cd AH/sysman/emd
find state upload recv agntstmp.txt lastupld.xml protocol.ini -type f -exec rm {} ;
rm -r state/*

to remove the agent in the grid

col TARGET_TYPE for a17
col TARGET_NAME for a60
set lin 100 pages 0 emb on newp none head on autop on
select TARGET_TYPE,TARGET_NAME
from MGMT$TARGET
where TARGET_TYPE='oracle_emd'
order by TARGET_NAME;
var target_name varchar2(40)
prompt Enter the target_name to delete
exec :target_name:='&TARGET_NAME';if (:target_name is not null) then mgmt_admin.cleanup_agent(:target_name); end if

to edit the targets.xml
vi AG/sysman/emd/targets.xml ### Get the source of the traditional vi
to rename your targets (listener, host, db),

        

and restart your agent
AH/emctl start agent
hth

Bookmark and Share

  1. November 9th, 2006 at 18:18 | #1

    That’s cool indeed. Thanks.

  2. November 12th, 2006 at 23:42 | #2

    Great tip on a common problem!

  1. February 3rd, 2009 at 23:00 | #1