<?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>ora-solutions.net - Martin Decker &#187; Martin</title>
	<atom:link href="http://www.ora-solutions.net/web/author/martin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ora-solutions.net/web</link>
	<description>Indepented Oracle consultant</description>
	<lastBuildDate>Wed, 25 Jan 2012 14:04:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Bug: ORA-4031 for subheap &#8220;KTC latch subh&#8221; in 11.2.0.3</title>
		<link>http://www.ora-solutions.net/web/2012/01/25/bug-ora-4031-for-subheap-ktc-latch-subh-in-11-2-0-3/</link>
		<comments>http://www.ora-solutions.net/web/2012/01/25/bug-ora-4031-for-subheap-ktc-latch-subh-in-11-2-0-3/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 14:04:18 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[11gR2]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Oracle Database]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=1135</guid>
		<description><![CDATA[I just saw MOS Note ORA-4031 After Upgrade From 11.2.0.1 To 11.2.0.3 With Leak in &#8216;KTC latch subh&#8217; Subheaps [ID 1398984.1] giving very little information about this bug. At the time of this writing, there is no patch available but I expect it to be in a few days. I have checked some 11.2.0.3 instances [...]]]></description>
			<content:encoded><![CDATA[<p>I just saw MOS Note</p>
<blockquote><p>ORA-4031 After Upgrade From 11.2.0.1 To 11.2.0.3 With Leak in &#8216;KTC latch subh&#8217; Subheaps [ID 1398984.1]</p></blockquote>
<p>giving very little information about this bug. At the time of this writing, there is no patch available but I expect it to be in a few days. I have checked some 11.2.0.3 instances and found only one with &gt; 60 MB for this subheap.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2012/01/25/bug-ora-4031-for-subheap-ktc-latch-subh-in-11-2-0-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle SCN Problem</title>
		<link>http://www.ora-solutions.net/web/2012/01/19/oracle-scn-problem/</link>
		<comments>http://www.ora-solutions.net/web/2012/01/19/oracle-scn-problem/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 21:56:52 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[10g]]></category>
		<category><![CDATA[11g]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Oracle Database]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=1125</guid>
		<description><![CDATA[In case you have not heard all the buzz about the Oracle SCN flaw, which was published by Infoworld after the release of January CPU, I summarize the essentials. There is a risk that the SCN reaches it´s maximum value and this could lead to an outage of the database. There is a bug in [...]]]></description>
			<content:encoded><![CDATA[<p>In case you have not heard all the buzz about the Oracle SCN flaw, which was published by <a href="http://www.infoworld.com/d/security/fundamental-oracle-flaw-revealed-184163-0">Infoworld</a> after the release of January CPU, I summarize the essentials.</p>
<ul>
<li>There is a risk that the SCN reaches it´s maximum value and this could lead to an outage of the database.</li>
<li>There is a bug in &#8220;ALTER DATABASE BEGIN BACKUP&#8221;, which increases the SCN dramatically. (Bug 12371955 &#8211; fixed in 11.2.0.2.4 and others)</li>
<li>When you query a remote database via database link from a database with elevated SCN, the remote SCN gets increased to the higher value as well. This has the dramatic effect, that a database will infect the other database.</li>
<li>Imagine an unpatched environment with user-managed online backups (e.g. for SAN split mirror technology) and dozens of interconnected databases with database links.</li>
<li>Now imagine an evil employee with this little innocent database account with only &#8220;create session&#8221; privilege  &#8230; you get the picture.</li>
<li>The January 2012 CPU/PSU contains a patch that should restrict the ways to increase the SCN. However, I am not sure that the issue with db links is solved. I could bump up the SCN to 12562779343042 by a remote select even after patching with CPU January 2012.</li>
</ul>
<p>Additionally, there are already quite a few articles showing how a potential attacker could use this flaw, e.g. <a href="http://www.gokhanatil.com/2012/01/fundamental-oracle-flaw-revealed-lets.html ">this one.</a></p>
<p>References:</p>
<ul>
<li><span style="font-family: helvetica;">Information on the System Change Number (SCN) and how it is used in the Oracle Database [ID 1376995.1]</span></li>
<li><span style="font-family: helvetica;">Installing, Executing and Interpreting output from the &#8220;scnhealthcheck.sql&#8221; script [ID 1393363.1]</span></li>
<li><span style="font-family: helvetica;">Bug 12371955 &#8211; Backup task can cause increased SCN growth rate leading to ORA-600 [2252] errors [ID 12371955.8]<strong><br />
</strong></span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2012/01/19/oracle-scn-problem/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RDBMS 11.2.0.2: unrecoverable operations of Compression Advisor running daily</title>
		<link>http://www.ora-solutions.net/web/2011/10/20/rdbms-11-2-0-2-unrecoverable-operations-of-compression-advisor-running-daily/</link>
		<comments>http://www.ora-solutions.net/web/2011/10/20/rdbms-11-2-0-2-unrecoverable-operations-of-compression-advisor-running-daily/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 16:35:55 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[11gR2]]></category>
		<category><![CDATA[Oracle Database]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=1109</guid>
		<description><![CDATA[At one of my customers, we wondered about some entries in v$datafile.unrecoverable_change# for the most critical tablespace of the application. Certainly no application components were allowed to perform nologging operations for segments inside this tablespace and yet there was evidence that &#8220;something&#8221; was done with nologging. The unrecoverable_time was shortly after 10 pm The ASH [...]]]></description>
			<content:encoded><![CDATA[<p>At one of my customers, we wondered about some entries in v$datafile.unrecoverable_change# for the most critical tablespace of the application. Certainly no application components were allowed to perform nologging operations for segments inside this tablespace and yet there was evidence that &#8220;something&#8221; was done with nologging.</p>
<ul>
<li>The unrecoverable_time was shortly after 10 pm</li>
<li>The ASH data covering this time period showed activity by DBMS_SCHEDULER and Autotask Jobs.</li>
<li>An internal DDL log table showed the following operations:</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">&quot;MYOWNER&quot;</span><span style="color: #66cc66;">.</span>DBMS_TABCOMP_TEMP_UNCMP
tablespace <span style="color: #ff0000;">&quot;DAT_MYOWNER&quot;</span> nologging
<span style="color: #993333; font-weight: bold;">AS</span>
<span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #808080; font-style: italic;">/*+ FULL(&quot;MYOWNER&quot;.&quot;MYTAB&quot;) */</span> <span style="color: #66cc66;">*</span>  <span style="color: #993333; font-weight: bold;">FROM</span> <span style="color: #ff0000;">&quot;MYOWNER&quot;</span><span style="color: #66cc66;">.</span><span style="color: #ff0000;">&quot;MYTAB&quot;</span>  sample block<span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">3.55</span><span style="color: #66cc66;">&#41;</span> mytab ;   
&nbsp;
<span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">&quot;MYOWNER&quot;</span><span style="color: #66cc66;">.</span>DBMS_TABCOMP_TEMP_CMP ORGANIZATION HEAP
TABLESPACE <span style="color: #ff0000;">&quot;DAT_MYOWNER&quot;</span>
COMPRESS <span style="color: #993333; font-weight: bold;">FOR</span> <span style="color: #993333; font-weight: bold;">ALL</span> OPERATIONS
NOLOGGING
<span style="color: #993333; font-weight: bold;">AS</span>
<span style="color: #993333; font-weight: bold;">SELECT</span>  <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> <span style="color: #ff0000;">&quot;MYOWNER&quot;</span><span style="color: #66cc66;">.</span>DBMS_TABCOMP_TEMP_UNCMP MYTAB;
&nbsp;
<span style="color: #993333; font-weight: bold;">DROP</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">&quot;MYOWNER&quot;</span><span style="color: #66cc66;">.</span>DBMS_TABCOMP_TEMP_UNCMP PURGE;
<span style="color: #993333; font-weight: bold;">DROP</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">&quot;MYOWNER&quot;</span><span style="color: #66cc66;">.</span>DBMS_TABCOMP_TEMP_CMP purge;</pre></div></div>

<p><strong>Summary:</strong></p>
<p>I find it suboptimal that Compression Advisor is executed on a daily basis during the maintenance window and that the Compression Advisor can not be seperately disabled without also disabling the Segment Advisor. (Although there is supposed to be an enhancement request open for this.)</p>
<p>In addition to that, it is more than problematic that the is using the user tablespace, which could lead to tablespace pressure and that the operations are performed as unrecoverable and therefore logged in v$datafile.unrecoverable_time, overwriting potential important information of real &#8220;user&#8221; operations performing with NOLOGGING.</p>
<p>More information about Compression Advisor can be found in MOS Note: How Does Compression Advisor Work? [ID 1284972.1]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2011/10/20/rdbms-11-2-0-2-unrecoverable-operations-of-compression-advisor-running-daily/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Workaround for ORA-600/ORA-7445 with SQL Repair Advisor</title>
		<link>http://www.ora-solutions.net/web/2011/07/26/workaround-for-ora-600ora-7445-with-sql-repair-advisor/</link>
		<comments>http://www.ora-solutions.net/web/2011/07/26/workaround-for-ora-600ora-7445-with-sql-repair-advisor/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 16:14:47 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[11gR2]]></category>
		<category><![CDATA[Oracle Database]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=1096</guid>
		<description><![CDATA[From time to time we hit Errors like ORA-600 or ORA-7445, which are triggered by specific SQL statements. For these cases, Oracle developed the SQL Repair Advisor. This is a short demonstration of utilizing the SQL Repair Advisor to avoid ORA-7445 caused by a SQL statement. SQL and Error: 1 2 3 4 5 6 [...]]]></description>
			<content:encoded><![CDATA[<p>From time to time we hit Errors like ORA-600 or ORA-7445, which are triggered by specific SQL statements. For these cases, Oracle developed the SQL Repair Advisor. This is a short demonstration of utilizing the SQL Repair Advisor to avoid ORA-7445 caused by a SQL statement.</p>
<p><strong>SQL and Error:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span>
EXTRACT<span style="color: #66cc66;">&#40;</span>YEAR <span style="color: #993333; font-weight: bold;">FROM</span> date_new<span style="color: #66cc66;">&#41;</span> jahr<span style="color: #66cc66;">,</span>
EXTRACT<span style="color: #66cc66;">&#40;</span>MONTH <span style="color: #993333; font-weight: bold;">FROM</span> date_new<span style="color: #66cc66;">&#41;</span> monat<span style="color: #66cc66;">,</span>
COUNT<span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">DISTINCT</span> TRUNC<span style="color: #66cc66;">&#40;</span>date_new<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> arbeitstage<span style="color: #66cc66;">,</span>
SUM<span style="color: #66cc66;">&#40;</span>CASE WHEN STRING1 <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">SELECT</span> STRING1
<span style="color: #993333; font-weight: bold;">FROM</span> MD<span style="color: #66cc66;">.</span>MD1
<span style="color: #993333; font-weight: bold;">WHERE</span> STRING1_GROUP <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'CUST'</span><span style="color: #66cc66;">&#41;</span>
THEN
DECODE<span style="color: #66cc66;">&#40;</span>FLAG<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'J'</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>
ELSE
<span style="color: #cc66cc;">0</span>
END<span style="color: #66cc66;">&#41;</span> cust_flag
<span style="color: #993333; font-weight: bold;">FROM</span>
SCHEMA<span style="color: #66cc66;">.</span>TAB1
<span style="color: #993333; font-weight: bold;">WHERE</span>
date_new <span style="color: #993333; font-weight: bold;">BETWEEN</span> TO_DATE<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">201101</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'yyyymm'</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">AND</span> ADD_MONTHS<span style="color: #66cc66;">&#40;</span>TO_DATE<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">201107</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'yyyymm'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span>
EXTRACT<span style="color: #66cc66;">&#40;</span>YEAR <span style="color: #993333; font-weight: bold;">FROM</span> date_new<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span>
EXTRACT<span style="color: #66cc66;">&#40;</span>MONTH <span style="color: #993333; font-weight: bold;">FROM</span> date_new<span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">2</span>;
&nbsp;
ERROR at line <span style="color: #cc66cc;">6</span>:
ORA<span style="color: #66cc66;">-</span>03113: end<span style="color: #66cc66;">-</span>of<span style="color: #66cc66;">-</span>file <span style="color: #993333; font-weight: bold;">ON</span> communication channel
Process ID: <span style="color: #cc66cc;">7746</span>
Session ID: <span style="color: #cc66cc;">737</span> Serial number: <span style="color: #cc66cc;">9823</span>
&nbsp;
Tue Jul <span style="color: #cc66cc;">26</span> <span style="color: #cc66cc;">15</span>:<span style="color: #cc66cc;">19</span>:<span style="color: #cc66cc;">41</span> <span style="color: #cc66cc;">2011</span>
Exception <span style="color: #66cc66;">&#91;</span>type: SIGSEGV<span style="color: #66cc66;">,</span> Address <span style="color: #993333; font-weight: bold;">NOT</span> mapped <span style="color: #993333; font-weight: bold;">TO</span> object<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#91;</span>ADDR:0xA<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#91;</span>PC:0x888A3C9<span style="color: #66cc66;">,</span> xtyqbcb<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">+</span><span style="color: #cc66cc;">413</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">...</span>
ORA<span style="color: #66cc66;">-</span>07445: exception encountered: core dump <span style="color: #66cc66;">&#91;</span>xtyqbcb<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">+</span><span style="color: #cc66cc;">413</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#91;</span>SIGSEGV<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#91;</span>ADDR:0xA<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#91;</span>PC:0x888A3C9<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">...</span></pre></td></tr></table></div>

<p><strong>Execution of SQL Repair Advisor:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;">DECLARE
  rep_out CLOB;
  t_id VARCHAR2<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">50</span><span style="color: #66cc66;">&#41;</span>;
BEGIN
  T_ID :<span style="color: #66cc66;">=</span> DBMS_SQLDIAG<span style="color: #66cc66;">.</span>CREATE_DIAGNOSIS_TASK<span style="color: #66cc66;">&#40;</span> 
  sql_text <span style="color: #66cc66;">=&gt;</span> q<span style="color: #ff0000;">'#SELECT
EXTRACT(YEAR FROM date_new) jahr,
EXTRACT(MONTH FROM date_new) monat,
COUNT(DISTINCT TRUNC(date_new)) arbeitstage,
SUM(CASE WHEN STRING1 IN (SELECT STRING1
FROM MD.MD1
WHERE STRING1_GROUP = '</span>CUST<span style="color: #ff0000;">')
THEN
DECODE(FLAG, '</span>J<span style="color: #ff0000;">', 1, 0)
ELSE
0
END) cust_flag
FROM
SCHEMA.TAB1
WHERE
date_new BETWEEN TO_DATE(201101, '</span>yyyymm<span style="color: #ff0000;">')
AND ADD_MONTHS(TO_DATE(201107, '</span>yyyymm<span style="color: #ff0000;">'), 1)
GROUP BY
EXTRACT(YEAR FROM date_new),
EXTRACT(MONTH FROM date_new)
ORDER BY 1,2#'</span><span style="color: #66cc66;">,</span> 
  task_name <span style="color: #66cc66;">=&gt;</span> <span style="color: #ff0000;">'ORA7445-xtyqbcb'</span><span style="color: #66cc66;">,</span> 
  problem_type <span style="color: #66cc66;">=&gt;</span>DBMS_SQLDIAG<span style="color: #66cc66;">.</span>PROBLEM_TYPE_COMPILATION_ERROR
  <span style="color: #66cc66;">&#41;</span>;
  DBMS_SQLDIAG<span style="color: #66cc66;">.</span>EXECUTE_DIAGNOSIS_TASK <span style="color: #66cc66;">&#40;</span>t_id<span style="color: #66cc66;">&#41;</span>;
  rep_out :<span style="color: #66cc66;">=</span> DBMS_SQLDIAG<span style="color: #66cc66;">.</span>REPORT_DIAGNOSIS_TASK <span style="color: #66cc66;">&#40;</span>t_id<span style="color: #66cc66;">,</span> DBMS_SQLDIAG<span style="color: #66cc66;">.</span>TYPE_TEXT<span style="color: #66cc66;">&#41;</span>;
  DBMS_OUTPUT<span style="color: #66cc66;">.</span>PUT_LINE <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Report : '</span> <span style="color: #66cc66;">||</span> rep_out<span style="color: #66cc66;">&#41;</span>;
END;
<span style="color: #66cc66;">/</span>
&nbsp;
<span style="color: #66cc66;">&lt;</span>strong<span style="color: #66cc66;">&gt;</span>Output:<span style="color: #66cc66;">&lt;/</span>strong<span style="color: #66cc66;">&gt;</span>
&nbsp;
Report : GENERAL INFORMATION SECTION
<span style="color: #808080; font-style: italic;">-------------------------------------------------------------------------------</span>
Tuning Task Name   : ORA7445<span style="color: #66cc66;">-</span>xtyqbcb
Tuning Task Owner  : SYS
Workload Type      : Single SQL Statement
Scope              : COMPREHENSIVE
Time <span style="color: #993333; font-weight: bold;">LIMIT</span><span style="color: #66cc66;">&#40;</span>seconds<span style="color: #66cc66;">&#41;</span>:
<span style="color: #cc66cc;">1800</span>
Completion <span style="color: #993333; font-weight: bold;">STATUS</span>  : COMPLETED
Started at         : 07<span style="color: #66cc66;">/</span><span style="color: #cc66cc;">26</span><span style="color: #66cc66;">/</span><span style="color: #cc66cc;">2011</span> <span style="color: #cc66cc;">15</span>:<span style="color: #cc66cc;">46</span>:<span style="color: #cc66cc;">38</span>
Completed at       : 07<span style="color: #66cc66;">/</span><span style="color: #cc66cc;">26</span><span style="color: #66cc66;">/</span><span style="color: #cc66cc;">2011</span> <span style="color: #cc66cc;">15</span>:<span style="color: #cc66cc;">46</span>:<span style="color: #cc66cc;">38</span>
&nbsp;
<span style="color: #808080; font-style: italic;">-------------------------------------------------------------------------------</span>
Schema Name: SYS
SQL ID     : 39ac71hjcn0rt
<span style="color: #66cc66;">...</span>
&nbsp;
<span style="color: #808080; font-style: italic;">-------------------------------------------------------------------------------</span>
FINDINGS SECTION <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>
finding<span style="color: #66cc66;">&#41;</span>
<span style="color: #808080; font-style: italic;">-------------------------------------------------------------------------------</span>
&nbsp;
<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">-</span> SQL Patch Finding <span style="color: #66cc66;">&#40;</span>see <span style="color: #993333; font-weight: bold;">EXPLAIN</span> plans section below<span style="color: #66cc66;">&#41;</span>
<span style="color: #808080; font-style: italic;">------------------------------------------------------</span>
  A potentially better execution plan was found <span style="color: #993333; font-weight: bold;">FOR</span> this statement<span style="color: #66cc66;">.</span>
&nbsp;
  Recommendation
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">--------------</span>
  <span style="color: #66cc66;">-</span> Consider accepting the recommended SQL patch<span style="color: #66cc66;">.</span>
    execute dbms_sqldiag<span style="color: #66cc66;">.</span>accept_sql_patch<span style="color: #66cc66;">&#40;</span>task_name <span style="color: #66cc66;">=&gt;</span>
            <span style="color: #ff0000;">'ORA7445-xtyqbcb'</span><span style="color: #66cc66;">,</span> task_owner <span style="color: #66cc66;">=&gt;</span> <span style="color: #ff0000;">'SYS'</span><span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">REPLACE</span> <span style="color: #66cc66;">=&gt;</span> TRUE<span style="color: #66cc66;">&#41;</span>;
&nbsp;
  Rationale
  <span style="color: #808080; font-style: italic;">---------</span>
    Recommended plan <span style="color: #993333; font-weight: bold;">WITH</span> hash value <span style="color: #cc66cc;">1503213169</span> has number of rows <span style="color: #cc66cc;">7</span><span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CHECK</span>
&nbsp;
sum <span style="color: #cc66cc;">13925076401</span><span style="color: #66cc66;">,</span> execution time <span style="color: #cc66cc;">264</span> <span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #cc66cc;">1972</span> buffer gets
&nbsp;
<span style="color: #808080; font-style: italic;">-------------------------------------------------------------------------------</span>
&nbsp;
&nbsp;
&nbsp;
PL<span style="color: #66cc66;">/</span>SQL procedure successfully completed<span style="color: #66cc66;">.</span></pre></td></tr></table></div>

<p><strong>Activation:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"> begin dbms_sqldiag<span style="color: #66cc66;">.</span>accept_sql_patch<span style="color: #66cc66;">&#40;</span>
      task_name <span style="color: #66cc66;">=&gt;</span><span style="color: #ff0000;">'ORA7445-xtyqbcb'</span><span style="color: #66cc66;">,</span> 
      task_owner <span style="color: #66cc66;">=&gt;</span> <span style="color: #ff0000;">'SYS'</span><span style="color: #66cc66;">,</span> 
      <span style="color: #993333; font-weight: bold;">REPLACE</span> <span style="color: #66cc66;">=&gt;</span> TRUE<span style="color: #66cc66;">&#41;</span>;
end;
<span style="color: #66cc66;">/</span></pre></td></tr></table></div>

<p><strong>Test:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span>
EXTRACT<span style="color: #66cc66;">&#40;</span>YEAR <span style="color: #993333; font-weight: bold;">FROM</span> date_new<span style="color: #66cc66;">&#41;</span> jahr<span style="color: #66cc66;">,</span>
EXTRACT<span style="color: #66cc66;">&#40;</span>MONTH <span style="color: #993333; font-weight: bold;">FROM</span> date_new<span style="color: #66cc66;">&#41;</span> monat<span style="color: #66cc66;">,</span>
COUNT<span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">DISTINCT</span> TRUNC<span style="color: #66cc66;">&#40;</span>date_new<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> arbeitstage<span style="color: #66cc66;">,</span>
SUM<span style="color: #66cc66;">&#40;</span>CASE WHEN STRING1 <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">SELECT</span> STRING1
<span style="color: #993333; font-weight: bold;">FROM</span> MD<span style="color: #66cc66;">.</span>MD1
<span style="color: #993333; font-weight: bold;">WHERE</span> STRING1_GROUP <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'CUST'</span><span style="color: #66cc66;">&#41;</span>
THEN
DECODE<span style="color: #66cc66;">&#40;</span>FLAG<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'J'</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>
ELSE
<span style="color: #cc66cc;">0</span>
END<span style="color: #66cc66;">&#41;</span> cust_flag
<span style="color: #993333; font-weight: bold;">FROM</span>
SCHEMA<span style="color: #66cc66;">.</span>TAB1
<span style="color: #993333; font-weight: bold;">WHERE</span>
date_new <span style="color: #993333; font-weight: bold;">BETWEEN</span> TO_DATE<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">201101</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'yyyymm'</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">AND</span> ADD_MONTHS<span style="color: #66cc66;">&#40;</span>TO_DATE<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">201107</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'yyyymm'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span>
EXTRACT<span style="color: #66cc66;">&#40;</span>YEAR <span style="color: #993333; font-weight: bold;">FROM</span> date_new<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span>
EXTRACT<span style="color: #66cc66;">&#40;</span>MONTH <span style="color: #993333; font-weight: bold;">FROM</span> date_new<span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">2</span>;
&nbsp;
      JAHR      MONAT ARBEITSTAGE CUST_FLAG
<span style="color: #808080; font-style: italic;">---------- ---------- ----------- ----------------</span>
      <span style="color: #cc66cc;">2011</span>          <span style="color: #cc66cc;">1</span>          <span style="color: #cc66cc;">20</span>                <span style="color: #cc66cc;">0</span>
&nbsp;
&nbsp;
<span style="color: #cc66cc;">7</span> rows selected<span style="color: #66cc66;">.</span>
&nbsp;
SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> <span style="color: #993333; font-weight: bold;">TABLE</span><span style="color: #66cc66;">&#40;</span>dbms_xplan<span style="color: #66cc66;">.</span>display_cursor<span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'ADVANCED'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
PLAN_TABLE_OUTPUT
<span style="color: #808080; font-style: italic;">---------------------</span>
SQL_ID  5wdztx81x0r8f<span style="color: #66cc66;">,</span> child number <span style="color: #cc66cc;">0</span>
<span style="color: #808080; font-style: italic;">-------------------------------------</span>
&nbsp;
&nbsp;
Plan hash value: <span style="color: #cc66cc;">1503213169</span>
&nbsp;
<span style="color: #808080; font-style: italic;">-----------------------------------------------------------------------------------------------</span>
<span style="color: #66cc66;">|</span> Id  <span style="color: #66cc66;">|</span> Operation          <span style="color: #66cc66;">|</span> Name             <span style="color: #66cc66;">|</span> Rows  <span style="color: #66cc66;">|</span> Bytes <span style="color: #66cc66;">|</span>TempSpc<span style="color: #66cc66;">|</span> Cost <span style="color: #66cc66;">&#40;</span>%CPU<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">|</span> Time     <span style="color: #66cc66;">|</span>
<span style="color: #808080; font-style: italic;">-----------------------------------------------------------------------------------------------</span>
<span style="color: #66cc66;">|</span>   <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold;">SELECT</span> STATEMENT   <span style="color: #66cc66;">|</span>                  <span style="color: #66cc66;">|</span>       <span style="color: #66cc66;">|</span>       <span style="color: #66cc66;">|</span>       <span style="color: #66cc66;">|</span>   <span style="color: #cc66cc;">591</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">|</span>          <span style="color: #66cc66;">|</span>
<span style="color: #66cc66;">|*</span>  <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span>  <span style="color: #993333; font-weight: bold;">TABLE</span> ACCESS <span style="color: #993333; font-weight: bold;">FULL</span> <span style="color: #66cc66;">|</span> MD1              <span style="color: #66cc66;">|</span>     <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span>    <span style="color: #cc66cc;">12</span> <span style="color: #66cc66;">|</span>       <span style="color: #66cc66;">|</span>     <span style="color: #cc66cc;">3</span>   <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">|</span> 00:00:01 <span style="color: #66cc66;">|</span>
<span style="color: #66cc66;">|</span>   <span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">|</span>  SORT <span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span>     <span style="color: #66cc66;">|</span>                  <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">27402</span> <span style="color: #66cc66;">|</span>   294K<span style="color: #66cc66;">|</span>  2776K<span style="color: #66cc66;">|</span>   <span style="color: #cc66cc;">591</span>  <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">12</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">|</span> 00:00:02 <span style="color: #66cc66;">|</span>
<span style="color: #66cc66;">|*</span>  <span style="color: #cc66cc;">3</span> <span style="color: #66cc66;">|</span>   <span style="color: #993333; font-weight: bold;">TABLE</span> ACCESS <span style="color: #993333; font-weight: bold;">FULL</span><span style="color: #66cc66;">|</span> TAB1             <span style="color: #66cc66;">|</span>   117K<span style="color: #66cc66;">|</span>  1260K<span style="color: #66cc66;">|</span>       <span style="color: #66cc66;">|</span>   <span style="color: #cc66cc;">369</span>  <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">|</span> 00:00:01 <span style="color: #66cc66;">|</span>
<span style="color: #808080; font-style: italic;">-----------------------------------------------------------------------------------------------</span>
&nbsp;
&nbsp;
<span style="color: #66cc66;">...</span>
&nbsp;
&nbsp;
Note
<span style="color: #808080; font-style: italic;">-----</span>
   <span style="color: #66cc66;">-</span> SQL patch <span style="color: #ff0000;">&quot;SYS_SQLPTCH_013166b4fb2a0001&quot;</span> used <span style="color: #993333; font-weight: bold;">FOR</span> this statement
&nbsp;
&nbsp;
<span style="color: #cc66cc;">66</span> rows selected<span style="color: #66cc66;">.</span></pre></td></tr></table></div>

<p><strong>Removal of SQL Patch:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;">exec DBMS_SQLDIAG<span style="color: #66cc66;">.</span>DROP_SQL_PATCH <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'SYS_SQLPTCH_013166b4fb2a0001'</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p><strong>Deletion of SQL Diag Task:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"> exec DBMS_SQLDIAG<span style="color: #66cc66;">.</span>DROP_DIAGNOSIS_TASK <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'ORA7445-xtyqbcb'</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2011/07/26/workaround-for-ora-600ora-7445-with-sql-repair-advisor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Data Guard 11.2.0.2 &#8211; update</title>
		<link>http://www.ora-solutions.net/web/2011/05/26/data-guard-11-2-0-2-update/</link>
		<comments>http://www.ora-solutions.net/web/2011/05/26/data-guard-11-2-0-2-update/#comments</comments>
		<pubDate>Thu, 26 May 2011 13:21:32 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Data Guard]]></category>
		<category><![CDATA[Oracle Database]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=1072</guid>
		<description><![CDATA[In March, Oracle MAA has published a white paper for implementing Data Guard on Exadata platforms. (http://www.oracle.com/technetwork/database/features/availability/maa-wp-dr-dbm-130065.pdf) Although the paper is focused on Exadata, some information can be applied to non-Exadata systems as well: Corruption Protection: Primary: DB_BLOCK_CHECKSUM=FULL, DB_BLOCK_CHECKING=FULL, DB_LOST_WRITE_PROTECT=TYPICAL (Physical) Standby: DB_BLOCK_CHECKSUM=FULL, DB_BLOCK_CHECKING=OFF, DB_LOST_WRITE_PROTECT=TYPICAL Network Tuning: TCP Send/Receive Buffers: 3 x Bandwith Delay Product [...]]]></description>
			<content:encoded><![CDATA[<p>In March, Oracle MAA has published a white paper for implementing Data Guard on Exadata platforms. (<a title="http://www.oracle.com/technetwork/database/features/availability/maa-wp-dr-dbm-130065.pdf" href="http://www.oracle.com/technetwork/database/features/availability/maa-wp-dr-dbm-130065.pdf">http://www.oracle.com/technetwork/database/features/availability/maa-wp-dr-dbm-130065.pdf</a>)</p>
<p>Although the paper is focused on Exadata, some information can be applied to non-Exadata systems as well:</p>
<ul>
<li><strong>Corruption Protection:</strong>
<ul>
<li style="text-align: left;"> Primary:
<ul>
<li style="text-align: left;">DB_BLOCK_CHECKSUM=FULL,</li>
<li style="text-align: left;">DB_BLOCK_CHECKING=FULL,</li>
<li style="text-align: left;">DB_LOST_WRITE_PROTECT=TYPICAL</li>
</ul>
</li>
</ul>
<ul>
<li style="text-align: left;"> (Physical) Standby:
<ul>
<li style="text-align: left;">DB_BLOCK_CHECKSUM=FULL,</li>
<li style="text-align: left;">DB_BLOCK_CHECKING=OFF,</li>
<li style="text-align: left;">DB_LOST_WRITE_PROTECT=TYPICAL</li>
</ul>
</li>
</ul>
</li>
<li><strong>Network Tuning:</strong><br />
TCP Send/Receive Buffers: 3 x Bandwith Delay Product or 10 MB, whichever is greater</li>
<li><strong>Redo Transport Modes:</strong>
<ul>
<li>SYNC is recommended if round-trip-time is less than 5 ms.  Impact of SYNC Mode on primary performance has been improved because local online redo log write and redo shipping is not done sequentially anymore but in parallel.</li>
<li>ASYNC: Transport Lag is reduced because Redo is not read from online redo log from disk but from log buffer if possible. init.ora log_buffer might need to be increased for this to yield the maximum benefit.</li>
</ul>
</li>
<li><strong>LOGGING/NOLOGGING: </strong>Normally, in Data Guard you set database-wide &#8220;ALTER DATABASE FORCE LOGGING&#8221;. In Data Warehouse environments, it might be advisable to set it to NOLOGGING and decide on a tablespace-basis whether the tablespace should allow or disallow NOLOGGING operations. E.g. a tablespace containing only transient, recreatable  or non-critical data might benefit from being set to NOLOGGING for certain bulk operations. (CTAS, Direct Path Inserts, index rebuilds, etc.)</li>
<li><strong>STANDBY-FIRST Patches:</strong> Some patches (PSU, CPU, PSE) will be flagged in the patch README with &#8220;Standby-First&#8221;. This means that they can be applied on a physical standby before being applied on the primary. For regular patches, this was not supported.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2011/05/26/data-guard-11-2-0-2-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Grid Control Repository for RDBMS Patch Report</title>
		<link>http://www.ora-solutions.net/web/2011/05/19/using-grid-control-repository-for-rdbms-patch-report/</link>
		<comments>http://www.ora-solutions.net/web/2011/05/19/using-grid-control-repository-for-rdbms-patch-report/#comments</comments>
		<pubDate>Thu, 19 May 2011 16:18:53 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[Oracle Enterprise Manager]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=1062</guid>
		<description><![CDATA[I was looking for a method to utilize the Grid Control Repository, which contains information about installed Oracle Homes, databases and patches, for a patch report. With a little reverse engineering i came up with these relevant tables: Mgmt_Ecm_Snapshot: Every time the inventory is refreshed, a new line is inserted into this table containing the [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking for a method to utilize the Grid Control Repository, which contains information about installed Oracle Homes, databases and patches, for a patch report.</p>
<p>With a little reverse engineering i came up with these relevant tables:</p>
<ul>
<li><strong>Mgmt_Ecm_Snapshot:</strong> Every time the inventory is refreshed, a new line is inserted into this table containing the host name and the snapshot_guid. The most current snapshot has flag IS_CURRENT set to &#8216;Y&#8217;</li>
<li><strong>Mgmt_Inv_Container</strong>: Every Oracle Home is a container. This table contains the snapshot_guid and the container_guid along with a container_description which is basically the Oracle Home Path</li>
<li><strong>Mgmt_Inv_Patch:</strong> This table contains container_guid, Patch ID and patch installation timestamp</li>
<li><strong>Mgmt_Inv_Component:</strong> This table lists all the components of the oracle homes along with their version. There is one component per container with the flag Is_Top_Level set to &#8216;Y&#8217;.  We use this component for getting the base version of the installed product. (e.g. 11.2.0.2)</li>
<li><strong>Mgmt_Inv_Versioned_Patch</strong>: I am not sure if this table is needed for version information, but one of the mgmt views was using these two tables together, so I used it as a reference.</li>
</ul>
<p>The complete statement now is:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #993333; font-weight: bold;">REPLACE</span> FORCE <span style="color: #993333; font-weight: bold;">VIEW</span> <span style="color: #ff0000;">&quot;SYSMAN&quot;</span><span style="color: #66cc66;">.</span><span style="color: #ff0000;">&quot;RDBMS_PATCH_REPORT&quot;</span>
<span style="color: #993333; font-weight: bold;">AS</span>
<span style="color: #993333; font-weight: bold;">SELECT</span>
      N<span style="color: #66cc66;">.</span>Target_Name<span style="color: #66cc66;">,</span>
    S<span style="color: #66cc66;">.</span>Start_Timestamp <span style="color: #993333; font-weight: bold;">AS</span> Collected_Time<span style="color: #66cc66;">,</span>
    S<span style="color: #66cc66;">.</span>Target_Name     <span style="color: #993333; font-weight: bold;">AS</span> Host_Name<span style="color: #66cc66;">,</span>
    C<span style="color: #66cc66;">.</span>Container_Name  <span style="color: #993333; font-weight: bold;">AS</span> Oracle_Home_Name<span style="color: #66cc66;">,</span>
    Container_Location<span style="color: #66cc66;">,</span>
    P<span style="color: #66cc66;">.</span>Id <span style="color: #993333; font-weight: bold;">AS</span> Patch_Id<span style="color: #66cc66;">,</span>
    <span style="color: #66cc66;">&#40;</span>
    CASE Id
      WHEN <span style="color: #ff0000;">'10157506'</span>
      THEN <span style="color: #ff0000;">'GI Bundle1'</span>
      WHEN <span style="color: #ff0000;">'10185523'</span>
      THEN <span style="color: #ff0000;">'OWB Bundle'</span>
      WHEN <span style="color: #ff0000;">'10248523'</span>
      THEN <span style="color: #ff0000;">'PSU Jan 2011'</span>
      WHEN <span style="color: #ff0000;">'11724916'</span>
      THEN <span style="color: #ff0000;">'PSU Apr 2011'</span>
      WHEN <span style="color: #ff0000;">'12311357'</span>
      THEN <span style="color: #ff0000;">'GI Psu Apr 2011'</span>
      ELSE <span style="color: #993333; font-weight: bold;">NULL</span>
    END <span style="color: #66cc66;">&#41;</span> description<span style="color: #66cc66;">,</span>
    P<span style="color: #66cc66;">.</span>Timestamp <span style="color: #993333; font-weight: bold;">AS</span> Install_Time<span style="color: #66cc66;">,</span>
    CASE
      WHEN VP<span style="color: #66cc66;">.</span>version <span style="color: #993333; font-weight: bold;">IS</span> <span style="color: #993333; font-weight: bold;">NULL</span>
      THEN M<span style="color: #66cc66;">.</span>version
      ELSE VP<span style="color: #66cc66;">.</span>version
    END <span style="color: #993333; font-weight: bold;">AS</span> Version
  <span style="color: #993333; font-weight: bold;">FROM</span> Mgmt_Ecm_Snapshot S<span style="color: #66cc66;">,</span>
    Mgmt_Inv_Container C<span style="color: #66cc66;">,</span>
    Mgmt_Inv_Patch P<span style="color: #66cc66;">,</span>
    <span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">SELECT</span> T<span style="color: #66cc66;">.</span>Target_Guid<span style="color: #66cc66;">,</span>
      T<span style="color: #66cc66;">.</span>Host_Name<span style="color: #66cc66;">,</span>
      T<span style="color: #66cc66;">.</span>Target_Name<span style="color: #66cc66;">,</span>
      T<span style="color: #66cc66;">.</span>Target_Type<span style="color: #66cc66;">,</span>
      Mp<span style="color: #66cc66;">.</span>Property_Value <span style="color: #993333; font-weight: bold;">AS</span> Oh
    <span style="color: #993333; font-weight: bold;">FROM</span> Mgmt_Targets T<span style="color: #66cc66;">,</span>
      Mgmt_Target_Properties Mp
    <span style="color: #993333; font-weight: bold;">WHERE</span> T<span style="color: #66cc66;">.</span>Target_Guid  <span style="color: #66cc66;">=</span> Mp<span style="color: #66cc66;">.</span>Target_Guid
    <span style="color: #993333; font-weight: bold;">AND</span> Mp<span style="color: #66cc66;">.</span>Property_Name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'OracleHome'</span>
    <span style="color: #993333; font-weight: bold;">AND</span> Target_Type      <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'oracle_database'</span>
    <span style="color: #66cc66;">&#41;</span> N<span style="color: #66cc66;">,</span>
    Mgmt_Inv_Component M <span style="color: #66cc66;">,</span>
    MGMT_INV_VERSIONED_PATCH VP
  <span style="color: #993333; font-weight: bold;">WHERE</span> S<span style="color: #66cc66;">.</span>Snapshot_Guid <span style="color: #66cc66;">=</span> C<span style="color: #66cc66;">.</span>Snapshot_Guid
  <span style="color: #993333; font-weight: bold;">AND</span> S<span style="color: #66cc66;">.</span>Is_Current      <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'Y'</span>
  <span style="color: #993333; font-weight: bold;">AND</span> C<span style="color: #66cc66;">.</span>Container_Type  <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'O'</span>
  <span style="color: #993333; font-weight: bold;">AND</span> P<span style="color: #66cc66;">.</span>Container_Guid  <span style="color: #66cc66;">=</span> C<span style="color: #66cc66;">.</span>Container_Guid
  <span style="color: #993333; font-weight: bold;">AND</span> N<span style="color: #66cc66;">.</span>Host_Name       <span style="color: #66cc66;">=</span> S<span style="color: #66cc66;">.</span>Target_Name
  <span style="color: #993333; font-weight: bold;">AND</span> N<span style="color: #66cc66;">.</span>Oh              <span style="color: #66cc66;">=</span> C<span style="color: #66cc66;">.</span>Container_Location
  <span style="color: #993333; font-weight: bold;">AND</span> M<span style="color: #66cc66;">.</span>Component_Guid  <span style="color: #66cc66;">=</span> Vp<span style="color: #66cc66;">.</span>Component_Guid<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">+</span><span style="color: #66cc66;">&#41;</span>
  <span style="color: #993333; font-weight: bold;">AND</span> M<span style="color: #66cc66;">.</span>Is_Top_Level    <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'Y'</span>
  <span style="color: #993333; font-weight: bold;">AND</span> M<span style="color: #66cc66;">.</span>Container_Guid  <span style="color: #66cc66;">=</span> C<span style="color: #66cc66;">.</span>Container_Guid
  <span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">3</span>;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2011/05/19/using-grid-control-repository-for-rdbms-patch-report/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is 11.2.0.2 ready for production? Judge yourself &#8230;</title>
		<link>http://www.ora-solutions.net/web/2011/04/18/is-11-2-0-2-ready-for-production-judge-yourself/</link>
		<comments>http://www.ora-solutions.net/web/2011/04/18/is-11-2-0-2-ready-for-production-judge-yourself/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 09:34:12 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[11gR2]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Data Guard]]></category>
		<category><![CDATA[MetaLink]]></category>
		<category><![CDATA[Oracle Database]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=1036</guid>
		<description><![CDATA[Murphy said: if problems arise, they all come at the same time. After several weeks of stability, this week brought hell of a lot of Oracle problems with 11.2.0.2 and RAC. To list the worst: Downtime because of ASM process limit reached. Normally, the formula to calculate depends on the number of concurrent datafile extensions. [...]]]></description>
			<content:encoded><![CDATA[<p>Murphy said: if problems arise, they all come at the same time. After several weeks of stability, this week brought hell of a lot of Oracle problems with 11.2.0.2 and RAC. To list the worst:</p>
<ul>
<li><strong>Downtime because of ASM process limit reached. </strong>Normally, the formula to calculate depends on the number of concurrent datafile extensions. In our case 100 ASM processes were not enough. Increased to 200 and found  Note 1287496.1 which describes the issue. Merge Patch for bug is available for 11.2.0.2 GI Bundle 1 but not yet for GI Bundle 2. Ups.</li>
<li><strong>CPU Starvation because of Adaptive Cursor Sharing:</strong> One server process was taking up 100% of cpu time for the last several hours. It turned out to be an OEM monitoring query having several thousands of child cursors.<br />
<blockquote>
<pre>PID 	USER 	PR NI VIRT 	RES SHR S %CPU %MEM TIME+ COMMAND
8667 	ora11 25 0 	8423m 33m 28m R 99.7 	0.1 358:27.78 ora_pz98_MDDB</pre>
</blockquote>
<p>I then checked different databases and found that almost all of our 11.2.0.2 databases have several hundreds or even thousands of child cursors.</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> sql_id<span style="color: #66cc66;">,</span> is_shareable<span style="color: #66cc66;">,</span> min<span style="color: #66cc66;">&#40;</span>child_number<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> max<span style="color: #66cc66;">&#40;</span>child_number<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> count<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">*</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">FROM</span> gv$sql
<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> sql_id<span style="color: #66cc66;">,</span> is_shareable <span style="color: #993333; font-weight: bold;">HAVING</span> count<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">*</span><span style="color: #66cc66;">&#41;</span> &amp;gt;<span style="color: #cc66cc;">100</span> <span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #cc66cc;">6</span> <span style="color: #993333; font-weight: bold;">DESC</span>
&nbsp;
SQL_ID        IS_SHAREABLE MIN<span style="color: #66cc66;">&#40;</span>CHILD_NUMBER<span style="color: #66cc66;">&#41;</span> MAX<span style="color: #66cc66;">&#40;</span>CHILD_NUMBER<span style="color: #66cc66;">&#41;</span>  COUNT<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">*</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #808080; font-style: italic;">------------- ------------ ----------------- ------------------ ---------</span>
c7kt3njhnmtkm Y            <span style="color: #cc66cc;">0</span>                 <span style="color: #cc66cc;">5097</span>               <span style="color: #cc66cc;">1397</span>
c7kt3njhnmtkm N            <span style="color: #cc66cc;">3</span>                 <span style="color: #cc66cc;">3544</span>               <span style="color: #cc66cc;">1836</span>
1vnhgmpc17vv0 Y            <span style="color: #cc66cc;">0</span>                 <span style="color: #cc66cc;">3022</span>               <span style="color: #cc66cc;">2697</span>
1vnhgmpc17vv0 N            <span style="color: #cc66cc;">6</span>                 <span style="color: #cc66cc;">2185</span>               <span style="color: #cc66cc;">444</span>
93qh89pxuxzuw Y            <span style="color: #cc66cc;">0</span>                 <span style="color: #cc66cc;">1949</span>               <span style="color: #cc66cc;">1522</span>
93qh89pxuxzuw N            <span style="color: #cc66cc;">2</span>                 <span style="color: #cc66cc;">1625</span>               <span style="color: #cc66cc;">428</span>
5fk0v8km2f811 Y            <span style="color: #cc66cc;">0</span>                 <span style="color: #cc66cc;">1281</span>               <span style="color: #cc66cc;">1763</span>
4f3ufvfcgfqsg Y            <span style="color: #cc66cc;">0</span>                 <span style="color: #cc66cc;">792</span>                <span style="color: #cc66cc;">794</span>
cjbwk0ww7j5rv Y            <span style="color: #cc66cc;">0</span>                 <span style="color: #cc66cc;">627</span>                <span style="color: #cc66cc;">1251</span>
dyqdzgxcv4d3t Y            <span style="color: #cc66cc;">0</span>                 <span style="color: #cc66cc;">626</span>                <span style="color: #cc66cc;">1252</span>
5fk0v8km2f811 N            <span style="color: #cc66cc;">3</span>                 <span style="color: #cc66cc;">543</span>                <span style="color: #cc66cc;">260</span>
f0jxh8d6b5af2 Y            <span style="color: #cc66cc;">0</span>                 <span style="color: #cc66cc;">494</span>                <span style="color: #cc66cc;">564</span>
f0jxh8d6b5af2 N            <span style="color: #cc66cc;">0</span>                 <span style="color: #cc66cc;">290</span>                <span style="color: #cc66cc;">130</span>
dbvkky621gqtr Y            <span style="color: #cc66cc;">0</span>                 <span style="color: #cc66cc;">266</span>                <span style="color: #cc66cc;">267</span>
32rqmpqpfv0gm Y            <span style="color: #cc66cc;">0</span>                 <span style="color: #cc66cc;">255</span>                <span style="color: #cc66cc;">257</span>
g9uwxs7pr8tjm Y            <span style="color: #cc66cc;">0</span>                 <span style="color: #cc66cc;">254</span>                <span style="color: #cc66cc;">257</span>
40k6jjt90n4fa Y            <span style="color: #cc66cc;">3</span>                 <span style="color: #cc66cc;">199</span>                <span style="color: #cc66cc;">129</span></pre></div></div>

<p>I suspect this to be Bug 10182051 Extended cursor sharing generates many shareable child cursors  and there is a workaround:</p>
<blockquote><p>alter system set &#8220;_optimizer_extended_cursor_sharing_rel&#8221;=none;</p></blockquote>
</li>
</ul>
<ul>
<li><strong>Limited database availability because of failing queries on gv$ tables:</strong><br />
<blockquote>
<pre>SQL&gt; select count(*) from gv$session
2 ;
select count(*) from  gv$session
*
ERROR at line 1:
ORA-12850: Could not allocate slaves on  all specified instances: 2 needed, 1
allocated
ORA-12801: error signaled  in parallel query server P001, instance 3599</pre>
</blockquote>
<p>Currently no other known workaround than bouncing all the RAC instances.</li>
<li><strong>DataGuard ASYNC Redo Transport not reliable:</strong> We have a RAC primary / single instance physical standby setup and use async redo transport. During times of heavy ETL on the primary, the standby databases stops at recovery of one archivelog with &#8220;(in transit)&#8221;. Primary is showing this error in alert log:

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">ARC7: Creating remote archive destination LOG_ARCHIVE_DEST_2: <span style="color: #ff0000;">'HAMDB'</span> <span style="color: #66cc66;">&#40;</span>thread <span style="color: #cc66cc;">2</span> sequence <span style="color: #cc66cc;">4044</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>MUCDB2<span style="color: #66cc66;">&#41;</span>
ARC7: Archive log rejected <span style="color: #66cc66;">&#40;</span>thread <span style="color: #cc66cc;">2</span> sequence <span style="color: #cc66cc;">4044</span><span style="color: #66cc66;">&#41;</span> at host <span style="color: #ff0000;">'HAMDB'</span>
FAL<span style="color: #66cc66;">&#91;</span>server<span style="color: #66cc66;">,</span> ARC7<span style="color: #66cc66;">&#93;</span>: FAL archive failed<span style="color: #66cc66;">,</span> see trace file<span style="color: #66cc66;">.</span>
ARCH: FAL archive failed<span style="color: #66cc66;">.</span> Archiver continuing
ORACLE Instance MUCDB2 <span style="color: #66cc66;">-</span> Archival Error<span style="color: #66cc66;">.</span> Archiver continuing<span style="color: #66cc66;">.</span></pre></div></div>

<p>On standby side, it says:<br />
Media Recovery Waiting for thread 2 sequence 4044 (in transit)</p>
<p>The standby database never recovers from this problem, except when standby database is bounced. The problem appears with and without broker configuration. Currently there is no known workaround.</p>
</li>
</ul>
<p>Maybe some of this issues will be addressed in upcoming PSU April, which will be released this week. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2011/04/18/is-11-2-0-2-ready-for-production-judge-yourself/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Recyclebin Bug &#8211; ORA-600 [ktcdso-1] on Oracle 11.2.0.2.1</title>
		<link>http://www.ora-solutions.net/web/2011/03/04/recyclebin-bug-ora-600-ktcdso-1-on-oracle-11-2-0-2-1/</link>
		<comments>http://www.ora-solutions.net/web/2011/03/04/recyclebin-bug-ora-600-ktcdso-1-on-oracle-11-2-0-2-1/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 16:08:29 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[11gR2]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[MetaLink]]></category>
		<category><![CDATA[Oracle Database]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=1031</guid>
		<description><![CDATA[Just a short note: If you are using 11.2.0.2 and 11.2.0.2.1, chances are high that database stability is endangered because of massive ORA-600 [ktcdso-1], unless you have recyclebin deactived with init.ora recyclebin=off. Oracle is currently working on this issue with Bug 10427260: ORA-00600 [KTCDSO-1], [], [], [] WHEN PURGE RECYCLE BIN. Unfortunately, the instance has [...]]]></description>
			<content:encoded><![CDATA[<p>Just a short note:</p>
<p>If you are using 11.2.0.2 and 11.2.0.2.1, chances are high that database stability is endangered because of massive ORA-600 [ktcdso-1], unless you have recyclebin deactived with init.ora recyclebin=off.</p>
<p>Oracle is currently working on this issue with Bug 10427260: ORA-00600 [KTCDSO-1], [], [], [] WHEN PURGE RECYCLE BIN.</p>
<p>Unfortunately, the instance has to be bounced in order to deactivate recyclebin.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2011/03/04/recyclebin-bug-ora-600-ktcdso-1-on-oracle-11-2-0-2-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ACFS Filesystem Monitoring and Group Ownership</title>
		<link>http://www.ora-solutions.net/web/2011/01/10/acfs-filesystem-monitoring-and-group-ownership/</link>
		<comments>http://www.ora-solutions.net/web/2011/01/10/acfs-filesystem-monitoring-and-group-ownership/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 09:06:00 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[11gR2]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[Oracle Enterprise Manager]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=1016</guid>
		<description><![CDATA[When you create an ACFS Filesystem in Grid Infrastructure 11.2.0.1 or 11.2.0.2, the filesystem root directory group ownership is set to Group SS_ASM_GRP, e.g. asmadmin. 1 2 3 4 5 6 7 8 9 10 11 12 &#91;grid@md1 ~&#93;$ cd /opt/oracle/gridbase/acfsmounts &#91;grid@md1 acfsmounts&#93;$ ls -al total 12 drwxr-xr-x 3 grid oinstall 4096 Jan 10 09:44 [...]]]></description>
			<content:encoded><![CDATA[<p>When you create an ACFS Filesystem in Grid Infrastructure 11.2.0.1 or 11.2.0.2, the filesystem root directory group ownership is set to Group SS_ASM_GRP, e.g. asmadmin.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>grid<span style="color: #000000; font-weight: bold;">@</span>md1 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>gridbase<span style="color: #000000; font-weight: bold;">/</span>acfsmounts
<span style="color: #7a0874; font-weight: bold;">&#91;</span>grid<span style="color: #000000; font-weight: bold;">@</span>md1 acfsmounts<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-al</span>
total <span style="color: #000000;">12</span>
drwxr-xr-x  <span style="color: #000000;">3</span> grid oinstall <span style="color: #000000;">4096</span> Jan <span style="color: #000000;">10</span> 09:<span style="color: #000000;">44</span> .
drwxr-xr-x <span style="color: #000000;">10</span> grid oinstall <span style="color: #000000;">4096</span> Jan <span style="color: #000000;">10</span> 09:<span style="color: #000000;">43</span> ..
drwxrwx---  <span style="color: #000000;">4</span> root   asmadm <span style="color: #000000;">4096</span> Jan <span style="color: #000000;">10</span> 09:<span style="color: #000000;">44</span> data_testvol
&nbsp;
SQL<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">select</span> <span style="color: #000000; font-weight: bold;">*</span> from v<span style="color: #007800;">$asm_filesystem</span> where fs_name = <span style="color: #ff0000;">'/opt/oracle/gridbase/acfsmounts/data_testvol'</span>
&nbsp;
FS_NAME                                        AVAILABLE BLOCK_SIZE STATE         CORRU    NUM_VOL TOTAL_SIZE TOTAL_FREE TOTAL_SNAP_SPACE_USAGE
<span style="color: #660033;">----------------------------------------------</span> <span style="color: #660033;">---------</span> <span style="color: #660033;">----------</span> <span style="color: #660033;">-------------</span> <span style="color: #660033;">-----</span> <span style="color: #660033;">----------</span> <span style="color: #660033;">----------</span> <span style="color: #660033;">----------</span> <span style="color: #660033;">----------------------</span>
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>gridbase<span style="color: #000000; font-weight: bold;">/</span>acfsmounts<span style="color: #000000; font-weight: bold;">/</span>data_testvol   <span style="color: #000000;">10</span>-JAN-<span style="color: #000000;">11</span>          <span style="color: #000000;">4</span> AVAILABLE     FALSE          <span style="color: #000000;">1</span>        <span style="color: #000000;">256</span> <span style="color: #000000;">119.769531</span>                      <span style="color: #000000;">0</span></pre></td></tr></table></div>

<p>If &#8211; for whatever reason &#8211; you change the group ownership from asmadm to a different group, ASM can not populate the views v$asm_filesystem and v$asm_acfsvolumes which in turn means that you can not monitor the filesystem with Oracle Enterprise Manager Grid Control because it uses those 2 views for monitoring.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>md1 data_testvol<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># chgrp myapp .</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>md1 data_testvol<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ls -la</span>
total <span style="color: #000000;">80</span>
drwxrwx--- <span style="color: #000000;">4</span> root   myapp     <span style="color: #000000;">4096</span> Jan <span style="color: #000000;">10</span> 09:<span style="color: #000000;">45</span> .
drwxr-xr-x <span style="color: #000000;">3</span> grid   oinstall  <span style="color: #000000;">4096</span> Jan <span style="color: #000000;">10</span> 09:<span style="color: #000000;">44</span> ..
drwxr-xr-x <span style="color: #000000;">5</span> root   root      <span style="color: #000000;">4096</span> Jan <span style="color: #000000;">10</span> 09:<span style="color: #000000;">44</span> .ACFS
<span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> root   asmadm     <span style="color: #000000;">610</span> Jan <span style="color: #000000;">10</span> 09:<span style="color: #000000;">45</span> .fslimit
drwx------ <span style="color: #000000;">2</span> root   root     <span style="color: #000000;">65536</span> Jan <span style="color: #000000;">10</span> 09:<span style="color: #000000;">44</span> lost+found
&nbsp;
&nbsp;
SQL<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">select</span> <span style="color: #000000; font-weight: bold;">*</span> from v<span style="color: #007800;">$asm_filesystem</span> where fs_name = <span style="color: #ff0000;">'/opt/oracle/gridbase/acfsmounts/data_testvol'</span>
  <span style="color: #000000;">2</span>  ;
&nbsp;
no rows selected</pre></td></tr></table></div>

<p>From my point of view, this is a severe limitation. ACFS Filesystems, should like any other filesystem, be able to allow any user/group ownership and still be able to monitor it. However, I could not convince my oracle support engineer to see it the same way&#8230; </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2011/01/10/acfs-filesystem-monitoring-and-group-ownership/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grid Control Agent 11.1: High Virtual Memory Consumption</title>
		<link>http://www.ora-solutions.net/web/2010/12/23/grid-control-agent-11-1-high-virtual-memory-consumption/</link>
		<comments>http://www.ora-solutions.net/web/2010/12/23/grid-control-agent-11-1-high-virtual-memory-consumption/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 09:13:08 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Oracle Enterprise Manager]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=1005</guid>
		<description><![CDATA[There is a known issue in Grid Control 11.1 Agents, which causes huge Virtual Memory Consumption. I have experienced virtual memory consumption of up to 5.6 GB for the emagent process: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 [...]]]></description>
			<content:encoded><![CDATA[<p>There is a known issue in Grid Control 11.1 Agents, which causes huge Virtual Memory Consumption. I have experienced virtual memory consumption of up to 5.6 GB for the emagent process:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">Resources PID: 14103, emagent PPID: 13773 euid: 172 User:agent
--------------------------------------------------------------------------------
CPU Usage (util): 2.5 Log Reads : 14 Wait Reason : OTHER
User/Nice/RT CPU: 2.5 Log Writes: 0 Total RSS/VSS :546.5mb/ 5.68gb
&nbsp;
Regions PID: 14103, emagent PPID: 13773 euid: 172 User:agent
&nbsp;
Type RefCt RSS VSS Locked File Name
--------------------------------------------------------------------------------
NULLDR/Shared 531 4kb 4kb 0kb &lt;nulldref&gt;
MEMMAP/Shared 2 8kb 32kb 0kb /var/.../14103
TEXT /Shared 2 12kb 12kb 0kb /opt/.../bin/emagent
DATA /Priv 1 131.4mb 144.0mb 0kb /opt/.../bin/emagent
MEMMAP/Priv 1 52kb 4.0mb 0kb &lt;mmap&gt;
UAREA /Priv 1 64kb 72kb 0kb &lt;uarea&gt;
UAREA /Priv 1 64kb 72kb 0kb &lt;uarea&gt;
UAREA /Priv 1 64kb 72kb 0kb &lt;uarea&gt;
UAREA /Priv 1 64kb 72kb 0kb &lt;uarea&gt;
UAREA /Priv 1 64kb 72kb 0kb &lt;uarea&gt;
MEMMAP/Priv 1 52kb 4.0mb 0kb &lt;mmap&gt;
UAREA /Priv 1 64kb 72kb 0kb &lt;uarea&gt;
UAREA /Priv 1 64kb 72kb 0kb &lt;uarea&gt;
UAREA /Priv 1 64kb 72kb 0kb &lt;uarea&gt;
UAREA /Priv 1 64kb 72kb 0kb &lt;uarea&gt;
UAREA /Priv 1 64kb 72kb 0kb &lt;uarea&gt;
UAREA /Priv 1 64kb 72kb 0kb &lt;uarea&gt;
MEMMAP/Priv 1 356.0mb 5.32gb 0kb &lt;mmap&gt;</pre></td></tr></table></div>

<p>The workaround for this issue is to set a Heap Size Limit of 512M in $AGENT_HOME/sysman/config/emd.properties:</p>
<p>append the String &#8220;-Xmx512m&#8221; to the line agentJavaDefines.</p>
<p>So the line looks like:</p>
<blockquote><p>agentJavaDefines=-Djava.awt.headless=true -Dsun.lang.ClassLoader.allowArraySyntax=true -Dnetworkaddress.cache.ttl=1800 -DUrlTiming.UseJSSE=true -Doracle.dms.refresh.wait.time=1000 <b>-Xmx512m</b></p></blockquote>
<p>This is the bug, which is platform-independet:<br />
<strong>Bug 9829732: AGENT 11.1.0.1 RUNNING ON OMS BOX IS CONSUMING HIGH MEMORY</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2010/12/23/grid-control-agent-11-1-high-virtual-memory-consumption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

