<?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 Rebuild 10g</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2008/02/09/index-rebuild-10g/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2008/02/09/index-rebuild-10g/</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Sat, 18 May 2013 11:04:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Pavol Babel</title>
		<link>http://jonathanlewis.wordpress.com/2008/02/09/index-rebuild-10g/#comment-39279</link>
		<dc:creator><![CDATA[Pavol Babel]]></dc:creator>
		<pubDate>Sun, 23 Jan 2011 14:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=340#comment-39279</guid>
		<description><![CDATA[Jonathan,

I have to really regret I became regular reader of your blog just two months ago !!!. What a great post, never read by me before. What a pity!!!

Apparently, it is also giving some more answers to our last QUIZ NIGHT :)]]></description>
		<content:encoded><![CDATA[<p>Jonathan,</p>
<p>I have to really regret I became regular reader of your blog just two months ago !!!. What a great post, never read by me before. What a pity!!!</p>
<p>Apparently, it is also giving some more answers to our last QUIZ NIGHT :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Quiz Night &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2008/02/09/index-rebuild-10g/#comment-39277</link>
		<dc:creator><![CDATA[Quiz Night &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Sun, 23 Jan 2011 13:41:36 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=340#comment-39277</guid>
		<description><![CDATA[[...] So, at first sight we might decide the only way to get 400 buffer visits from the index is to have Blevel = 1, visit the root and the leaf. But that&#8217;s not the way it works (apart from a couple of versions which had a bug). [...]]]></description>
		<content:encoded><![CDATA[<p>[...] So, at first sight we might decide the only way to get 400 buffer visits from the index is to have Blevel = 1, visit the root and the leaf. But that&#8217;s not the way it works (apart from a couple of versions which had a bug). [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Something is Bugging Me: V$SESSION and 10046 Trace Files Show OBJECT_ID or DATA_OBJECT_ID? &#171; Charles Hooper&#039;s Oracle Notes</title>
		<link>http://jonathanlewis.wordpress.com/2008/02/09/index-rebuild-10g/#comment-37238</link>
		<dc:creator><![CDATA[Something is Bugging Me: V$SESSION and 10046 Trace Files Show OBJECT_ID or DATA_OBJECT_ID? &#171; Charles Hooper&#039;s Oracle Notes]]></dc:creator>
		<pubDate>Wed, 08 Sep 2010 22:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=340#comment-37238</guid>
		<description><![CDATA[[...] of Jonthan Lewis&#8217; blog articles shows that rebuilding an index will cause its OBJECT_ID and DATA_OBJECT_ID columns to deviate from [...]]]></description>
		<content:encoded><![CDATA[<p>[...] of Jonthan Lewis&#8217; blog articles shows that rebuilding an index will cause its OBJECT_ID and DATA_OBJECT_ID columns to deviate from [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Summary Stats &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2008/02/09/index-rebuild-10g/#comment-32853</link>
		<dc:creator><![CDATA[Summary Stats &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Mon, 27 Apr 2009 19:04:40 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=340#comment-32853</guid>
		<description><![CDATA[[...] Index Rebuild 10g [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Index Rebuild 10g [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Summary Stats &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2008/02/09/index-rebuild-10g/#comment-32851</link>
		<dc:creator><![CDATA[Summary Stats &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Mon, 27 Apr 2009 19:04:24 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=340#comment-32851</guid>
		<description><![CDATA[[...] Index Rebuild 10g [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Index Rebuild 10g [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2008/02/09/index-rebuild-10g/#comment-31761</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Thu, 04 Sep 2008 20:52:07 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=340#comment-31761</guid>
		<description><![CDATA[Hermant,

Sorry about the delay in replying to this - I think it got hidden in a backlog. 

The SQL to create the table and indexes looks like this:

[sourcecode]
create table t1
as
select 
        trunc((rownum-1)/15)    n1,
        trunc((rownum-1)/15)    n2,
        rpad(rownum,180)        v1
from
        all_objects 
where
        rownum &lt;= 3000
;


create table t2
as
select 
        mod(rownum,200)         n1,
        mod(rownum,200)         n2,
        rpad(rownum,180)        v1
from
	all_objects 
where
        rownum &lt;= 3000
;

create index t1_i1 on t1(n1);

[/sourcecode]

After you&#039;ve created the data and collected the statistics, the SQL to query the data looks like this:

[sourcecode]
select 
        count(n2) 
from
        (
        select
                /*+ ordered use_nl(t1) index(t1) */
                t2.n1, t1.n2
        from
                t2,t1
        where
                t2.n2 = 45
        and     t2.n1 = t1.n1
        )
;


[/sourcecode]


Run the query a couple of times before and after the index rebuild to deal with any cleanout.]]></description>
		<content:encoded><![CDATA[<p>Hermant,</p>
<p>Sorry about the delay in replying to this &#8211; I think it got hidden in a backlog. </p>
<p>The SQL to create the table and indexes looks like this:</p>
<pre class="brush: plain; title: ; notranslate">
create table t1
as
select 
        trunc((rownum-1)/15)    n1,
        trunc((rownum-1)/15)    n2,
        rpad(rownum,180)        v1
from
        all_objects 
where
        rownum &lt;= 3000
;


create table t2
as
select 
        mod(rownum,200)         n1,
        mod(rownum,200)         n2,
        rpad(rownum,180)        v1
from
	all_objects 
where
        rownum &lt;= 3000
;

create index t1_i1 on t1(n1);

</pre>
<p>After you&#8217;ve created the data and collected the statistics, the SQL to query the data looks like this:</p>
<pre class="brush: plain; title: ; notranslate">
select 
        count(n2) 
from
        (
        select
                /*+ ordered use_nl(t1) index(t1) */
                t2.n1, t1.n2
        from
                t2,t1
        where
                t2.n2 = 45
        and     t2.n1 = t1.n1
        )
;


</pre>
<p>Run the query a couple of times before and after the index rebuild to deal with any cleanout.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hemant K Chitale</title>
		<link>http://jonathanlewis.wordpress.com/2008/02/09/index-rebuild-10g/#comment-31591</link>
		<dc:creator><![CDATA[Hemant K Chitale]]></dc:creator>
		<pubDate>Tue, 29 Jul 2008 09:57:03 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=340#comment-31591</guid>
		<description><![CDATA[Jonathan,
Can you post the code for your test case ?

I&#039;ve been trying in vain to reproduce the issue (looking at &quot;consistent gets&quot; from autotrace and from 10046 level 8 traces in different runs) but do not get a noticeable difference after a TRUNCATE and REBUILD.  {I&#039;ve taken care of delayed block cleanout as well).
I get the same number or a slightly higher or a slightly lower number of &quot;consistent gets&quot; after a Table TRUNCATE and/or Index REBUILD on thee driven table in the NL join.]]></description>
		<content:encoded><![CDATA[<p>Jonathan,<br />
Can you post the code for your test case ?</p>
<p>I&#8217;ve been trying in vain to reproduce the issue (looking at &#8220;consistent gets&#8221; from autotrace and from 10046 level 8 traces in different runs) but do not get a noticeable difference after a TRUNCATE and REBUILD.  {I&#8217;ve taken care of delayed block cleanout as well).<br />
I get the same number or a slightly higher or a slightly lower number of &#8220;consistent gets&#8221; after a Table TRUNCATE and/or Index REBUILD on thee driven table in the NL join.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hemant K Chitale</title>
		<link>http://jonathanlewis.wordpress.com/2008/02/09/index-rebuild-10g/#comment-31573</link>
		<dc:creator><![CDATA[Hemant K Chitale]]></dc:creator>
		<pubDate>Fri, 25 Jul 2008 03:22:16 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=340#comment-31573</guid>
		<description><![CDATA[This would be Bug 6455161 ?  That would impact Peoplesoft applications that use TRUNCATEs frequently on &quot;temporary&quot; tables that are actually permanent tables (ie, not created as Oracle GLOBAL TEMPORARY TABLEs).]]></description>
		<content:encoded><![CDATA[<p>This would be Bug 6455161 ?  That would impact Peoplesoft applications that use TRUNCATEs frequently on &#8220;temporary&#8221; tables that are actually permanent tables (ie, not created as Oracle GLOBAL TEMPORARY TABLEs).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Index Efficiency &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2008/02/09/index-rebuild-10g/#comment-31039</link>
		<dc:creator><![CDATA[Index Efficiency &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Wed, 14 May 2008 21:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=340#comment-31039</guid>
		<description><![CDATA[[...] A bug in 10g after index rebuilds [...]]]></description>
		<content:encoded><![CDATA[<p>[...] A bug in 10g after index rebuilds [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Log Buffer #84: a Carnival of the Vanities for DBAs</title>
		<link>http://jonathanlewis.wordpress.com/2008/02/09/index-rebuild-10g/#comment-29648</link>
		<dc:creator><![CDATA[Log Buffer #84: a Carnival of the Vanities for DBAs]]></dc:creator>
		<pubDate>Fri, 15 Feb 2008 18:38:47 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=340#comment-29648</guid>
		<description><![CDATA[[...] Jonathan Lewis shines a light on a little bug in index rebuilds in Oracle 10g. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Jonathan Lewis shines a light on a little bug in index rebuilds in Oracle 10g. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
