WELCOME!
What is Pinoy? It's a slang for Filipino, a person who comes from the Republic of the Philippines, or commonly known as the Philippine Islands (PI). I am a Filipino and works as an Oracle DBA in the United States. Whenever an issue arises or just for experiments, I usually forget what I did to solve/conduct them. There must be a central location where I can put everything. Thus, this blog was born. It's a collection of ideas, tips and tricks, scripts, or anything interesting that happened to me on an Oracle database or any other stuff.
The simpler, the better! has always been my motto. You don't have to complicate things. Simple things, for me, is always easier, just like my site.
FYI, anything that is written here is based on my personal experiences and is not endorsed by any other party. Also, I will not be held liable for issues that can arise by following whatever I did. Just like any other good DBA would say... ALWAYS TEST!
Hope you can find this site helpful in whatever you need and remember, I am not a guru.Apr 27, 2011
Oracle: Removing targets from Grid Control
Before deleting it, I have to stop the management agent on the target database
% <AGENT_HOME>/bin/emctl stop agent
Then, I logged into the repository as sysdba to run the following query:
SQL> select target_name from mgmt_targets where target_type = 'oracle_emd';
This showed me all the registered agents (oracle_emd). Other target_types are hosts, oracle_database, etc. Run a distinct on target_type to see the full list.
After I've identified what agent should be deleted, I ran the following procedure:
SQL> exec mgmt_admin.cleanup_agent('dsdevdb02-tol-oracle:1830');
Went back to grid control, refreshed that targets page and it was indeed deleted.
No comments:
Post a Comment