<?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 for Iordan Iotzov&#039;s DBA blog</title>
	<atom:link href="http://iiotzov.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://iiotzov.wordpress.com</link>
	<description>The opinions here may not necessarily reflect that of my employers - both past and present. The comments left by the reviewers are theirs alone and may not reflect my opinion. None of the advice is warranted to be free of errors and omissions. Please use at your own risk and after thorough testing in your environment.</description>
	<lastBuildDate>Fri, 07 Jun 2013 18:39:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>Comment on Same SQL_ID, same execution plan (SQL_PLAN_HASH_VALUE), greatly different elapsed time &#8211; a simple way to troubleshoot this problem with ASH by iiotzov</title>
		<link>http://iiotzov.wordpress.com/2012/11/27/same-sql_id-same-execution-plan-sql_plan_hash_value-greatly-different-elapsed-time-a-simple-way-to-troubleshoot-with-ash/#comment-467</link>
		<dc:creator><![CDATA[iiotzov]]></dc:creator>
		<pubDate>Fri, 07 Jun 2013 18:39:24 +0000</pubDate>
		<guid isPermaLink="false">http://iiotzov.wordpress.com/?p=328#comment-467</guid>
		<description><![CDATA[Hi Tomás,

Sorry for the delay. 

In 10g, we can have a query that could detect differences in the number of physical reads from a table/index. 
You can compare that numbers across different executions/environments, see where they start to deviate, and investigate further.
Unfortunately, that query would be valuable only if most of the wait associated with the query is IO wait.

&lt;code&gt;select e.owner , e.segment_name , count(*) &lt;/code&gt;
&lt;code&gt;from dba_hist_active_sess_history s , dba_extents e &lt;/code&gt;
&lt;code&gt;where s.sql_id = &#039;fmhbn1tn0c54z&#039;&lt;/code&gt;
&lt;code&gt;      and a.sample_time &lt;/code&gt;
&lt;code&gt;           between to_date(&#039;11/26/2012:10:00:00&#039;,&#039;MM/DD/YYYY:HH24:MI:SS&#039;)&lt;/code&gt;
&lt;code&gt;               and to_date(&#039;11/26/2012:11:00:00&#039;,&#039;MM/DD/YYYY:HH24:MI:SS&#039;)&lt;/code&gt;
&lt;code&gt;       and s.p1 = e.file_id&lt;/code&gt;
&lt;code&gt;       and s.p2 between e.block_id and (e.block_id + e.blocks - 1)&lt;/code&gt;
&lt;code&gt;group by e.owner , e.segment_name&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>Hi Tomás,</p>
<p>Sorry for the delay. </p>
<p>In 10g, we can have a query that could detect differences in the number of physical reads from a table/index.<br />
You can compare that numbers across different executions/environments, see where they start to deviate, and investigate further.<br />
Unfortunately, that query would be valuable only if most of the wait associated with the query is IO wait.</p>
<p><code>select e.owner , e.segment_name , count(*) </code><br />
<code>from dba_hist_active_sess_history s , dba_extents e </code><br />
<code>where s.sql_id = 'fmhbn1tn0c54z'</code><br />
<code>      and a.sample_time </code><br />
<code>           between to_date('11/26/2012:10:00:00','MM/DD/YYYY:HH24:MI:SS')</code><br />
<code>               and to_date('11/26/2012:11:00:00','MM/DD/YYYY:HH24:MI:SS')</code><br />
<code>       and s.p1 = e.file_id</code><br />
<code>       and s.p2 between e.block_id and (e.block_id + e.blocks - 1)</code><br />
<code>group by e.owner , e.segment_name</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Same SQL_ID, same execution plan (SQL_PLAN_HASH_VALUE), greatly different elapsed time &#8211; a simple way to troubleshoot this problem with ASH by Tomas Winston</title>
		<link>http://iiotzov.wordpress.com/2012/11/27/same-sql_id-same-execution-plan-sql_plan_hash_value-greatly-different-elapsed-time-a-simple-way-to-troubleshoot-with-ash/#comment-440</link>
		<dc:creator><![CDATA[Tomas Winston]]></dc:creator>
		<pubDate>Thu, 02 May 2013 08:23:56 +0000</pubDate>
		<guid isPermaLink="false">http://iiotzov.wordpress.com/?p=328#comment-440</guid>
		<description><![CDATA[Hi Iordan,
First of all, apologies, I realise that this post is a number of months old.

When I first saw your post I got a little excited at the prospect of using this sql script to debug a performance issue on a query.

However, our DB is Oracle 10g so I am curious if there is a similar way of doing the same thing for Oracle 10g as the sql_plan_line_id column (along with some others) were only introduced in 11gR1?

Many thanks in advance,

Tomás]]></description>
		<content:encoded><![CDATA[<p>Hi Iordan,<br />
First of all, apologies, I realise that this post is a number of months old.</p>
<p>When I first saw your post I got a little excited at the prospect of using this sql script to debug a performance issue on a query.</p>
<p>However, our DB is Oracle 10g so I am curious if there is a similar way of doing the same thing for Oracle 10g as the sql_plan_line_id column (along with some others) were only introduced in 11gR1?</p>
<p>Many thanks in advance,</p>
<p>Tomás</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hotsos Symposium 2013 by Another good blog: Iordon Iotzov&#8217;s &#124; SureshGandhi</title>
		<link>http://iiotzov.wordpress.com/2013/03/14/hotsos-symposium-2013/#comment-353</link>
		<dc:creator><![CDATA[Another good blog: Iordon Iotzov&#8217;s &#124; SureshGandhi]]></dc:creator>
		<pubDate>Wed, 20 Mar 2013 12:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://iiotzov.wordpress.com/?p=392#comment-353</guid>
		<description><![CDATA[[...] http://iiotzov.wordpress.com/2013/03/14/hotsos-symposium-2013/ [...]]]></description>
		<content:encoded><![CDATA[<p>[...] <a href="http://iiotzov.wordpress.com/2013/03/14/hotsos-symposium-2013/" rel="nofollow">http://iiotzov.wordpress.com/2013/03/14/hotsos-symposium-2013/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dependent/correlated sets in Oracle – definition, problems and solutions. by iiotzov</title>
		<link>http://iiotzov.wordpress.com/2013/02/27/dependentcorrelated-sets-in-oracle-definition-problems-and-solutions/#comment-337</link>
		<dc:creator><![CDATA[iiotzov]]></dc:creator>
		<pubDate>Mon, 11 Mar 2013 20:35:45 +0000</pubDate>
		<guid isPermaLink="false">http://iiotzov.wordpress.com/?p=366#comment-337</guid>
		<description><![CDATA[Thanks for your comment!

Hinting the query to force execution order is certainly a doable solution – I’ve done it many times. 

The “hinting” path has its challenges though:

First, I have to review the whole query and come with an execution order for all tables, even though there are only three tables I am interested in. As far as I know, it is not possible to specify a hint for relative execution order, i.e. TAB3 before TAB2.

Second, hinting is more difficult if the query is dynamically generated. In that case, the optimal execution order may vary depending on the dynamic clauses, so hinting the query to follow certain execution order could be risky. 

Iordan Iotzov]]></description>
		<content:encoded><![CDATA[<p>Thanks for your comment!</p>
<p>Hinting the query to force execution order is certainly a doable solution – I’ve done it many times. </p>
<p>The “hinting” path has its challenges though:</p>
<p>First, I have to review the whole query and come with an execution order for all tables, even though there are only three tables I am interested in. As far as I know, it is not possible to specify a hint for relative execution order, i.e. TAB3 before TAB2.</p>
<p>Second, hinting is more difficult if the query is dynamically generated. In that case, the optimal execution order may vary depending on the dynamic clauses, so hinting the query to follow certain execution order could be risky. </p>
<p>Iordan Iotzov</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dependent/correlated sets in Oracle – definition, problems and solutions. by coskan</title>
		<link>http://iiotzov.wordpress.com/2013/02/27/dependentcorrelated-sets-in-oracle-definition-problems-and-solutions/#comment-335</link>
		<dc:creator><![CDATA[coskan]]></dc:creator>
		<pubDate>Fri, 08 Mar 2013 22:35:41 +0000</pubDate>
		<guid isPermaLink="false">http://iiotzov.wordpress.com/?p=366#comment-335</guid>
		<description><![CDATA[below also does the same effect with still having the cardinality wrong. 

Having said that, if the order is the case and if you still can change the code then why note hint it with just leading as it will be more stable. 


select 
    t3.col1
from
    tab3 t3 ,
    tab1 t1 ,
    tab2 t2
where 
    t3.col1 +t2.col1*0   = t1.col1     
and t1.col2 in (66,166,316,416,516,616)
and t3.col1 = t2.col1
and t2.col2 in (200,300,450,550,650,750)
 13  and t1.col3 = t2.col3;]]></description>
		<content:encoded><![CDATA[<p>below also does the same effect with still having the cardinality wrong. </p>
<p>Having said that, if the order is the case and if you still can change the code then why note hint it with just leading as it will be more stable. </p>
<p>select<br />
    t3.col1<br />
from<br />
    tab3 t3 ,<br />
    tab1 t1 ,<br />
    tab2 t2<br />
where<br />
    t3.col1 +t2.col1*0   = t1.col1<br />
and t1.col2 in (66,166,316,416,516,616)<br />
and t3.col1 = t2.col1<br />
and t2.col2 in (200,300,450,550,650,750)<br />
 13  and t1.col3 = t2.col3;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on More details on my OEM Repository presentation &#8211; the tech journal for the NYOUG March 2011 meeting is now available. by iiotzov</title>
		<link>http://iiotzov.wordpress.com/2011/10/25/more-details-on-my-oem-repository-presentation-the-tech-journal-for-the-nyoug-march-2011-meeting-is-now-available/#comment-161</link>
		<dc:creator><![CDATA[iiotzov]]></dc:creator>
		<pubDate>Fri, 13 Jul 2012 20:55:56 +0000</pubDate>
		<guid isPermaLink="false">http://iiotzov.wordpress.com/?p=78#comment-161</guid>
		<description><![CDATA[The quality of the code is not good enough, and I do not have time to fix it.  
The presentation and the paper contain everything that is needed to create a working OEM repository based forecasting system. 

Iordan Iotzov]]></description>
		<content:encoded><![CDATA[<p>The quality of the code is not good enough, and I do not have time to fix it.<br />
The presentation and the paper contain everything that is needed to create a working OEM repository based forecasting system. </p>
<p>Iordan Iotzov</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on More details on my OEM Repository presentation &#8211; the tech journal for the NYOUG March 2011 meeting is now available. by Norbert</title>
		<link>http://iiotzov.wordpress.com/2011/10/25/more-details-on-my-oem-repository-presentation-the-tech-journal-for-the-nyoug-march-2011-meeting-is-now-available/#comment-156</link>
		<dc:creator><![CDATA[Norbert]]></dc:creator>
		<pubDate>Tue, 10 Jul 2012 08:30:52 +0000</pubDate>
		<guid isPermaLink="false">http://iiotzov.wordpress.com/?p=78#comment-156</guid>
		<description><![CDATA[Hi Iotov!

The body of package &quot;FORECAST&quot; described in your presentation is available to download or is not public?

Best Regards
  Norbert]]></description>
		<content:encoded><![CDATA[<p>Hi Iotov!</p>
<p>The body of package &#8220;FORECAST&#8221; described in your presentation is available to download or is not public?</p>
<p>Best Regards<br />
  Norbert</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting the Best of Oracle Extended Statistics by iiotzov</title>
		<link>http://iiotzov.wordpress.com/2011/07/05/getting-the-best-of-oracle-extended-statistics/#comment-7</link>
		<dc:creator><![CDATA[iiotzov]]></dc:creator>
		<pubDate>Tue, 26 Jul 2011 14:20:25 +0000</pubDate>
		<guid isPermaLink="false">http://iiotzov.wordpress.com/?p=5#comment-7</guid>
		<description><![CDATA[Hi Randolf,

Thanks for the comment.
I just posted a new entry about 11gR2 features - http://iiotzov.wordpress.com/2011/07/26/oracle-11gr2-improvements-in-managing-extended-stats-and-why-looking-for-“useful”-column-groups-is-still-relevant .

Jordan]]></description>
		<content:encoded><![CDATA[<p>Hi Randolf,</p>
<p>Thanks for the comment.<br />
I just posted a new entry about 11gR2 features &#8211; <a href="http://iiotzov.wordpress.com/2011/07/26/oracle-11gr2-improvements-in-managing-extended-stats-and-why-looking-for-“useful”-column-groups-is-still-relevant" rel="nofollow">http://iiotzov.wordpress.com/2011/07/26/oracle-11gr2-improvements-in-managing-extended-stats-and-why-looking-for-“useful”-column-groups-is-still-relevant</a> .</p>
<p>Jordan</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting the Best of Oracle Extended Statistics by Randolf Geist</title>
		<link>http://iiotzov.wordpress.com/2011/07/05/getting-the-best-of-oracle-extended-statistics/#comment-6</link>
		<dc:creator><![CDATA[Randolf Geist]]></dc:creator>
		<pubDate>Mon, 25 Jul 2011 20:31:39 +0000</pubDate>
		<guid isPermaLink="false">http://iiotzov.wordpress.com/?p=5#comment-6</guid>
		<description><![CDATA[Hi Iordan,

I haven&#039;t tried your suggested code, but just for information, Oracle has introduced with 11.2.0.2 a new feature that allows to automatically determine helpful column groups based on query workload:

http://blogs.oracle.com/optimizer/entry/how_do_i_know_what_extended_statistics_are_needed_for_a_given_workload

Randolf]]></description>
		<content:encoded><![CDATA[<p>Hi Iordan,</p>
<p>I haven&#8217;t tried your suggested code, but just for information, Oracle has introduced with 11.2.0.2 a new feature that allows to automatically determine helpful column groups based on query workload:</p>
<p><a href="http://blogs.oracle.com/optimizer/entry/how_do_i_know_what_extended_statistics_are_needed_for_a_given_workload" rel="nofollow">http://blogs.oracle.com/optimizer/entry/how_do_i_know_what_extended_statistics_are_needed_for_a_given_workload</a></p>
<p>Randolf</p>
]]></content:encoded>
	</item>
</channel>
</rss>
