<?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: treedump</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2009/08/17/treedump/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2009/08/17/treedump/</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: BlogNotes to Myself</title>
		<link>http://jonathanlewis.wordpress.com/2009/08/17/treedump/#comment-49931</link>
		<dc:creator><![CDATA[BlogNotes to Myself]]></dc:creator>
		<pubDate>Thu, 06 Sep 2012 20:20:17 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1971#comment-49931</guid>
		<description><![CDATA[&lt;strong&gt;Oracle Index Rebuild - A Corner Case...&lt;/strong&gt;

Regular index rebuilds in Oracle are a vital necessity - this old myth has been proven wrong long ago. But here is the story about an index where at first we did not understand why a rebuild reduced the size so heavily.After a blooper involving a DROP ...]]></description>
		<content:encoded><![CDATA[<p><strong>Oracle Index Rebuild &#8211; A Corner Case&#8230;</strong></p>
<p>Regular index rebuilds in Oracle are a vital necessity &#8211; this old myth has been proven wrong long ago. But here is the story about an index where at first we did not understand why a rebuild reduced the size so heavily.After a blooper involving a DROP &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Quiz Night &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2009/08/17/treedump/#comment-39290</link>
		<dc:creator><![CDATA[Quiz Night &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Sun, 23 Jan 2011 18:00:35 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1971#comment-39290</guid>
		<description><![CDATA[[...] snapshots of v$mystat, calls to &#8220;alter system flush buffer_cache&#8221;, and event 10200; the treedump can also be very helpful for identifying block [...]]]></description>
		<content:encoded><![CDATA[<p>[...] snapshots of v$mystat, calls to &#8220;alter system flush buffer_cache&#8221;, and event 10200; the treedump can also be very helpful for identifying block [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2009/08/17/treedump/#comment-38154</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Tue, 07 Dec 2010 07:22:56 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1971#comment-38154</guid>
		<description><![CDATA[Some clarification.
The &quot;root&quot; block is just another type of branch block - so the first line is the root block which holds 14 entries which point to 14 blocks below it. The root block is at level 4 (blevel = 4, height = 5 for your index).

The first block pointed to by the root block is at level three, it holds 118 entries; there are 13 other branch blocks at this level

The first block pointed to by the first level 3 branch block is at level 2, it holds 112 entries; there are 117 branch blocks at this level pointed to by the same parent level 3. We could &quot;guesstimate&quot; that there are roughly 13 * 118 other blocks at level 2 (assuming each of the 14 level 3 branch blocks all hold the same number of pointers.

etc. etc. etc.]]></description>
		<content:encoded><![CDATA[<p>Some clarification.<br />
The &#8220;root&#8221; block is just another type of branch block &#8211; so the first line is the root block which holds 14 entries which point to 14 blocks below it. The root block is at level 4 (blevel = 4, height = 5 for your index).</p>
<p>The first block pointed to by the root block is at level three, it holds 118 entries; there are 13 other branch blocks at this level</p>
<p>The first block pointed to by the first level 3 branch block is at level 2, it holds 112 entries; there are 117 branch blocks at this level pointed to by the same parent level 3. We could &#8220;guesstimate&#8221; that there are roughly 13 * 118 other blocks at level 2 (assuming each of the 14 level 3 branch blocks all hold the same number of pointers.</p>
<p>etc. etc. etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bhavik Desai</title>
		<link>http://jonathanlewis.wordpress.com/2009/08/17/treedump/#comment-38139</link>
		<dc:creator><![CDATA[Bhavik Desai]]></dc:creator>
		<pubDate>Mon, 06 Dec 2010 15:05:58 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1971#comment-38139</guid>
		<description><![CDATA[Jonathan,

Few questions to understand the treedump...

1.I checked first 30K rows and last 1k rows(rows for leaf blocks) in my treedump and i found that &#039;nrow&#039; is same as &#039;rrow&#039; everywhere. How should i interpret it ?
2.snap of my treedump
[sourcecode gutter=&quot;false&quot;]
----- begin tree dump
branch: 0x40b700d 67858445 (0: nrow: 14, level: 4)
   branch: 0x161bada0 370912672 (-1: nrow: 118, level: 3)
      branch: 0x14036237 335766071 (-1: nrow: 112, level: 2)
         branch: 0x16002253 369107539 (-1: nrow: 187, level: 1)
            leaf: 0x40b700e 67858446 (-1: nrow: 205 rrow: 205)
[/sourcecode]
Am i right in interpretation that,
there are 14 branch blocks at level 4 (just below root block),118 branch blocks at level-3,112 branch blocks are level-2 and 187 branch blocks at level-1.
First branch block(i.e. &#039;-1&#039;) at level-1 points to 205 leaf blocks...and so on...???]]></description>
		<content:encoded><![CDATA[<p>Jonathan,</p>
<p>Few questions to understand the treedump&#8230;</p>
<p>1.I checked first 30K rows and last 1k rows(rows for leaf blocks) in my treedump and i found that &#8216;nrow&#8217; is same as &#8216;rrow&#8217; everywhere. How should i interpret it ?<br />
2.snap of my treedump</p>
<pre class="brush: plain; gutter: false; title: ; notranslate">
----- begin tree dump
branch: 0x40b700d 67858445 (0: nrow: 14, level: 4)
   branch: 0x161bada0 370912672 (-1: nrow: 118, level: 3)
      branch: 0x14036237 335766071 (-1: nrow: 112, level: 2)
         branch: 0x16002253 369107539 (-1: nrow: 187, level: 1)
            leaf: 0x40b700e 67858446 (-1: nrow: 205 rrow: 205)
</pre>
<p>Am i right in interpretation that,<br />
there are 14 branch blocks at level 4 (just below root block),118 branch blocks at level-3,112 branch blocks are level-2 and 187 branch blocks at level-1.<br />
First branch block(i.e. &#8216;-1&#8242;) at level-1 points to 205 leaf blocks&#8230;and so on&#8230;???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Index ITLs &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2009/08/17/treedump/#comment-36431</link>
		<dc:creator><![CDATA[Index ITLs &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Sat, 05 Jun 2010 08:58:34 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1971#comment-36431</guid>
		<description><![CDATA[[...] treedump : A useful (though sometimes expensive) option for looking into index structures [...]]]></description>
		<content:encoded><![CDATA[<p>[...] treedump : A useful (though sometimes expensive) option for looking into index structures [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2009/08/17/treedump/#comment-36167</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Thu, 06 May 2010 18:20:23 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1971#comment-36167</guid>
		<description><![CDATA[Franck,

Thanks for that comment - excellent point about the transportable tablespace as well, that&#039;s another of those things that&#039;s easy to forget. 

I put in a &quot;!=&quot; on your comment, I&#039;m guessing that the HTML parser took out a &quot;less than, greater than&quot; that you&#039;d had there.]]></description>
		<content:encoded><![CDATA[<p>Franck,</p>
<p>Thanks for that comment &#8211; excellent point about the transportable tablespace as well, that&#8217;s another of those things that&#8217;s easy to forget. </p>
<p>I put in a &#8220;!=&#8221; on your comment, I&#8217;m guessing that the HTML parser took out a &#8220;less than, greater than&#8221; that you&#8217;d had there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: franckpachot</title>
		<link>http://jonathanlewis.wordpress.com/2009/08/17/treedump/#comment-36164</link>
		<dc:creator><![CDATA[franckpachot]]></dc:creator>
		<pubDate>Thu, 06 May 2010 12:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1971#comment-36164</guid>
		<description><![CDATA[Hi, In fact I have tested it as I had to treedump (using our example) on a database that has file# != rfile#, and that&#039;s how I discovered it. 

It is not only the number of datafiles that makes them different: when you use transportable tablespaces, the relative file number do not change (or that would involve visiting all data blocks in the tablespace, and all rowids that reference a block within that tablespace...)]]></description>
		<content:encoded><![CDATA[<p>Hi, In fact I have tested it as I had to treedump (using our example) on a database that has file# != rfile#, and that&#8217;s how I discovered it. </p>
<p>It is not only the number of datafiles that makes them different: when you use transportable tablespaces, the relative file number do not change (or that would involve visiting all data blocks in the tablespace, and all rowids that reference a block within that tablespace&#8230;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2009/08/17/treedump/#comment-36130</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Sun, 02 May 2010 11:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1971#comment-36130</guid>
		<description><![CDATA[Franck,

Thanks for that, it&#039;s a very good point, and one that I had completely overlooked.  I think you&#039;re probably correct (it certainly makes sense), but I haven&#039;t actually checked but I will remember to verify it one day.

I think the difference won&#039;t be visible to many DBA&#039;s, though; my memory of the change in file number formats is that Oracle rigged their implementation so that the relative file number and absolute file number were the same until you had about 1,024 files (possibly 1,022 if you want to be precise) - and there is an event you can set to break this connection so that you can test without having to create a thousand files.]]></description>
		<content:encoded><![CDATA[<p>Franck,</p>
<p>Thanks for that, it&#8217;s a very good point, and one that I had completely overlooked.  I think you&#8217;re probably correct (it certainly makes sense), but I haven&#8217;t actually checked but I will remember to verify it one day.</p>
<p>I think the difference won&#8217;t be visible to many DBA&#8217;s, though; my memory of the change in file number formats is that Oracle rigged their implementation so that the relative file number and absolute file number were the same until you had about 1,024 files (possibly 1,022 if you want to be precise) &#8211; and there is an event you can set to break this connection so that you can test without having to create a thousand files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Franck Pachot</title>
		<link>http://jonathanlewis.wordpress.com/2009/08/17/treedump/#comment-36105</link>
		<dc:creator><![CDATA[Franck Pachot]]></dc:creator>
		<pubDate>Thu, 29 Apr 2010 07:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1971#comment-36105</guid>
		<description><![CDATA[Hi Jonathan,

I have a remark about &lt;i&gt;dbms_utility.data_block_address_file(20976011) file#&lt;/i&gt;. If if I&#039;m not mistaken, the treedump gives the &lt;b&gt;relative&lt;/b&gt; DBA (data block address) of the leaves. But block dump takes the &lt;b&gt;absolute&lt;/b&gt; file#.
So in your example dbms_utility.data_block_address_file(20976011) gives the &lt;b&gt;rfile#&lt;/b&gt; that we need to convert into &lt;b&gt;file#&lt;/b&gt; (from v$datafile - knowing the index segment&#039;s tablespace) before using it for block dump. They were probably equals in your example.

Plase correct me if I&#039;m wrong.

Regards,
Franck.]]></description>
		<content:encoded><![CDATA[<p>Hi Jonathan,</p>
<p>I have a remark about <i>dbms_utility.data_block_address_file(20976011) file#</i>. If if I&#8217;m not mistaken, the treedump gives the <b>relative</b> DBA (data block address) of the leaves. But block dump takes the <b>absolute</b> file#.<br />
So in your example dbms_utility.data_block_address_file(20976011) gives the <b>rfile#</b> that we need to convert into <b>file#</b> (from v$datafile &#8211; knowing the index segment&#8217;s tablespace) before using it for block dump. They were probably equals in your example.</p>
<p>Plase correct me if I&#8217;m wrong.</p>
<p>Regards,<br />
Franck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Treedump &#8211; 2 &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2009/08/17/treedump/#comment-35709</link>
		<dc:creator><![CDATA[Treedump &#8211; 2 &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Sun, 07 Mar 2010 18:34:15 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1971#comment-35709</guid>
		<description><![CDATA[[...] start with an article on the treedump command, which I published a little while ago. This dumps a tracefile describing your index, one [...]]]></description>
		<content:encoded><![CDATA[<p>[...] start with an article on the treedump command, which I published a little while ago. This dumps a tracefile describing your index, one [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
