<?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: Which segments have top LIO (Logical IO)/PIO (Physical I/O)</title>
	<atom:link href="http://oraqa.com/2006/02/01/which-segments-have-top-lio-logical-iopio-physical-io/feed/" rel="self" type="application/rss+xml" />
	<link>http://oraqa.com/2006/02/01/which-segments-have-top-lio-logical-iopio-physical-io/</link>
	<description>Oracle Question and Answer</description>
	<pubDate>Tue, 06 Jan 2009 18:43:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: OrcaXXX</title>
		<link>http://oraqa.com/2006/02/01/which-segments-have-top-lio-logical-iopio-physical-io/comment-page-1/#comment-110</link>
		<dc:creator>OrcaXXX</dc:creator>
		<pubDate>Tue, 07 Feb 2006 09:18:54 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/02/01/which-segments-have-top-lio-logical-iopio-physical-io/#comment-110</guid>
		<description>Hi, best results i got with this SQL; Value must be greater zero - otherwise dense_rank() puts always the same rank again on the retrieved rowset (had a lot of entries with same value 0)

&lt;pre&gt;
SELECT *
  FROM (SELECT Statistic_Name,
               St.Owner,
               St.Obj#,
               St.Object_Type,
               St.Object_Name,
               St.VALUE,
               Dense_Rank() 
                 Over(PARTITION BY Statistic_Name ORDER BY St.VALUE DESC) Rnk
          FROM V$segment_Statistics St
         WHERE St.VALUE &gt; 0
           AND St.Statistic_Name IN
               ('physical reads', 'physical writes', 'logical reads',
                'physical reads direct', 'physical writes direct'))
 WHERE Rnk &lt;= 10
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi, best results i got with this SQL; Value must be greater zero - otherwise dense_rank() puts always the same rank again on the retrieved rowset (had a lot of entries with same value 0)</p>
<pre>
SELECT *
  FROM (SELECT Statistic_Name,
               St.Owner,
               St.Obj#,
               St.Object_Type,
               St.Object_Name,
               St.VALUE,
               Dense_Rank()
                 Over(PARTITION BY Statistic_Name ORDER BY St.VALUE DESC) Rnk
          FROM V$segment_Statistics St
         WHERE St.VALUE > 0
           AND St.Statistic_Name IN
               ('physical reads', 'physical writes', 'logical reads',
                'physical reads direct', 'physical writes direct'))
 WHERE Rnk < = 10
</pre>
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: OrcaXXX</title>
		<link>http://oraqa.com/2006/02/01/which-segments-have-top-lio-logical-iopio-physical-io/comment-page-1/#comment-104</link>
		<dc:creator>OrcaXXX</dc:creator>
		<pubDate>Thu, 02 Feb 2006 20:26:49 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/02/01/which-segments-have-top-lio-logical-iopio-physical-io/#comment-104</guid>
		<description>Thanks to Eddie and Ray;
So that's a good example too showing/comparing the power of analytic functions and the 'old' way :-)))
Karl</description>
		<content:encoded><![CDATA[<p>Thanks to Eddie and Ray;<br />
So that&#8217;s a good example too showing/comparing the power of analytic functions and the &#8216;old&#8217; way :-)))<br />
Karl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rjamya</title>
		<link>http://oraqa.com/2006/02/01/which-segments-have-top-lio-logical-iopio-physical-io/comment-page-1/#comment-101</link>
		<dc:creator>rjamya</dc:creator>
		<pubDate>Wed, 01 Feb 2006 21:04:54 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/02/01/which-segments-have-top-lio-logical-iopio-physical-io/#comment-101</guid>
		<description>Thanks Eddie,

I don't seem to be able to format very well. and I didn't filter the statistic name. If you wish to filter, put it inside the inline view.

Raj</description>
		<content:encoded><![CDATA[<p>Thanks Eddie,</p>
<p>I don&#8217;t seem to be able to format very well. and I didn&#8217;t filter the statistic name. If you wish to filter, put it inside the inline view.</p>
<p>Raj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie Awad</title>
		<link>http://oraqa.com/2006/02/01/which-segments-have-top-lio-logical-iopio-physical-io/comment-page-1/#comment-100</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Wed, 01 Feb 2006 20:36:56 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/02/01/which-segments-have-top-lio-logical-iopio-physical-io/#comment-100</guid>
		<description>I believe this is what rjamya had in mind:

&lt;pre&gt;
select *
from
  (select statistic_name,
     st.owner,
     st.obj#,
     st.object_type,
     st.object_name,
     st.value,
     dense_rank() over(partition by statistic_name
   order by st.value desc) rnk
   from v$segment_statistics st)
where rnk &lt;= 10
 and statistic_name in ('logical reads', 'physical reads')
&lt;/pre&gt;

Analytic functions are very powerful.</description>
		<content:encoded><![CDATA[<p>I believe this is what rjamya had in mind:</p>
<pre>
select *
from
  (select statistic_name,
     st.owner,
     st.obj#,
     st.object_type,
     st.object_name,
     st.value,
     dense_rank() over(partition by statistic_name
   order by st.value desc) rnk
   from v$segment_statistics st)
where rnk < = 10
 and statistic_name in ('logical reads', 'physical reads')
</pre>
<p>Analytic functions are very powerful.</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: OrcaXXX</title>
		<link>http://oraqa.com/2006/02/01/which-segments-have-top-lio-logical-iopio-physical-io/comment-page-1/#comment-99</link>
		<dc:creator>OrcaXXX</dc:creator>
		<pubDate>Wed, 01 Feb 2006 20:18:13 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/02/01/which-segments-have-top-lio-logical-iopio-physical-io/#comment-99</guid>
		<description>OH!
You find a shortcut for this; will try your version soon. I must admit that i am not used to all kind of analytic functions. :-)
Karl</description>
		<content:encoded><![CDATA[<p>OH!<br />
You find a shortcut for this; will try your version soon. I must admit that i am not used to all kind of analytic functions. :-)<br />
Karl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rjamya</title>
		<link>http://oraqa.com/2006/02/01/which-segments-have-top-lio-logical-iopio-physical-io/comment-page-1/#comment-98</link>
		<dc:creator>rjamya</dc:creator>
		<pubDate>Wed, 01 Feb 2006 18:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/02/01/which-segments-have-top-lio-logical-iopio-physical-io/#comment-98</guid>
		<description>What is wrong with
&lt;pre&gt;
SELECT * 
FROM 
(SELECT STATISTIC_NAME, ST.OWNER,ST.OBJ#,
  ST.OBJECT_TYPE,
  ST.OBJECT_NAME,ST.VALUE, 
  DENSE_RANK() OVER(PARTITION BY STATISTIC_NAME ORDER BY ST.VALUE DESC) RNK
FROM   V$SEGMENT_STATISTICS ST)
WHERE  RNK 
&lt;/pre&gt;
rjamya</description>
		<content:encoded><![CDATA[<p>What is wrong with</p>
<pre>
SELECT *
FROM
(SELECT STATISTIC_NAME, ST.OWNER,ST.OBJ#,
  ST.OBJECT_TYPE,
  ST.OBJECT_NAME,ST.VALUE,
  DENSE_RANK() OVER(PARTITION BY STATISTIC_NAME ORDER BY ST.VALUE DESC) RNK
FROM   V$SEGMENT_STATISTICS ST)
WHERE  RNK
</pre>
<p>rjamya</p>
]]></content:encoded>
	</item>
</channel>
</rss>
