<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Multi-Column Correlation and Extended Stats in Oracle 11g</title>
	<link>http://www.pythian.com/blogs/906/multi-column-correlation-and-extended-stats-in-oracle-11g</link>
	<description>News and views from Pythian DBAs</description>
	<pubDate>Sat, 22 Nov 2008 05:50:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>By: Alex Fatkulin</title>
		<link>http://www.pythian.com/blogs/906/multi-column-correlation-and-extended-stats-in-oracle-11g#comment-180358</link>
		<dc:creator>Alex Fatkulin</dc:creator>
		<pubDate>Tue, 15 Apr 2008 20:47:46 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/906/multi-column-correlation-and-extended-stats-in-oracle-11g#comment-180358</guid>
		<description>Nice post!

I would like to add that in 10G you still can battle correlation problems using higher levels of dynamic sampling (to certain degree).

In 10.2.0.3 the correct cardinality was reported on level 4:

SQL&#62; select /*+ dynamic_sampling(4) */ count(*) from t_vc where n1=10 and n2=10;

Execution Plan
----------------------------------------------------------
Plan hash value: 2872596891

---------------------------------------------------------------------------
&#124; Id  &#124; Operation          &#124; Name &#124; Rows  &#124; Bytes &#124; Cost (%CPU)&#124; Time     &#124;
---------------------------------------------------------------------------
&#124;   0 &#124; SELECT STATEMENT   &#124;      &#124;     1 &#124;     6 &#124;     8   (0)&#124; 00:00:01 &#124;
&#124;   1 &#124;  SORT AGGREGATE    &#124;      &#124;     1 &#124;     6 &#124;            &#124;          &#124;
&#124;*  2 &#124;   TABLE ACCESS FULL&#124; T_VC &#124;   100 &#124;   600 &#124;     8   (0)&#124; 00:00:01 &#124;
---------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

   2 - filter("N1"=10 AND "N2"=10)

Note
-----
   - dynamic sampling used for this statement</description>
		<content:encoded><![CDATA[<p>Nice post!</p>
<p>I would like to add that in 10G you still can battle correlation problems using higher levels of dynamic sampling (to certain degree).</p>
<p>In 10.2.0.3 the correct cardinality was reported on level 4:</p>
<p>SQL&gt; select /*+ dynamic_sampling(4) */ count(*) from t_vc where n1=10 and n2=10;</p>
<p>Execution Plan<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Plan hash value: 2872596891</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
| Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
|   0 | SELECT STATEMENT   |      |     1 |     6 |     8   (0)| 00:00:01 |<br />
|   1 |  SORT AGGREGATE    |      |     1 |     6 |            |          |<br />
|*  2 |   TABLE ACCESS FULL| T_VC |   100 |   600 |     8   (0)| 00:00:01 |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Predicate Information (identified by operation id):<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>   2 - filter(&#8221;N1&#8243;=10 AND &#8220;N2&#8243;=10)</p>
<p>Note<br />
&#8212;&#8211;<br />
   - dynamic sampling used for this statement</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Log Buffer #92: a Carnival of the Vanities for DBAs</title>
		<link>http://www.pythian.com/blogs/906/multi-column-correlation-and-extended-stats-in-oracle-11g#comment-178784</link>
		<dc:creator>Log Buffer #92: a Carnival of the Vanities for DBAs</dc:creator>
		<pubDate>Fri, 11 Apr 2008 16:45:45 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/906/multi-column-correlation-and-extended-stats-in-oracle-11g#comment-178784</guid>
		<description>[...] A new blogger made his first appearance here this week: Riyaj Shamsudeen, with his item on multi-column correlation and extended stats in Oracle 11g. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] A new blogger made his first appearance here this week: Riyaj Shamsudeen, with his item on multi-column correlation and extended stats in Oracle 11g. [&#8230;]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
