<?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 Operations</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2006/12/15/index-operations/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2006/12/15/index-operations/</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: Alexandru Ersenie</title>
		<link>http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-41695</link>
		<dc:creator><![CDATA[Alexandru Ersenie]]></dc:creator>
		<pubDate>Mon, 12 Sep 2011 10:57:50 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-41695</guid>
		<description><![CDATA[Hi Jonathan, 
after reading and reading, and trying to find an explanation, i find myself in the position of addressing this question:

We have an ORACLE 10g standard edition 1

I have a HEAP organized table of ~ 6 million records. Doing a select count with full table scan i get:
consistent gets: 29511, and the duration is somewhere about 5 seconds

After moving the table to IOT ( nevermind the reasons behind the decision) the same select count will need:
consistent gets: 120 000
and will need somewhere about 13 seconds. 

The number of CG is normal ( analyzing the index returns about 120 000 blocks)

interesting is that the wait event on the active session doing the IOT query is &quot;db sequential read&quot;, instead of &quot;db scattered read&quot;, which leads me to the following question:

full table scans are known to do scattered reads, taking advantage of the multiblock read. 
index organized tables, due to their organization, will always follow an index fast full scan to process the query, but: it is also said that only oracle enterprise edition can do parallel index scans.

Does that mean that standard edition can do scattered read on full table scan, but not on fast full scan of indexes ?

I have not found a concrete answer to this question yet, and it would be really helpful (for the community also, i am sure) to know this. Would really appreciate your time on this one.

Thank you
Alex]]></description>
		<content:encoded><![CDATA[<p>Hi Jonathan,<br />
after reading and reading, and trying to find an explanation, i find myself in the position of addressing this question:</p>
<p>We have an ORACLE 10g standard edition 1</p>
<p>I have a HEAP organized table of ~ 6 million records. Doing a select count with full table scan i get:<br />
consistent gets: 29511, and the duration is somewhere about 5 seconds</p>
<p>After moving the table to IOT ( nevermind the reasons behind the decision) the same select count will need:<br />
consistent gets: 120 000<br />
and will need somewhere about 13 seconds. </p>
<p>The number of CG is normal ( analyzing the index returns about 120 000 blocks)</p>
<p>interesting is that the wait event on the active session doing the IOT query is &#8220;db sequential read&#8221;, instead of &#8220;db scattered read&#8221;, which leads me to the following question:</p>
<p>full table scans are known to do scattered reads, taking advantage of the multiblock read.<br />
index organized tables, due to their organization, will always follow an index fast full scan to process the query, but: it is also said that only oracle enterprise edition can do parallel index scans.</p>
<p>Does that mean that standard edition can do scattered read on full table scan, but not on fast full scan of indexes ?</p>
<p>I have not found a concrete answer to this question yet, and it would be really helpful (for the community also, i am sure) to know this. Would really appreciate your time on this one.</p>
<p>Thank you<br />
Alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bitmap Index &#171; Ukrainian Oracle User Group</title>
		<link>http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-41432</link>
		<dc:creator><![CDATA[Bitmap Index &#171; Ukrainian Oracle User Group]]></dc:creator>
		<pubDate>Thu, 25 Aug 2011 06:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-41432</guid>
		<description><![CDATA[[...] wasn’t using the B-tree index as it seemed that the only way the index could be used was with an index fast full scan. I was curious, so I said I’d take a look at the query, the object definitions the plan, and the [...]]]></description>
		<content:encoded><![CDATA[<p>[...] wasn’t using the B-tree index as it seemed that the only way the index could be used was with an index fast full scan. I was curious, so I said I’d take a look at the query, the object definitions the plan, and the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bitmap Index &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-41429</link>
		<dc:creator><![CDATA[Bitmap Index &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Wed, 24 Aug 2011 18:20:05 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-41429</guid>
		<description><![CDATA[[...] using the B-tree index as it seemed that the only way the index could be used was with an index fast full scan. I was curious, so I said I&#8217;d take a look at the query, the object definitions the plan, and [...]]]></description>
		<content:encoded><![CDATA[<p>[...] using the B-tree index as it seemed that the only way the index could be used was with an index fast full scan. I was curious, so I said I&#8217;d take a look at the query, the object definitions the plan, and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-41310</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Tue, 16 Aug 2011 09:56:58 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-41310</guid>
		<description><![CDATA[CJ,

There are all sorts of options available to the human that the optimizer code cannot see - this just happens to be a simple and obvious example of the principle. You are perfectly correct that this is a shortcoming of the CBO, and with a little luck it might be one that can be removed relatively easily.]]></description>
		<content:encoded><![CDATA[<p>CJ,</p>
<p>There are all sorts of options available to the human that the optimizer code cannot see &#8211; this just happens to be a simple and obvious example of the principle. You are perfectly correct that this is a shortcoming of the CBO, and with a little luck it might be one that can be removed relatively easily.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CJ</title>
		<link>http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-41296</link>
		<dc:creator><![CDATA[CJ]]></dc:creator>
		<pubDate>Mon, 15 Aug 2011 12:56:39 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-41296</guid>
		<description><![CDATA[Sir,

My point is that if the CBO can do an &#039;Index Full scan&#039; without touching the table, then it should be able to do an &#039;Index Fast Full scan&#039; as well. If it discards that path, then I think that this is a shortcoming of the CBO (unless there is a sound reason which I am not getting). 

I have included the predicate section in the plans. 

Greg Rahn has commented that he will check if the restriction can be lifted.

Many thanks,
CJ]]></description>
		<content:encoded><![CDATA[<p>Sir,</p>
<p>My point is that if the CBO can do an &#8216;Index Full scan&#8217; without touching the table, then it should be able to do an &#8216;Index Fast Full scan&#8217; as well. If it discards that path, then I think that this is a shortcoming of the CBO (unless there is a sound reason which I am not getting). </p>
<p>I have included the predicate section in the plans. </p>
<p>Greg Rahn has commented that he will check if the restriction can be lifted.</p>
<p>Many thanks,<br />
CJ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-41270</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Sun, 14 Aug 2011 08:12:54 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-41270</guid>
		<description><![CDATA[CJ,

The index fast full scan is only available to the optimizer if all columns referenced in the query are in the index.
Even though it&#039;s obvious to the human eye that your predicate is always true and therefore redundant, and even though the optimizer eventually eliminates it (which we would be able to see from the predicate section if you had printed it in the OTN posting), the optimizer has already discarded the index_ffs before it considers the predicate elimination.

I don&#039;t know if everyone is affected, but I get an error page when logging on to OTN at present (but not when logging on to MOS) - so perhaps someone else has been waiting to answer the questioon for you,but has been able to log on.]]></description>
		<content:encoded><![CDATA[<p>CJ,</p>
<p>The index fast full scan is only available to the optimizer if all columns referenced in the query are in the index.<br />
Even though it&#8217;s obvious to the human eye that your predicate is always true and therefore redundant, and even though the optimizer eventually eliminates it (which we would be able to see from the predicate section if you had printed it in the OTN posting), the optimizer has already discarded the index_ffs before it considers the predicate elimination.</p>
<p>I don&#8217;t know if everyone is affected, but I get an error page when logging on to OTN at present (but not when logging on to MOS) &#8211; so perhaps someone else has been waiting to answer the questioon for you,but has been able to log on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CJ</title>
		<link>http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-41263</link>
		<dc:creator><![CDATA[CJ]]></dc:creator>
		<pubDate>Fri, 12 Aug 2011 15:37:08 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-41263</guid>
		<description><![CDATA[Jonathan sir,

I have posted a question about fast full scans of local nonprefixed index, but surprisingly (for me) nobody has replied yet.

Could I request you to take a quick look and give your opinion (even if it is to flame me for a daft question)?

http://forums.oracle.com/forums/message.jspa?messageID=9794705#9794705

Many thanks,
CJ]]></description>
		<content:encoded><![CDATA[<p>Jonathan sir,</p>
<p>I have posted a question about fast full scans of local nonprefixed index, but surprisingly (for me) nobody has replied yet.</p>
<p>Could I request you to take a quick look and give your opinion (even if it is to flame me for a daft question)?</p>
<p><a href="http://forums.oracle.com/forums/message.jspa?messageID=9794705#9794705" rel="nofollow">http://forums.oracle.com/forums/message.jspa?messageID=9794705#9794705</a></p>
<p>Many thanks,<br />
CJ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-32734</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Sun, 22 Mar 2009 00:48:19 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-32734</guid>
		<description><![CDATA[Nataraj,

I haven&#039;t checked for changes in 10g, but the basic arithmetic used to be the same as that used for tablescans, except for using the leaf_blocks figure from dba_indexes instead of the blocks figure from dba_tables. This is documented in Cost Based Oracle - Fundamentals.]]></description>
		<content:encoded><![CDATA[<p>Nataraj,</p>
<p>I haven&#8217;t checked for changes in 10g, but the basic arithmetic used to be the same as that used for tablescans, except for using the leaf_blocks figure from dba_indexes instead of the blocks figure from dba_tables. This is documented in Cost Based Oracle &#8211; Fundamentals.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nataraj</title>
		<link>http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-32696</link>
		<dc:creator><![CDATA[Nataraj]]></dc:creator>
		<pubDate>Sun, 08 Mar 2009 14:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-32696</guid>
		<description><![CDATA[Hi Jonathan,

Would like to know the formula behind the index fast full scan especially with OICA &amp; OIC value for the Global &amp; Local Partitioned Index.  Trying to correlate with 10053 trace but I still couldnt get thro&#039;.. 

Appreciate your inputs..

Version : 10.2.0.3 / No Histograms / Bind Variables / 2 Tables Joins

Thanks.]]></description>
		<content:encoded><![CDATA[<p>Hi Jonathan,</p>
<p>Would like to know the formula behind the index fast full scan especially with OICA &amp; OIC value for the Global &amp; Local Partitioned Index.  Trying to correlate with 10053 trace but I still couldnt get thro&#8217;.. </p>
<p>Appreciate your inputs..</p>
<p>Version : 10.2.0.3 / No Histograms / Bind Variables / 2 Tables Joins</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SReddy</title>
		<link>http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-32508</link>
		<dc:creator><![CDATA[SReddy]]></dc:creator>
		<pubDate>Tue, 06 Jan 2009 17:11:28 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/12/15/index-operations/#comment-32508</guid>
		<description><![CDATA[I have two identical databases with same configuration and hardware at same patch level on all fronts that I could check.  One is test and other production.  While they are complaining about performance issues on test (fairly new setup), I tried to take one simple query to count number of rows in a table.  On production it is doing INDEX FAST FULL SCAN on PK and taking 9 min. and on Test, it is doing INDEX FULL SCAN and taking about 44 min. I tried even import stats from production for that table, behavior didn&#039;t change. I checked db file multiblock read count and other related paramters, they are same on both systems.  Any idea what other thing is influencing this behavior?]]></description>
		<content:encoded><![CDATA[<p>I have two identical databases with same configuration and hardware at same patch level on all fronts that I could check.  One is test and other production.  While they are complaining about performance issues on test (fairly new setup), I tried to take one simple query to count number of rows in a table.  On production it is doing INDEX FAST FULL SCAN on PK and taking 9 min. and on Test, it is doing INDEX FULL SCAN and taking about 44 min. I tried even import stats from production for that table, behavior didn&#8217;t change. I checked db file multiblock read count and other related paramters, they are same on both systems.  Any idea what other thing is influencing this behavior?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
