<?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/"
		>
<channel>
	<title>Comments on: Reporting Space-Wasting Objects in Oracle</title>
	<atom:link href="http://www.pythian.com/news/464/reporting-space-wasting-objects-in-oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/464/reporting-space-wasting-objects-in-oracle/</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Fri, 10 Feb 2012 13:01:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Paul</title>
		<link>http://www.pythian.com/news/464/reporting-space-wasting-objects-in-oracle/#comment-515757</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Tue, 01 Mar 2011 03:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/464/reporting-space-wasting-objects-in-oracle#comment-515757</guid>
		<description>Hi Marc,

Nice procedure btw.

You might find this useful. Sometimes tables aren&#039;t full of empty blocks but mostly empty blocks (fs4_blocks in dbms_space terms).

select owner,segment_name,round(fs4_blocks/total_blocks,2)*100 as &quot;Blocks75to100free&quot; from segment_space_stats where fs4_blocks/total_blocks &gt; 0.5 and total_bytes &gt; 100*1024*1024;</description>
		<content:encoded><![CDATA[<p>Hi Marc,</p>
<p>Nice procedure btw.</p>
<p>You might find this useful. Sometimes tables aren&#8217;t full of empty blocks but mostly empty blocks (fs4_blocks in dbms_space terms).</p>
<p>select owner,segment_name,round(fs4_blocks/total_blocks,2)*100 as &#8220;Blocks75to100free&#8221; from segment_space_stats where fs4_blocks/total_blocks &gt; 0.5 and total_bytes &gt; 100*1024*1024;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Catherine</title>
		<link>http://www.pythian.com/news/464/reporting-space-wasting-objects-in-oracle/#comment-409681</link>
		<dc:creator>Catherine</dc:creator>
		<pubDate>Thu, 25 Feb 2010 13:54:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/464/reporting-space-wasting-objects-in-oracle#comment-409681</guid>
		<description>Hi Marc
Thank you very much. Your response make it clearly for me :-)</description>
		<content:encoded><![CDATA[<p>Hi Marc<br />
Thank you very much. Your response make it clearly for me :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://www.pythian.com/news/464/reporting-space-wasting-objects-in-oracle/#comment-409293</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Wed, 24 Feb 2010 14:37:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/464/reporting-space-wasting-objects-in-oracle#comment-409293</guid>
		<description>Hi Catherine,

As I understand it, unused_blocks (generated with the unused_space procedure) show the total blocks in the segment that are allocated to segment extents but have NEVER been used. Data deletion will not add blocks to the unused_blocks nor the unformatted_blocks.

You can look at this post from Tom Kyte for his demonstration. I just had a look at that post and he basically created a similar procedure to the one I posted here, but he had done so way before me...

http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:231414051079

Also, in his post he has this explanation about the unformatted blocks:

&quot;unformatted blocks are blocks that are available for immediate use (below the true high water mark) but haven&#039;t yet had any data.  when the table says &quot;i&#039;m full&quot;, we pull a bunch of blocks down into the table from above the HWM and they would all be unformatted until you use them.&quot;

Hope this helps.
Marc</description>
		<content:encoded><![CDATA[<p>Hi Catherine,</p>
<p>As I understand it, unused_blocks (generated with the unused_space procedure) show the total blocks in the segment that are allocated to segment extents but have NEVER been used. Data deletion will not add blocks to the unused_blocks nor the unformatted_blocks.</p>
<p>You can look at this post from Tom Kyte for his demonstration. I just had a look at that post and he basically created a similar procedure to the one I posted here, but he had done so way before me&#8230;</p>
<p><a href="http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:231414051079" rel="nofollow">http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:231414051079</a></p>
<p>Also, in his post he has this explanation about the unformatted blocks:</p>
<p>&#8220;unformatted blocks are blocks that are available for immediate use (below the true high water mark) but haven&#8217;t yet had any data.  when the table says &#8220;i&#8217;m full&#8221;, we pull a bunch of blocks down into the table from above the HWM and they would all be unformatted until you use them.&#8221;</p>
<p>Hope this helps.<br />
Marc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Catherine</title>
		<link>http://www.pythian.com/news/464/reporting-space-wasting-objects-in-oracle/#comment-409253</link>
		<dc:creator>Catherine</dc:creator>
		<pubDate>Wed, 24 Feb 2010 12:54:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/464/reporting-space-wasting-objects-in-oracle#comment-409253</guid>
		<description>Hi Marc. Could you give same explain about the difference between unformatted_blocks and unused_blocks? I&#039;m confused. I don&#039;t know which blocks had free space because of deleting, so are under HWM and which blocks had never data and are above HWM.

thx</description>
		<content:encoded><![CDATA[<p>Hi Marc. Could you give same explain about the difference between unformatted_blocks and unused_blocks? I&#8217;m confused. I don&#8217;t know which blocks had free space because of deleting, so are under HWM and which blocks had never data and are above HWM.</p>
<p>thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: comfeng</title>
		<link>http://www.pythian.com/news/464/reporting-space-wasting-objects-in-oracle/#comment-348193</link>
		<dc:creator>comfeng</dc:creator>
		<pubDate>Wed, 04 Mar 2009 14:39:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/464/reporting-space-wasting-objects-in-oracle#comment-348193</guid>
		<description>Thank you for your article!</description>
		<content:encoded><![CDATA[<p>Thank you for your article!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcio</title>
		<link>http://www.pythian.com/news/464/reporting-space-wasting-objects-in-oracle/#comment-238531</link>
		<dc:creator>Marcio</dc:creator>
		<pubDate>Fri, 18 Jul 2008 01:48:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/464/reporting-space-wasting-objects-in-oracle#comment-238531</guid>
		<description>I already knew the dbms_space package but, your script is very useful to us and also very didactic.
Great work!

Regards,

Marcio Lima.</description>
		<content:encoded><![CDATA[<p>I already knew the dbms_space package but, your script is very useful to us and also very didactic.<br />
Great work!</p>
<p>Regards,</p>
<p>Marcio Lima.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Edwards</title>
		<link>http://www.pythian.com/news/464/reporting-space-wasting-objects-in-oracle/#comment-50237</link>
		<dc:creator>David Edwards</dc:creator>
		<pubDate>Wed, 16 May 2007 17:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/464/reporting-space-wasting-objects-in-oracle#comment-50237</guid>
		<description>Thanks for the heads-up, Don.  Fixed now.</description>
		<content:encoded><![CDATA[<p>Thanks for the heads-up, Don.  Fixed now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don Seiler</title>
		<link>http://www.pythian.com/news/464/reporting-space-wasting-objects-in-oracle/#comment-50231</link>
		<dc:creator>Don Seiler</dc:creator>
		<pubDate>Wed, 16 May 2007 16:24:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/464/reporting-space-wasting-objects-in-oracle#comment-50231</guid>
		<description>I finally got a chance to read this, and the links to your scripts both give me a 404!</description>
		<content:encoded><![CDATA[<p>I finally got a chance to read this, and the links to your scripts both give me a 404!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://www.pythian.com/news/464/reporting-space-wasting-objects-in-oracle/#comment-45625</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Wed, 02 May 2007 15:24:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/464/reporting-space-wasting-objects-in-oracle#comment-45625</guid>
		<description>I&#039;m glad you like it Raj,

The unit is MB, same as the other columns.

Enjoy!
Marc</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad you like it Raj,</p>
<p>The unit is MB, same as the other columns.</p>
<p>Enjoy!<br />
Marc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj Jamadagni</title>
		<link>http://www.pythian.com/news/464/reporting-space-wasting-objects-in-oracle/#comment-45609</link>
		<dc:creator>Raj Jamadagni</dc:creator>
		<pubDate>Wed, 02 May 2007 13:26:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/464/reporting-space-wasting-objects-in-oracle#comment-45609</guid>
		<description>Nice Script Marc, 

but what unit you had in mind for values in &quot;estimated savings&quot; (the rightmost) column?
blocks? kb? mb?

BTW I had put dbms_space call inside a pipelined function, so it becomes easy to put it in a subquery if needed.

Raj</description>
		<content:encoded><![CDATA[<p>Nice Script Marc, </p>
<p>but what unit you had in mind for values in &#8220;estimated savings&#8221; (the rightmost) column?<br />
blocks? kb? mb?</p>
<p>BTW I had put dbms_space call inside a pipelined function, so it becomes easy to put it in a subquery if needed.</p>
<p>Raj</p>
]]></content:encoded>
	</item>
</channel>
</rss>

