<?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: Analytic Agony</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2009/09/07/analytic-agony/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2009/09/07/analytic-agony/</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: Histogram Generation &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2009/09/07/analytic-agony/#comment-50148</link>
		<dc:creator><![CDATA[Histogram Generation &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Thu, 13 Sep 2012 17:21:39 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2118#comment-50148</guid>
		<description><![CDATA[[...] it; it&#8217;s a window sort of the entire sampled data set which could be quite large and, as we&#8217;ve seen elsewhere, could be very [...]]]></description>
		<content:encoded><![CDATA[<p>[...] it; it&#8217;s a window sort of the entire sampled data set which could be quite large and, as we&#8217;ve seen elsewhere, could be very [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2009/09/07/analytic-agony/#comment-41146</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Mon, 01 Aug 2011 11:03:03 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2118#comment-41146</guid>
		<description><![CDATA[I can&#039;t think of any definite reason why not - as far as I know there is nothing that forces analytic functions to run serially. I suggest you post the query and the execution plan to the &lt;a href=&quot;http://forums.oracle.com/forums/forum.jspa?forumID=61&amp;start=0&quot; rel=&quot;nofollow&quot;&gt;OTN database forum&lt;/a&gt; and ask for ideas.]]></description>
		<content:encoded><![CDATA[<p>I can&#8217;t think of any definite reason why not &#8211; as far as I know there is nothing that forces analytic functions to run serially. I suggest you post the query and the execution plan to the <a href="http://forums.oracle.com/forums/forum.jspa?forumID=61&amp;start=0" rel="nofollow">OTN database forum</a> and ask for ideas.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sudheer</title>
		<link>http://jonathanlewis.wordpress.com/2009/09/07/analytic-agony/#comment-41086</link>
		<dc:creator><![CDATA[Sudheer]]></dc:creator>
		<pubDate>Tue, 26 Jul 2011 12:47:11 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2118#comment-41086</guid>
		<description><![CDATA[I have noticed WINDOW (SORT) operation is running serial (I mean only one slave is processing the data) , do you have any suggestions to improve this.]]></description>
		<content:encoded><![CDATA[<p>I have noticed WINDOW (SORT) operation is running serial (I mean only one slave is processing the data) , do you have any suggestions to improve this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dom Brooks</title>
		<link>http://jonathanlewis.wordpress.com/2009/09/07/analytic-agony/#comment-39905</link>
		<dc:creator><![CDATA[Dom Brooks]]></dc:creator>
		<pubDate>Wed, 09 Mar 2011 17:15:46 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2118#comment-39905</guid>
		<description><![CDATA[Jonathan,

&gt; it would be nice if the wait states reported the line of the execution plan that they were operating on when they started to wait

I know it&#039;s an old thread and comment but just a couple of thoughts on this.

As you will know, ASH gives the ability to do some of that. Using the v$active_session_history buffer, I know it&#039;s only sampled data every second but 

1. it reports waits with execution lines via SQL_PLAN_LINE_ID / SQL_PLAN_OPERATION / SQL_PLAN_OPTIONS and EVENT.

2. real-time SQL Monitoring can report similar (also based on the ASH data but also tying in with longops data which is useful when for operation progress % when using it in real-time which obviously it doesn&#039;t have to be despite the title).

Cheers,
Dominic]]></description>
		<content:encoded><![CDATA[<p>Jonathan,</p>
<p>&gt; it would be nice if the wait states reported the line of the execution plan that they were operating on when they started to wait</p>
<p>I know it&#8217;s an old thread and comment but just a couple of thoughts on this.</p>
<p>As you will know, ASH gives the ability to do some of that. Using the v$active_session_history buffer, I know it&#8217;s only sampled data every second but </p>
<p>1. it reports waits with execution lines via SQL_PLAN_LINE_ID / SQL_PLAN_OPERATION / SQL_PLAN_OPTIONS and EVENT.</p>
<p>2. real-time SQL Monitoring can report similar (also based on the ASH data but also tying in with longops data which is useful when for operation progress % when using it in real-time which obviously it doesn&#8217;t have to be despite the title).</p>
<p>Cheers,<br />
Dominic</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2009/09/07/analytic-agony/#comment-35521</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Tue, 16 Feb 2010 18:55:52 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2118#comment-35521</guid>
		<description><![CDATA[Alex.
That sounds like a nice idea - but there are lots of little changes like that that would be really nice so it&#039;s hard to make a very strong case for any one of them. For example, it would be nice if the wait states reported the line of the execution plan that they were operating on when they started to wait. 

Since trace files tend to be after the event, linking a trace file with a dynamic performance view might be a little awkward for the DBA.]]></description>
		<content:encoded><![CDATA[<p>Alex.<br />
That sounds like a nice idea &#8211; but there are lots of little changes like that that would be really nice so it&#8217;s hard to make a very strong case for any one of them. For example, it would be nice if the wait states reported the line of the execution plan that they were operating on when they started to wait. </p>
<p>Since trace files tend to be after the event, linking a trace file with a dynamic performance view might be a little awkward for the DBA.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Haralampiev</title>
		<link>http://jonathanlewis.wordpress.com/2009/09/07/analytic-agony/#comment-35513</link>
		<dc:creator><![CDATA[Alex Haralampiev]]></dc:creator>
		<pubDate>Tue, 16 Feb 2010 04:35:58 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2118#comment-35513</guid>
		<description><![CDATA[Hi Jonathan,

I think we can correlate the &quot;one-block-at-a-time&quot; reads with phases when the v$session_longops.OPNAME=’Sort Output’ and V$SESSION_WAIT.event=’direct path read temp’; The bad news is currently there is no way to inject the v$session_longops.OPNAME values in the 10046 traces so we can&#039;t get more objective breakdown. The good news is I managed to convince a few people at Oracle (Carlos Sierra and Hector Pujol) to open a new enhancement request #9381412 for the following:
&lt;i&gt;&quot;For diagnostic purposes it helps to correlate the value 
v$session_longops.opname with waits or CPU related to the OPName.  This 
request is for additional info to be placed into the 10046 trace file that 
would allow TKProf or other tools to report how much cpu, waits, and elapsed 
time occured for an OPName as well as track specific waits that occurred 
under that OPName.  To illustrate, this would appear as: 

LONGOP #2 opname=&quot;Sort Output&quot; cpu=12345 elapsed=4567 
WAIT #18: nam=&#039;direct path read temp&#039; ela= 132 tim=1232507925946426 
WAIT #18: nam=&#039;direct path read temp&#039; ela= 141 tim=1232507925947219 
WAIT #18: nam=&#039;direct path read temp&#039; ela= 132 tim=1232507925947762 

TKprof could then report how much time occured under each longop.opname &quot;
&lt;/i&gt;

If you think that this is a good idea please let me know if/how we can make a stronger case for such enhancement.

Rgds,
  Alex]]></description>
		<content:encoded><![CDATA[<p>Hi Jonathan,</p>
<p>I think we can correlate the &#8220;one-block-at-a-time&#8221; reads with phases when the v$session_longops.OPNAME=’Sort Output’ and V$SESSION_WAIT.event=’direct path read temp’; The bad news is currently there is no way to inject the v$session_longops.OPNAME values in the 10046 traces so we can&#8217;t get more objective breakdown. The good news is I managed to convince a few people at Oracle (Carlos Sierra and Hector Pujol) to open a new enhancement request #9381412 for the following:<br />
<i>&#8220;For diagnostic purposes it helps to correlate the value<br />
v$session_longops.opname with waits or CPU related to the OPName.  This<br />
request is for additional info to be placed into the 10046 trace file that<br />
would allow TKProf or other tools to report how much cpu, waits, and elapsed<br />
time occured for an OPName as well as track specific waits that occurred<br />
under that OPName.  To illustrate, this would appear as: </p>
<p>LONGOP #2 opname=&#8221;Sort Output&#8221; cpu=12345 elapsed=4567<br />
WAIT #18: nam=&#8217;direct path read temp&#8217; ela= 132 tim=1232507925946426<br />
WAIT #18: nam=&#8217;direct path read temp&#8217; ela= 141 tim=1232507925947219<br />
WAIT #18: nam=&#8217;direct path read temp&#8217; ela= 132 tim=1232507925947762 </p>
<p>TKprof could then report how much time occured under each longop.opname &#8221;<br />
</i></p>
<p>If you think that this is a good idea please let me know if/how we can make a stronger case for such enhancement.</p>
<p>Rgds,<br />
  Alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2009/09/07/analytic-agony/#comment-35431</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Sun, 07 Feb 2010 17:24:09 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2118#comment-35431</guid>
		<description><![CDATA[Greg

Thanks for the update.]]></description>
		<content:encoded><![CDATA[<p>Greg</p>
<p>Thanks for the update.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Rahn</title>
		<link>http://jonathanlewis.wordpress.com/2009/09/07/analytic-agony/#comment-35430</link>
		<dc:creator><![CDATA[Greg Rahn]]></dc:creator>
		<pubDate>Sun, 07 Feb 2010 16:27:10 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2118#comment-35430</guid>
		<description><![CDATA[This related to bug 9041800 and there is a 10.2.0.4 backport available as of 01/29/10.  For other versions/platforms, request a backport from Oracle Support.]]></description>
		<content:encoded><![CDATA[<p>This related to bug 9041800 and there is a 10.2.0.4 backport available as of 01/29/10.  For other versions/platforms, request a backport from Oracle Support.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Log Switching &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2009/09/07/analytic-agony/#comment-35141</link>
		<dc:creator><![CDATA[Log Switching &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Fri, 01 Jan 2010 15:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2118#comment-35141</guid>
		<description><![CDATA[[...] of uses, and the lag/lead functions are among my favourites. I always like to remind people of the sorting overheads involved with analytic functions &#8211; but if you are prepared to accept the overhead, the [...]]]></description>
		<content:encoded><![CDATA[<p>[...] of uses, and the lag/lead functions are among my favourites. I always like to remind people of the sorting overheads involved with analytic functions &#8211; but if you are prepared to accept the overhead, the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2009/09/07/analytic-agony/#comment-34633</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Sat, 17 Oct 2009 10:33:24 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2118#comment-34633</guid>
		<description><![CDATA[Henish,

The book is based on 9.2 with some comments on differences between 8i and 10g.

The details of hard and soft limits based on the pga_aggregate_target changed quite siginficantly across versions. The most comprehensive description of 10g behaviour comes from a paper by Joze Senegacnik ]]></description>
		<content:encoded><![CDATA[<p>Henish,</p>
<p>The book is based on 9.2 with some comments on differences between 8i and 10g.</p>
<p>The details of hard and soft limits based on the pga_aggregate_target changed quite siginficantly across versions. The most comprehensive description of 10g behaviour comes from a paper by Joze Senegacnik </p>
]]></content:encoded>
	</item>
</channel>
</rss>
