<?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: Index Size</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2009/05/22/index-size/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2009/05/22/index-size/</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Mon, 20 May 2013 17:10:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: jcon.no: Oracle Blog - When to rebuild an Oracle index?</title>
		<link>http://jonathanlewis.wordpress.com/2009/05/22/index-size/#comment-44065</link>
		<dc:creator><![CDATA[jcon.no: Oracle Blog - When to rebuild an Oracle index?]]></dc:creator>
		<pubDate>Thu, 05 Jan 2012 10:26:55 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1291#comment-44065</guid>
		<description><![CDATA[[...] next following days). So the question is &#8220;What indexes should be rebuilt?&#8221;. I just read this article from Jonathan Lewis that might just give us a possible answer. In 10g Oracle introduced the [...]]]></description>
		<content:encoded><![CDATA[<p>[...] next following days). So the question is &#8220;What indexes should be rebuilt?&#8221;. I just read this article from Jonathan Lewis that might just give us a possible answer. In 10g Oracle introduced the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Index size bug &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2009/05/22/index-size/#comment-44029</link>
		<dc:creator><![CDATA[Index size bug &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Wed, 04 Jan 2012 17:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1291#comment-44029</guid>
		<description><![CDATA[[...] a follow-up to a post I did some time ago about estimating the size of an index before you create it. The note describes dbms_stats.create_index_cost() procedure, and how it [...]]]></description>
		<content:encoded><![CDATA[<p>[...] a follow-up to a post I did some time ago about estimating the size of an index before you create it. The note describes dbms_stats.create_index_cost() procedure, and how it [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2009/05/22/index-size/#comment-33230</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Wed, 03 Jun 2009 18:44:26 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1291#comment-33230</guid>
		<description><![CDATA[George,

The important difference between &lt;em&gt;&lt;strong&gt;create_table_cost&lt;/strong&gt;&lt;/em&gt; and &lt;em&gt;&lt;strong&gt;create_index_cost &lt;/strong&gt;&lt;/em&gt;is that you supply the correct DDL for creating an index on an existing table to &lt;em&gt;&lt;strong&gt;create_index_cost&lt;/strong&gt;&lt;/em&gt; - and Oracle uses the table-related stats in the data dictionary to do its arithmetic - whereas you simply provide a list of column types and sizes (or just a row size) with some other numbers to use &lt;em&gt;&lt;strong&gt;create_table_cost&lt;/strong&gt;&lt;/em&gt;.

It shouldn&#039;t be too difficult for Oracle to include a routine to take a DDL statement for &lt;em&gt;&#039;create table&#039;&lt;/em&gt; and do the same sort of thing.  (In fact, I think I&#039;ve seen one such routine but I can&#039;t remember where).  Of course, you could just take the top line output from &lt;em&gt;&lt;strong&gt;dbms_xplan.display()&lt;/strong&gt;&lt;/em&gt; for &lt;em&gt;&#039;explain for create table...&#039;&lt;/em&gt; and use the &lt;em&gt;&lt;strong&gt;Rows&lt;/strong&gt;&lt;/em&gt; and &lt;em&gt;&lt;strong&gt;Bytes &lt;/strong&gt;&lt;/em&gt;columns to work out the space requirement by hand.]]></description>
		<content:encoded><![CDATA[<p>George,</p>
<p>The important difference between <em><strong>create_table_cost</strong></em> and <em><strong>create_index_cost </strong></em>is that you supply the correct DDL for creating an index on an existing table to <em><strong>create_index_cost</strong></em> &#8211; and Oracle uses the table-related stats in the data dictionary to do its arithmetic &#8211; whereas you simply provide a list of column types and sizes (or just a row size) with some other numbers to use <em><strong>create_table_cost</strong></em>.</p>
<p>It shouldn&#8217;t be too difficult for Oracle to include a routine to take a DDL statement for <em>&#8216;create table&#8217;</em> and do the same sort of thing.  (In fact, I think I&#8217;ve seen one such routine but I can&#8217;t remember where).  Of course, you could just take the top line output from <em><strong>dbms_xplan.display()</strong></em> for <em>&#8216;explain for create table&#8230;&#8217;</em> and use the <em><strong>Rows</strong></em> and <em><strong>Bytes </strong></em>columns to work out the space requirement by hand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: george</title>
		<link>http://jonathanlewis.wordpress.com/2009/05/22/index-size/#comment-33221</link>
		<dc:creator><![CDATA[george]]></dc:creator>
		<pubDate>Tue, 02 Jun 2009 17:03:41 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1291#comment-33221</guid>
		<description><![CDATA[unlike create_table_cost, create_index_cost doesn&#039;t contain a parameter row_count , so how does estimation work for different row count?]]></description>
		<content:encoded><![CDATA[<p>unlike create_table_cost, create_index_cost doesn&#8217;t contain a parameter row_count , so how does estimation work for different row count?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2009/05/22/index-size/#comment-33155</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Tue, 26 May 2009 11:07:40 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1291#comment-33155</guid>
		<description><![CDATA[Randolf,
Thanks for the comment and link.]]></description>
		<content:encoded><![CDATA[<p>Randolf,<br />
Thanks for the comment and link.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2009/05/22/index-size/#comment-33154</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Tue, 26 May 2009 11:07:19 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1291#comment-33154</guid>
		<description><![CDATA[The most obvious problem with that &lt;em&gt;&lt;strong&gt;analyze&lt;/strong&gt;&lt;/em&gt; call is that it tries to lock the table in share mode (mode 4) using the &lt;em&gt;&lt;strong&gt;nowait&lt;/strong&gt;&lt;/em&gt; option. If anyone is updating the table the analyze fails with Oracle error ORA-00054; if the lock is acquired then anyone attempting to update the table has to wait for the analyze to complete.]]></description>
		<content:encoded><![CDATA[<p>The most obvious problem with that <em><strong>analyze</strong></em> call is that it tries to lock the table in share mode (mode 4) using the <em><strong>nowait</strong></em> option. If anyone is updating the table the analyze fails with Oracle error ORA-00054; if the lock is acquired then anyone attempting to update the table has to wait for the analyze to complete.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Two Excellent Index Related Blog Posts &#171; Richard Foote&#8217;s Oracle Blog</title>
		<link>http://jonathanlewis.wordpress.com/2009/05/22/index-size/#comment-33145</link>
		<dc:creator><![CDATA[Two Excellent Index Related Blog Posts &#171; Richard Foote&#8217;s Oracle Blog]]></dc:creator>
		<pubDate>Mon, 25 May 2009 11:15:10 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1291#comment-33145</guid>
		<description><![CDATA[[...] first is by Jonathan Lewis who discusses in a post called Index Size how one might determine which indexes to perhaps consider for an index rebuild by using the [...]]]></description>
		<content:encoded><![CDATA[<p>[...] first is by Jonathan Lewis who discusses in a post called Index Size how one might determine which indexes to perhaps consider for an index rebuild by using the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PdV</title>
		<link>http://jonathanlewis.wordpress.com/2009/05/22/index-size/#comment-33132</link>
		<dc:creator><![CDATA[PdV]]></dc:creator>
		<pubDate>Sat, 23 May 2009 19:06:16 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1291#comment-33132</guid>
		<description><![CDATA[For estimating new indexes, I&#039;d welcome a good guesstimate. 

But I am weary of any (space-, size-)esitmate. 
Reality tends to invalidate any size-estimate by roughly a factor of 10 (pi-square rounded to a whole number) before the year is over.

Index-Compression (of suitable indexes) is an under-used feature and a bit of promotion for that would be good.

But for existing indexes, 
what about the old-fashioned:

SQL&gt; analyze index abc_pk VALIDATE STRUCTURE ;

Followed by a select from INDEX_STATS ?

(also a bit of work, as it needs to be done one-at-a-time, and I&#039;m fairly lazy myself)]]></description>
		<content:encoded><![CDATA[<p>For estimating new indexes, I&#8217;d welcome a good guesstimate. </p>
<p>But I am weary of any (space-, size-)esitmate.<br />
Reality tends to invalidate any size-estimate by roughly a factor of 10 (pi-square rounded to a whole number) before the year is over.</p>
<p>Index-Compression (of suitable indexes) is an under-used feature and a bit of promotion for that would be good.</p>
<p>But for existing indexes,<br />
what about the old-fashioned:</p>
<p>SQL&gt; analyze index abc_pk VALIDATE STRUCTURE ;</p>
<p>Followed by a select from INDEX_STATS ?</p>
<p>(also a bit of work, as it needs to be done one-at-a-time, and I&#8217;m fairly lazy myself)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randolf Geist</title>
		<link>http://jonathanlewis.wordpress.com/2009/05/22/index-size/#comment-33123</link>
		<dc:creator><![CDATA[Randolf Geist]]></dc:creator>
		<pubDate>Fri, 22 May 2009 20:45:06 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1291#comment-33123</guid>
		<description><![CDATA[Jonathan,

I think the EXPLAIN PLAN on CREATE INDEX functionality is really quite limited. It starts with the dependency on the available statistics, not considering the number of nulls defined for the column (at least for the &quot;ROWS&quot; shown, may be indirectly for the size by using the AVG_COL_LEN) and doesn&#039;t end with no reasonable support for function-based indexes and their expressions (which is challenging I have to admit).

Not to mention the shortcomings you&#039;ve pointed out: No compression considered and the &quot;tablespace&quot; oddity.

Some details about my findings in this regard: http://oracle-randolf.blogspot.com/2009/02/explain-plan-on-ddls.html

Regards,
Randolf]]></description>
		<content:encoded><![CDATA[<p>Jonathan,</p>
<p>I think the EXPLAIN PLAN on CREATE INDEX functionality is really quite limited. It starts with the dependency on the available statistics, not considering the number of nulls defined for the column (at least for the &#8220;ROWS&#8221; shown, may be indirectly for the size by using the AVG_COL_LEN) and doesn&#8217;t end with no reasonable support for function-based indexes and their expressions (which is challenging I have to admit).</p>
<p>Not to mention the shortcomings you&#8217;ve pointed out: No compression considered and the &#8220;tablespace&#8221; oddity.</p>
<p>Some details about my findings in this regard: <a href="http://oracle-randolf.blogspot.com/2009/02/explain-plan-on-ddls.html" rel="nofollow">http://oracle-randolf.blogspot.com/2009/02/explain-plan-on-ddls.html</a></p>
<p>Regards,<br />
Randolf</p>
]]></content:encoded>
	</item>
</channel>
</rss>
