<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>remidian.com &#187; Grid</title>
	<atom:link href="http://remidian.com/category/oracle/grid/feed" rel="self" type="application/rss+xml" />
	<link>http://remidian.com</link>
	<description>Braindumps of Remi Visser, freelance Oracle DBA.</description>
	<lastBuildDate>Mon, 10 May 2010 12:33:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Purging SYSAUX tablespace (Purging AWR reports)</title>
		<link>http://remidian.com/oracle/purging-sysaux-tablespace-purging-awr-reports.html</link>
		<comments>http://remidian.com/oracle/purging-sysaux-tablespace-purging-awr-reports.html#comments</comments>
		<pubDate>Tue, 18 Aug 2009 10:52:10 +0000</pubDate>
		<dc:creator>remivisser</dc:creator>
				<category><![CDATA[Grid]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://remidian.com/?p=265</guid>
		<description><![CDATA[Dump below is of a session clearing the sysaux tablespace. It turned out that something went wrong with the automatic AWR gathering/purging and the sysaux tablespace became very large. Thanks to this blog I found script below wich displays the various sysaux components and their sizes. SQL&#62; col &#34;Space (M)&#34; for 999,999.99&#160;&#160; SQL&#62; SQL&#62; SELECT [...]]]></description>
			<content:encoded><![CDATA[<p>
Dump below is of a session clearing the sysaux tablespace. <span id="more-265"></span>It turned out that something went wrong with the automatic AWR gathering/purging and the sysaux tablespace became very large.
</p>
<p>
Thanks to <a href="http://jhdba.wordpress.com/2009/05/19/purging-statistics-from-the-sysaux-tablespace/">this blog</a> I found script below wich displays the various sysaux components and their sizes.
</p>
<pre>
SQL&gt; col &quot;Space (M)&quot; for 999,999.99&nbsp;&nbsp;
SQL&gt; 
SQL&gt; SELECT 
&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;occupant_name,&nbsp;&nbsp;
&nbsp;&nbsp;3&nbsp;&nbsp;&nbsp;&nbsp;round( space_usage_kbytes/1024) &quot;Space (M)&quot;,&nbsp;&nbsp;
&nbsp;&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;schema_name, 
&nbsp;&nbsp;5&nbsp;&nbsp;&nbsp;&nbsp;move_procedure
&nbsp;&nbsp;6&nbsp;&nbsp;FROM 
&nbsp;&nbsp;7&nbsp;&nbsp;&nbsp;&nbsp;v$sysaux_occupants&nbsp;&nbsp;
&nbsp;&nbsp;8&nbsp;&nbsp;ORDER BY 
&nbsp;&nbsp;9&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;
 10&nbsp;&nbsp;/
OCCUPANT_NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Space (M) SCHEMA_NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MOVE_PROCEDURE
&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;&#45;-- &#45;&#45;-&#45;&#45;-&#45;&#45;&#45;-- &#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;&#45;-- &#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;&#45;-
AO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DBMS_AMD.Move_OLAP_Catalog
XSOQHIST&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.00 SYS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DBMS_XSOQ.OlapiMoveProc
&nbsp;
22 rows selected.
&nbsp;
SQL&gt;&nbsp;&nbsp; 
SQL&gt; 
</pre>
<p>
Next thing I retrieve the oldest and latest AWR snapshot, turns out to be 2007&#8230;
</p>
<pre>
SQL&gt; SELECT 
&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;snap_id, begin_interval_time, end_interval_time 
&nbsp;&nbsp;3&nbsp;&nbsp;FROM 
&nbsp;&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;SYS.WRM$_SNAPSHOT 
&nbsp;&nbsp;5&nbsp;&nbsp;WHERE 
&nbsp;&nbsp;6&nbsp;&nbsp;&nbsp;&nbsp;snap_id = ( SELECT MIN (snap_id) FROM SYS.WRM$_SNAPSHOT)
&nbsp;&nbsp;7&nbsp;&nbsp;UNION 
&nbsp;&nbsp;8&nbsp;&nbsp;SELECT 
&nbsp;&nbsp;9&nbsp;&nbsp;&nbsp;&nbsp;snap_id, begin_interval_time, end_interval_time 
 10&nbsp;&nbsp;FROM 
 11&nbsp;&nbsp;&nbsp;&nbsp;SYS.WRM$_SNAPSHOT 
 12&nbsp;&nbsp;WHERE 
 13&nbsp;&nbsp;&nbsp;&nbsp;snap_id = ( SELECT MAX (snap_id) FROM SYS.WRM$_SNAPSHOT)
 14&nbsp;&nbsp;/
&nbsp;&nbsp; SNAP_ID BEGIN_INTERVAL_TIME&nbsp;&nbsp; END_INTERVAL_TIME
&#45;&#45;-&#45;&#45;-&#45;&#45;&#45;- &#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;- &#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7556 <strong>15-09-07 08:44:42,810</strong> 15-09-07 11:01:11,950
&nbsp;&nbsp;&nbsp;&nbsp; 23698 18-08-09 11:00:41,612 18-08-09 12:00:53,074
&nbsp;
</pre>
<p>
<em><br />
I prefer SYS.WRM$_SNAPSHOT instead of DBA_HIST_SNAPSHOT because I saw strange results in (Release 10.1.0.5).<br />
</em><br />
Now use the dbms_workload_repository package to remove the AWR snapshots.
</p>
<pre>
BEGIN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;dbms_workload_repository.drop_snapshot_range(low_snap_id =&gt; 7556, high_snap_id=&gt;15000);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
END;
/
</pre>
<h3>Speed up &#8216;removal&#8217; of old AWR reports</h3>
<p>
@#$%^&#038;*()_ removing the entries takes ages and fails on undo errors &#8230; Metalink note Doc ID: 852028.1 states that I can safely remove the AWR metadata tables and recreate them.
</p>
<blockquote><p>
If none of the above suits as everything is set proper then consider clean up and rebuild AWR repository to clear all the space.
</p></blockquote>
<pre>
SQL&gt; connect / as sysdba 
SQL&gt; @?/rdbms/admin/catnoawr.sql 
SQL&gt; @?/rdbms/admin/catawrtb.sql 
</pre>
]]></content:encoded>
			<wfw:commentRss>http://remidian.com/oracle/purging-sysaux-tablespace-purging-awr-reports.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Manually triggering Metric Collection (clearing -tablespace- Alerts)</title>
		<link>http://remidian.com/oracle/grid/manually-triggering-metric-collection-clearing-alerts.html</link>
		<comments>http://remidian.com/oracle/grid/manually-triggering-metric-collection-clearing-alerts.html#comments</comments>
		<pubDate>Tue, 19 Feb 2008 09:28:50 +0000</pubDate>
		<dc:creator>remivisser</dc:creator>
				<category><![CDATA[Grid]]></category>

		<guid isPermaLink="false">http://remidian.com/oracle/grid/manually-triggering-metric-collection-clearing-alerts.html</guid>
		<description><![CDATA[Manually triggering metric collection in Oracle Enterprise Manager (GRID control) Here&#8217;s the scenario: You have an Alert that your tablespace is &#8216;full&#8217;, You enlarge the tablespace, The &#8216;Tablespace Full Alert&#8217; is still in your dashbord for the next 24 (x) hours since you&#8217;ve configured this metric to be collected once every 24 (x) hours, You [...]]]></description>
			<content:encoded><![CDATA[<p>Manually triggering metric collection in Oracle Enterprise Manager (GRID control)</p>
<p><span id="more-72"></span></p>
<p>
Here&#8217;s the scenario:
</p>
<ol>
<li>You have an Alert that your tablespace is &#8216;full&#8217;,</li>
<li>You enlarge the tablespace,</li>
<li>The &#8216;Tablespace Full Alert&#8217; is still in your dashbord for the next 24 (x) hours since you&#8217;ve configured this metric to be collected once every 24 (x) hours,</li>
<li>You <strong>want</strong> however to &#8216;remove&#8217; (clear) this Alert. In order to achive this you will have to to re-evaluate this metric collection &#8230;</li>
</ol>
<p>
Here is how you do it (for anything storage related on your database server):
</p>
<pre>
$ emctl control agent runCollection &lt;hostname&gt;:host host_storage
</pre>
<p>
See the Oracle docs, <a href="http://download.oracle.com/docs/cd/B19306_01/em.102/b40002/emctl.htm#sthref202<br />
">2.7.6 Reevaluating Metric Collections</a>. It shows you how to retrieve the correct <em>collection</em> name for any <em>metric</em>.
</p>
<p>
You will find yourself <code>grep</code>-ing through &#8216;$ORACLE_HOME/sysman/admin/metadata/*xml&#8217; and &#8216;$ORACLE_HOME/sysman/admin/default_collection/*xml&#8217; &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://remidian.com/oracle/grid/manually-triggering-metric-collection-clearing-alerts.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increase idle time for OMS frontend sessions</title>
		<link>http://remidian.com/oracle/grid/increase-idle-time-for-oms-frontend-and-some-more-configuration-directives.html</link>
		<comments>http://remidian.com/oracle/grid/increase-idle-time-for-oms-frontend-and-some-more-configuration-directives.html#comments</comments>
		<pubDate>Mon, 28 Jan 2008 11:43:01 +0000</pubDate>
		<dc:creator>remivisser</dc:creator>
				<category><![CDATA[Grid]]></category>

		<guid isPermaLink="false">http://remidian.com/oracle/grid/increase-idle-time-for-oms-frontend-and-some-more-configuration-directives.html</guid>
		<description><![CDATA[Some additional configuration directives. To increase the idle time for the OMS frontend sessions edit the &#8216;oracle.sysman.eml.maxInactiveTime&#8217; configuration parameter your Oracle Management Server&#8217;s emoms.properties file. The parameter value unit is in minutes and the default is 15 minutes which is a bit short I suppose. I have set it to 4 hours as you can [...]]]></description>
			<content:encoded><![CDATA[<p>Some additional configuration directives.<span id="more-70"></span></p>
<p>
To increase the idle time for the OMS frontend sessions edit the &#8216;oracle.sysman.eml.maxInactiveTime&#8217; configuration parameter your Oracle Management Server&#8217;s emoms.properties file. The parameter value unit is in minutes and the default is 15 minutes which is a bit short I suppose. I have set it to 4 hours as you can see in the example below.
</p>
<pre>
$ cat $ORACLE_HOME/sysman/config/emoms.properties | grep maxInactiveTime
oracle.sysman.eml.maxInactiveTime=240
$
&nbsp;
</pre>
<p>
For more info see the &#8216;<a href="http://download.oracle.com/docs/cd/B19306_01/em.102/b40002/addnl_tasks.htm#sthref1347">Enterprise Manager Advanced Configuration</a>&#8216; book </p>
]]></content:encoded>
			<wfw:commentRss>http://remidian.com/oracle/grid/increase-idle-time-for-oms-frontend-and-some-more-configuration-directives.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Really delete (&#8216;corrupt&#8217;) Agent from OMS repository</title>
		<link>http://remidian.com/oracle/grid/agent-corruption-status-in-oms.html</link>
		<comments>http://remidian.com/oracle/grid/agent-corruption-status-in-oms.html#comments</comments>
		<pubDate>Thu, 17 Jan 2008 13:42:05 +0000</pubDate>
		<dc:creator>remivisser</dc:creator>
				<category><![CDATA[Grid]]></category>

		<guid isPermaLink="false">http://remidian.com/oracle/grid/agent-corruption-status-in-oms.html</guid>
		<description><![CDATA[Here&#8217;s how to overcome ORA-20206 in Oracle GRID environment, agent status unclear&#8230; Scenario Removed (Windows) Agent from Grid. (With SQL Server Management plugin) Tried to restart this SAME agent, errors below occur. # $ORACLE_HOME/sysman/log/emagent.log contains &#160; 2008-01-17 14:13:52 Thread-4032 EMAgent started successfully (00702) 2008-01-17 14:14:21 Thread-2720 &#60;Upload Manager&#62; Unsuccessful Upload attempts for XML file exceeds [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how to overcome ORA-20206 in Oracle GRID environment, agent status unclear&#8230;<span id="more-67"></span></p>
<h3>
Scenario<br />
</h3>
<ul>
<li>Removed (Windows) Agent from Grid. (With SQL Server Management plugin)</li>
<li>Tried to restart this SAME agent, errors below occur.</li>
</ul>
<pre>
# $ORACLE_HOME/sysman/log/emagent.log contains
&nbsp;
2008-01-17 14:13:52 Thread-4032 EMAgent started successfully (00702)
2008-01-17 14:14:21 Thread-2720 &lt;Upload Manager&gt; Unsuccessful Upload attempts for XML file exceeds specified limit=3, 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Agent will shutdown (00851)
2008-01-17 14:14:21 Thread-4032 EMAgent abnormal terminating (00704)
</pre>
<pre>
# $ORACLE_HOME/sysman/log/emdctl.trc contains
&nbsp;
2008-01-17 14:13:32 Thread-752 WARN&nbsp;&nbsp;http: snmehl_connect: connect failed to (&lt;agent_hostname&gt;:3872): 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No connection could be made because the target machine actively refused it.
 (error = 10061)
2008-01-17 14:13:32 Thread-752 ERROR main: nmectla_agentctl: Error connecting to 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;https://&lt;agent_hostname&gt;:3872/emd/main/. Returning status code 1
2008-01-17 14:14:23 Thread-172 WARN&nbsp;&nbsp;http: snmehl_connect: connect failed to 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(&lt;agent_hostname&gt;:3872): 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No connection could be made because the target machine actively refused it. (error = 10061)
2008-01-17 14:14:23 Thread-172 ERROR main: nmectla_agentctl: Error connecting to 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;https://&lt;agent_hostname&gt;:3872/emd/main/. Returning status code 1
&nbsp;
</pre>
<pre>
# $ORACLE_HOME/sysman/log/emagent.trc contains
&nbsp;
2008-01-17 14:14:18 Thread-192 WARN&nbsp;&nbsp;TargetManager: Regenerating all Metadata
2008-01-17 14:14:18 Thread-192 DEBUG TargetManager: In getTypeAndNameForHostTarget
2008-01-17 14:14:18 Thread-192 DEBUG TargetManager: getTypeAndNameForHostTarget found host, &lt;agent_hostname&gt;
2008-01-17 14:14:18 Thread-192 DEBUG TargetManager: In getTypeAndNameForHostTarget
2008-01-17 14:14:18 Thread-192 DEBUG TargetManager: getTypeAndNameForHostTarget found host, &lt;agent_hostname&gt;
2008-01-17 14:14:18 Thread-192 WARN&nbsp;&nbsp;collector: Regenerating all DefaultColls
2008-01-17 14:14:18 Thread-192 ERROR upload: Failed to upload file A0000001.xml, ret = -6
2008-01-17 14:14:19 Thread-192 WARN&nbsp;&nbsp;upload: FxferSend: received fatal error in header from repository: 
&nbsp;
https://&lt;oms_hostname&gt;:1159/em/upload
&nbsp;
FATAL_ERROR::500|ORA-20206: Target does not exist:&nbsp;&nbsp;Agent does not exist for https://&lt;agent_hostname&gt;:3872/emd/main/
ORA-06512: at &quot;SYSMAN.EMD_LOADER&quot;, line 1795
ORA-06512: at line 1
&nbsp;
.
.
.
&nbsp;
2008-01-17 14:14:21 Thread-2720 ERROR upload: number of fatal error exceeds the limit 3
2008-01-17 14:14:21 Thread-2720 ERROR upload: agent will shutdown now
2008-01-17 14:14:21 Thread-2720 ERROR : Signalled to Exit with status 55
2008-01-17 14:14:21 Thread-4032 ERROR main: EMAgent abnormal terminating
</pre>
<h3>
&#8216;Solution&#8217;<br />
</h3>
<p>
The status of the Agent is unclear, first thing to do is check the SYSMAN.MGMT$TARGET table, if your agent shows up here try to remove it using th OMS frontend or use methods below.
</p>
<pre>
[IAWE239@PGRIDC03.AH.NL:AHC536]
SQL&gt; exec sysman.mgmt_admin.cleanup_agent(&#039;&lt;agent_hostname&gt;:3872&#039;)
BEGIN sysman.mgmt_admin.cleanup_agent(&#039;&lt;agent_hostname&gt;:3872&#039;); END;
&nbsp;
*
ERROR at line 1:
ORA-20206: Target does not exist: &lt;agent_hostname&gt;:3872
ORA-06512: at &quot;SYSMAN.MGMT_ADMIN&quot;, line 788
ORA-06512: at line 1
&nbsp;
[IAWE239@PGRIDC03.AH.NL:AHC536]
SQL&gt; exec sysman.mgmt_admin.delete_target_internal(&#039;&lt;agent_hostname&gt;:3872&#039;, &#039;oracle_emd&#039;);
BEGIN sysman.mgmt_admin.delete_target_internal(&#039;&lt;agent_hostname&gt;:3872&#039;, &#039;oracle_emd&#039;); END;
&nbsp;
*
ERROR at line 1:
ORA-20206:&nbsp;&nbsp;The target does not exist or may have already been deleted:&nbsp;&nbsp;Target name = &lt;agent_hostname&gt;:3872 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and Target type = oracle_emd
ORA-06512: at &quot;SYSMAN.MGMT_ADMIN&quot;, line 645
ORA-06512: at line 1
</pre>
<p>
Now check the records in SYSMAN.MGMT_TARGETS_DELETE
</p>
<pre>
[IAWE239-SYSMAN@PGRIDC03.AH.NL:AHC536]
SQL&gt; SELECT target_name, delete_complete_time, target_guid
&nbsp;&nbsp;2&nbsp;&nbsp;FROM sysman.mgmt_targets_delete
&nbsp;&nbsp;3&nbsp;&nbsp;WHERE target_type = &#039;oracle_emd&#039;;
&nbsp;
TARGET_NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DELETE_COM TARGET_GUID
&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;&#45;-- &#45;&#45;-&#45;&#45;-&#45;&#45;&#45;- &#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;&#45;--
&lt;agent_hostname&gt;:3872&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;17-01-2008 CACA6898BA9051954366482B01EBE9CB
&nbsp;
</pre>
<p>
Oooops, my agent should have been correcly removed&#8230;
</p>
<h3>Really, really, REALLY remove agent from OMS repository</h3>
<p>
Sick and tired of this I decided &#8216;solution&#8217; below: select/remove all recors with GUID of my Agent.
</p>
<pre>
DEFINE TARGET_GUID = &quot;CACA6898BA9051954366482B01EBE9CB&quot;
&nbsp;
SELECT&nbsp;&nbsp; &#039;SELECT COUNT(*) FROM &#039; || table_name || &#039; WHERE target_guid = HEXTORAW(&#039;&#039;&amp;TARGET_GUID&#039;&#039;);&#039;
&#45;- SELECT&nbsp;&nbsp; &#039;DELETE FROM &#039; || table_name || &#039; WHERE target_guid = HEXTORAW(&#039;&#039;&amp;TARGET_GUID&#039;&#039;);&#039;
FROM&nbsp;&nbsp; ( SELECT table_name FROM dba_tab_columns NATURAL JOIN dba_tables WHERE column_name = &#039;TARGET_GUID&#039;)
/
&nbsp;
SQL&gt; REM Or check ALL raw columns

SELECT &#039;SELECT COUNT(*) FROM &#039; || table_name || &#039; WHERE &#039; || column_name || &#039; = HEXTORAW(&#039;&#039;&amp;TARGET_GUID&#039;&#039;);&#039;
&nbsp;&nbsp;FROM ( 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SELECT table_name, column_name 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FROM dba_tab_columns NATURAL JOIN dba_tables 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WHERE owner = &#039;SYSMAN&#039; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AND data_type = &#039;RAW&#039; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )
/
&nbsp;
</pre>
<p>
In my environment there was a mismatch between the MGMT_TARGETS and the MGMT_AGENT_SEC_INFO:
</p>
<pre>
SQL&gt; SELECT COUNT(*) FROM mgmt_targets WHERE target_type = &#039;oracle_emd&#039; ;
&nbsp;&nbsp;COUNT(*)
&#45;&#45;-&#45;&#45;-&#45;&#45;&#45;-
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;30
&nbsp;
SQL&gt; SELECT COUNT(*) FROM mgmt_agent_sec_info ;
&nbsp;&nbsp;COUNT(*)
&#45;&#45;-&#45;&#45;-&#45;&#45;&#45;-
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;32
&nbsp;
SQL&gt; SELECT * FROM mgmt_agent_sec_info WHERE target_guid = HEXTORAW( &#039;&amp;TARGET_GUID&#039;);
TARGET_GUID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AGENT_KEY
&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;&#45;-- &#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;&#45;-
CACA6898BA9051954366482B01EBE9CB ¿¿¿¿.¿¿¿9¿2¿¿KM(¿&lt;+¿¿H¿¿¿¿!¿E&gt;¿¿
</pre>
<p>
<strong><br />
(Windows Only?) &#8216;emctl clearstate agent&#8217; does NOT remove XML files from $ORACLE_HOME/sysman/emd/upload, remove manually from the OS to prevent &#8216;Failed to upload file A0000001.xml&#8217; and &#8216;FxferSend: received fatal error in header from repository&#8217; errors.<br />
</strong>
</p>
<p>
Needless to say, use at your own risk; also see oracle forum thread <a href="http://forums.oracle.com/forums/thread.jspa?threadID=347619">delete old agent</a></p>
]]></content:encoded>
			<wfw:commentRss>http://remidian.com/oracle/grid/agent-corruption-status-in-oms.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clearing Alerts in Oracle GRID Control</title>
		<link>http://remidian.com/oracle/grid/clearing-alerts-in-oracle-grid-control.html</link>
		<comments>http://remidian.com/oracle/grid/clearing-alerts-in-oracle-grid-control.html#comments</comments>
		<pubDate>Mon, 12 Nov 2007 13:01:26 +0000</pubDate>
		<dc:creator>remivisser</dc:creator>
				<category><![CDATA[Grid]]></category>

		<guid isPermaLink="false">http://remidian.com/oracle/grid/clearing-alerts-in-enterprise-manager.html</guid>
		<description><![CDATA[Here&#8217;s how to clear alerts from the Oracle GRID manually. For some obscure reason Oracle is very reluctant in providing the information that is described here below. Search Metalink and you will find no entries&#8230; The information below is from dbasupport.com and helps me to clear alerts that the Agent does NOT clear for me. [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how to clear alerts from the Oracle GRID manually.<span id="more-66"></span></p>
<p>
For some obscure reason Oracle is very reluctant in providing the information that is described here below. Search Metalink and you will find no entries&#8230; The information below is from <a href="http://www.dbasupport.com/oracle/ora10g/clearing_alerts.shtml">dbasupport.com</a> and helps me to clear alerts that the Agent does NOT clear for me.
</p>
<h6>sysman.em_severity</h6>
<pre>
[REMI@DB01.REMIDIAN.COM]
SQL&gt;&nbsp;&nbsp;@desc sysman.em_severity
.
.
PROCEDURE DELETE_CURRENT_SEVERITY
 Argument Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;In/Out Default?
 &#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;- &#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;-&#45;&#45;&#45;-- &#45;&#45;-&#45;&#45;- &#45;&#45;-&#45;&#45;&#45;--
 P_TARGET_GUID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RAW&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN
 P_METRIC_GUID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RAW&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN
 P_KEY_VALUE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;VARCHAR2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IN
.
.
&nbsp;
</pre>
<h6>Generate SQL to remove alerts from specific targets</h6>
<pre>
select t.target_name
,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t.target_type
,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;collection_timestamp
,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message
,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#039;exec em_severity.delete_current_severity(&#039;&#039;&#039; ||
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t.target_guid || &#039;&#039;&#039;,&#039;&#039;&#039; ||
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; metric_guid || &#039;&#039;&#039;,&#039;&#039;&#039; ||
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; key_value || &#039;&#039;&#039;)&#039; em_severity
from&nbsp;&nbsp; mgmt_targets t
inner join
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mgmt_current_severity s
on
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t.target_guid = s.target_guid
where
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; target_name like &#039;&amp;TARGET&#039;
</pre>
<h6>Remove the Alert</h6>
<pre>
[REMI@DB01.REMIDIAN.COM]
SQL&gt; begin
&nbsp;&nbsp;2&nbsp;&nbsp;em_severity.delete_current_severity(&#039;3DFABFF28D9C283435DBD2491D35B92B&#039;,&#039;3E6F70DB22758B7B9756EF342180E7BB&#039;,&#039;UNDO&#039;);
&nbsp;&nbsp;3&nbsp;&nbsp;end;
&nbsp;&nbsp;4&nbsp;&nbsp;/
&nbsp;
PL/SQL procedure successfully completed.
&nbsp;
[REMI@DB01.REMIDIAN.COM]
SQL&gt; 
</pre>
]]></content:encoded>
			<wfw:commentRss>http://remidian.com/oracle/grid/clearing-alerts-in-oracle-grid-control.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
