<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Analyze This &#8211; 2</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2010/04/01/analyze-this-2-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2010/04/01/analyze-this-2-2/</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Fri, 17 May 2013 13:58:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: I Wish &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2010/04/01/analyze-this-2-2/#comment-43230</link>
		<dc:creator><![CDATA[I Wish &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Fri, 16 Dec 2011 18:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=3427#comment-43230</guid>
		<description><![CDATA[[...] Another difference between analyze and dbms_stats Anomalies with counting continued row activity Share this:TwitterLike this:LikeBe the first to like this post.   Leave a Comment [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Another difference between analyze and dbms_stats Anomalies with counting continued row activity Share this:TwitterLike this:LikeBe the first to like this post.   Leave a Comment [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blogroll Report 26/03 /2010 &#8211; 02/04/2010 &#171; Coskan&#8217;s Approach to Oracle</title>
		<link>http://jonathanlewis.wordpress.com/2010/04/01/analyze-this-2-2/#comment-36311</link>
		<dc:creator><![CDATA[Blogroll Report 26/03 /2010 &#8211; 02/04/2010 &#171; Coskan&#8217;s Approach to Oracle]]></dc:creator>
		<pubDate>Sun, 23 May 2010 22:21:38 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=3427#comment-36311</guid>
		<description><![CDATA[[...] 6-Why to use DBMS_STATS instead of analyze ? Jonathan Lewis-Analyze this Jonathan Lewis-Analyze this 2 [...]]]></description>
		<content:encoded><![CDATA[<p>[...] 6-Why to use DBMS_STATS instead of analyze ? Jonathan Lewis-Analyze this Jonathan Lewis-Analyze this 2 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: coskan</title>
		<link>http://jonathanlewis.wordpress.com/2010/04/01/analyze-this-2-2/#comment-36159</link>
		<dc:creator><![CDATA[coskan]]></dc:creator>
		<pubDate>Wed, 05 May 2010 08:40:22 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=3427#comment-36159</guid>
		<description><![CDATA[I did another test

1- disable the _optimizer_compute_index_stats by setting false 
2- create the index 
3- gather stats with analyze index compute statistics
4- drop index
5- create index again
6- gather statistics with dbms_stats.gather_index_stats(username,indexname) 

What I see on trace is dbms_stats using different sqls then compute stats but populate dba_indexes with same values at the end. Documentation of dbms_stats also says &quot;estimate_percent : Percentage of rows to estimate (NULL means compute).&quot; 

I think dbms_stats might differ when it comes to partitioned indexes but it needs more testing which I am not able to do now.]]></description>
		<content:encoded><![CDATA[<p>I did another test</p>
<p>1- disable the _optimizer_compute_index_stats by setting false<br />
2- create the index<br />
3- gather stats with analyze index compute statistics<br />
4- drop index<br />
5- create index again<br />
6- gather statistics with dbms_stats.gather_index_stats(username,indexname) </p>
<p>What I see on trace is dbms_stats using different sqls then compute stats but populate dba_indexes with same values at the end. Documentation of dbms_stats also says &#8220;estimate_percent : Percentage of rows to estimate (NULL means compute).&#8221; </p>
<p>I think dbms_stats might differ when it comes to partitioned indexes but it needs more testing which I am not able to do now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timur Akhmadeev</title>
		<link>http://jonathanlewis.wordpress.com/2010/04/01/analyze-this-2-2/#comment-36158</link>
		<dc:creator><![CDATA[Timur Akhmadeev]]></dc:creator>
		<pubDate>Wed, 05 May 2010 08:33:04 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=3427#comment-36158</guid>
		<description><![CDATA[I think it&#039;s best to ask Oracle support for clarification of what parameters are used for gathering index statistics automatically on CREATE INDEX. I don&#039;t know, but I&#039;d guess it is probably the same as calling gather_index_stats without additional parameters specified. I prefer not to trust automatic statistics gathering and run dbms_stats.gather_table_stats with cascade=&gt;true and parameters I want such as no_invalidate=&gt;false, etc.]]></description>
		<content:encoded><![CDATA[<p>I think it&#8217;s best to ask Oracle support for clarification of what parameters are used for gathering index statistics automatically on CREATE INDEX. I don&#8217;t know, but I&#8217;d guess it is probably the same as calling gather_index_stats without additional parameters specified. I prefer not to trust automatic statistics gathering and run dbms_stats.gather_table_stats with cascade=&gt;true and parameters I want such as no_invalidate=&gt;false, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: coskan</title>
		<link>http://jonathanlewis.wordpress.com/2010/04/01/analyze-this-2-2/#comment-36157</link>
		<dc:creator><![CDATA[coskan]]></dc:creator>
		<pubDate>Wed, 05 May 2010 07:49:55 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=3427#comment-36157</guid>
		<description><![CDATA[Timur,

Actually that change is my reason to ask. What I want to be sure is if compute stats any different than dbms_stats.gathar_index_stats  and if it is which one is used default for index creation ?]]></description>
		<content:encoded><![CDATA[<p>Timur,</p>
<p>Actually that change is my reason to ask. What I want to be sure is if compute stats any different than dbms_stats.gathar_index_stats  and if it is which one is used default for index creation ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timur Akhmadeev</title>
		<link>http://jonathanlewis.wordpress.com/2010/04/01/analyze-this-2-2/#comment-36156</link>
		<dc:creator><![CDATA[Timur Akhmadeev]]></dc:creator>
		<pubDate>Wed, 05 May 2010 06:46:51 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=3427#comment-36156</guid>
		<description><![CDATA[Starting with 10g CREATE INDEX automatically &lt;a href=&quot;http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5010.htm#sthref6626&quot; rel=&quot;nofollow&quot;&gt;collects&lt;/a&gt; optimizer statistics. The behavior is controlled with _optimizer_compute_index_stats parameter which is true by default in 10g.]]></description>
		<content:encoded><![CDATA[<p>Starting with 10g CREATE INDEX automatically <a href="http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5010.htm#sthref6626" rel="nofollow">collects</a> optimizer statistics. The behavior is controlled with _optimizer_compute_index_stats parameter which is true by default in 10g.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: coskan</title>
		<link>http://jonathanlewis.wordpress.com/2010/04/01/analyze-this-2-2/#comment-36155</link>
		<dc:creator><![CDATA[coskan]]></dc:creator>
		<pubDate>Tue, 04 May 2010 23:08:47 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=3427#comment-36155</guid>
		<description><![CDATA[Jonathan 

Is there a difference between (or is there any possibility second one can behave different) ;

create index ix_t1_n1 on t1(n1) 

and 

create index ix_t1_n1 on t1(n1) compute statistics 

I could not find additional/different work in 10046 trace for both operation and also data in user_indexes are same.]]></description>
		<content:encoded><![CDATA[<p>Jonathan </p>
<p>Is there a difference between (or is there any possibility second one can behave different) ;</p>
<p>create index ix_t1_n1 on t1(n1) </p>
<p>and </p>
<p>create index ix_t1_n1 on t1(n1) compute statistics </p>
<p>I could not find additional/different work in 10046 trace for both operation and also data in user_indexes are same.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2010/04/01/analyze-this-2-2/#comment-35972</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Sat, 03 Apr 2010 10:25:53 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=3427#comment-35972</guid>
		<description><![CDATA[Martin,

Glad to hear the results of your poll. (And sorry to read about the impact of &lt;a href=&quot;http://mwidlake.wordpress.com/2010/04/01/friday-philosophy-i-killed-a-presentation&quot; rel=&quot;nofollow&quot;&gt;&lt;em&gt;&lt;strong&gt;your presentation on stats&lt;/strong&gt;&lt;em&gt;&lt;/a&gt;)
]]></description>
		<content:encoded><![CDATA[<p>Martin,</p>
<p>Glad to hear the results of your poll. (And sorry to read about the impact of <a href="http://mwidlake.wordpress.com/2010/04/01/friday-philosophy-i-killed-a-presentation" rel="nofollow"><em><strong>your presentation on stats</strong></em><em></em></a>)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mwidlake</title>
		<link>http://jonathanlewis.wordpress.com/2010/04/01/analyze-this-2-2/#comment-35969</link>
		<dc:creator><![CDATA[mwidlake]]></dc:creator>
		<pubDate>Fri, 02 Apr 2010 12:55:20 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=3427#comment-35969</guid>
		<description><![CDATA[Nice post about that difference.

Just some feedback for you Jonathan. It just so happens I was presenting on &quot;gathering stats&quot; at a UKOUG SIG earlier this week and I asked the audience some questions, including who still use ANALYZE.

The audience was small, only 25 or so people, but of them 2 still used Oracle 9 as their main DB, about 4 or 5 used V10.1 and everyone else used 10.2, so about 70%. No one used 11 yet as their main platform but about 50% had some 11g systems.

As for gathering stats, no one was using ANALYZE anymore, which is the first time I&#039;ve found no one still using ANALYZE as a matter of course. Even the V9 people had swapped to DBMS_STATS I am glad to say.

Several of us did admit to using ANALYZE for &quot;quick tests&quot; though :-)

Martin]]></description>
		<content:encoded><![CDATA[<p>Nice post about that difference.</p>
<p>Just some feedback for you Jonathan. It just so happens I was presenting on &#8220;gathering stats&#8221; at a UKOUG SIG earlier this week and I asked the audience some questions, including who still use ANALYZE.</p>
<p>The audience was small, only 25 or so people, but of them 2 still used Oracle 9 as their main DB, about 4 or 5 used V10.1 and everyone else used 10.2, so about 70%. No one used 11 yet as their main platform but about 50% had some 11g systems.</p>
<p>As for gathering stats, no one was using ANALYZE anymore, which is the first time I&#8217;ve found no one still using ANALYZE as a matter of course. Even the V9 people had swapped to DBMS_STATS I am glad to say.</p>
<p>Several of us did admit to using ANALYZE for &#8220;quick tests&#8221; though :-)</p>
<p>Martin</p>
]]></content:encoded>
	</item>
</channel>
</rss>
