<?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: SQL_ID is just a fancy representation of hash value</title>
	<atom:link href="http://blog.tanelpoder.com/2009/02/22/sql_id-is-just-a-fancy-representation-of-hash-value/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tanelpoder.com/2009/02/22/sql_id-is-just-a-fancy-representation-of-hash-value/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sql_id-is-just-a-fancy-representation-of-hash-value</link>
	<description>Oracle, Exadata, Performance, Troubleshooting - Mobile Life and Productivity.</description>
	<lastBuildDate>Wed, 08 Feb 2012 08:03:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: SQL Plan Management &#124; IT World</title>
		<link>http://blog.tanelpoder.com/2009/02/22/sql_id-is-just-a-fancy-representation-of-hash-value/comment-page-2/#comment-10342</link>
		<dc:creator>SQL Plan Management &#124; IT World</dc:creator>
		<pubDate>Thu, 22 Dec 2011 14:49:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=220#comment-10342</guid>
		<description>[...] SQL_ID is just a fancy representation of hash value [...]</description>
		<content:encoded><![CDATA[<p>[...] SQL_ID is just a fancy representation of hash value [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Narayana Rao</title>
		<link>http://blog.tanelpoder.com/2009/02/22/sql_id-is-just-a-fancy-representation-of-hash-value/comment-page-2/#comment-7926</link>
		<dc:creator>Narayana Rao</dc:creator>
		<pubDate>Thu, 18 Aug 2011 17:59:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=220#comment-7926</guid>
		<description>Tanel
on a 3 node rac (11.1.0), on node3,  sql_id &#039;X&#039; chooses good plan &#039;A&#039;, but on the node 2 &amp; 3,  the same sql_id &#039;X&#039;  chooses bad plan &#039;Y&#039;,

Question :  what could be the reason, 
            can we drop the bad plan_hash_value , ? / 

Thanks
NR</description>
		<content:encoded><![CDATA[<p>Tanel<br />
on a 3 node rac (11.1.0), on node3,  sql_id &#8216;X&#8217; chooses good plan &#8216;A&#8217;, but on the node 2 &amp; 3,  the same sql_id &#8216;X&#8217;  chooses bad plan &#8216;Y&#8217;,</p>
<p>Question :  what could be the reason,<br />
            can we drop the bad plan_hash_value , ? / </p>
<p>Thanks<br />
NR</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2009/02/22/sql_id-is-just-a-fancy-representation-of-hash-value/comment-page-2/#comment-7790</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Sat, 23 Jul 2011 18:24:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=220#comment-7790</guid>
		<description>&lt;a href=&quot;#comment-7599&quot; rel=&quot;nofollow&quot;&gt;@Vishal Gupta&lt;/a&gt; 
It&#039;s just taking last 4 bytes of the 8 byte binary value, with acknowledging the different formats (base-32 vs base 10).

The simple SQL code above in the article should explain the sequence of operations...
</description>
		<content:encoded><![CDATA[<p><a href="#comment-7599" rel="nofollow">@Vishal Gupta</a><br />
It&#8217;s just taking last 4 bytes of the 8 byte binary value, with acknowledging the different formats (base-32 vs base 10).</p>
<p>The simple SQL code above in the article should explain the sequence of operations&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishal Gupta</title>
		<link>http://blog.tanelpoder.com/2009/02/22/sql_id-is-just-a-fancy-representation-of-hash-value/comment-page-2/#comment-7599</link>
		<dc:creator>Vishal Gupta</dc:creator>
		<pubDate>Mon, 04 Jul 2011 21:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=220#comment-7599</guid>
		<description>Tanel,

How did you work out the algorithm to convert the SQL_ID to HASH_VALUE? Can you please give some pointers?</description>
		<content:encoded><![CDATA[<p>Tanel,</p>
<p>How did you work out the algorithm to convert the SQL_ID to HASH_VALUE? Can you please give some pointers?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: satish</title>
		<link>http://blog.tanelpoder.com/2009/02/22/sql_id-is-just-a-fancy-representation-of-hash-value/comment-page-2/#comment-7474</link>
		<dc:creator>satish</dc:creator>
		<pubDate>Tue, 07 Jun 2011 14:14:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=220#comment-7474</guid>
		<description>@Greg
SELECT sql_handle, plan_name
FROM dba_sql_plan_baselines
WHERE signature IN (
  SELECT exact_matching_signature FROM v$sql WHERE sql_id=&#039;&amp;SQL_ID&#039;)
)
Thanks to Doug who has provided link in his blog which i am giving below.

http://intermediatesql.com/oracle/how-to-find-spm-baseline-by-sql_id/#more-639</description>
		<content:encoded><![CDATA[<p>@Greg<br />
SELECT sql_handle, plan_name<br />
FROM dba_sql_plan_baselines<br />
WHERE signature IN (<br />
  SELECT exact_matching_signature FROM v$sql WHERE sql_id=&#8217;&amp;SQL_ID&#8217;)<br />
)<br />
Thanks to Doug who has provided link in his blog which i am giving below.</p>
<p><a href="http://intermediatesql.com/oracle/how-to-find-spm-baseline-by-sql_id/#more-639" rel="nofollow">http://intermediatesql.com/oracle/how-to-find-spm-baseline-by-sql_id/#more-639</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Divide and conquer the &#8220;true&#8221; mutex contention &#171; Latch, mutex and beyond</title>
		<link>http://blog.tanelpoder.com/2009/02/22/sql_id-is-just-a-fancy-representation-of-hash-value/comment-page-1/#comment-7083</link>
		<dc:creator>Divide and conquer the &#8220;true&#8221; mutex contention &#171; Latch, mutex and beyond</dc:creator>
		<pubDate>Sun, 01 May 2011 19:17:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=220#comment-7083</guid>
		<description>[...] ordinary hash value of this SQL is 3222383532. However, we need a complete 128 bit hash value for library cache object here. You can find it in kglhahsv column of [...]</description>
		<content:encoded><![CDATA[<p>[...] ordinary hash value of this SQL is 3222383532. However, we need a complete 128 bit hash value for library cache object here. You can find it in kglhahsv column of [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to find SPM baseline by sql_id &#171; Intermediate SQL</title>
		<link>http://blog.tanelpoder.com/2009/02/22/sql_id-is-just-a-fancy-representation-of-hash-value/comment-page-1/#comment-6946</link>
		<dc:creator>How to find SPM baseline by sql_id &#171; Intermediate SQL</dc:creator>
		<pubDate>Sun, 10 Apr 2011 23:27:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=220#comment-6946</guid>
		<description>[...] SQL_ID is just another representation of SQL text (you can read about it  in Tanel Poder&#8217;s blog) [...]</description>
		<content:encoded><![CDATA[<p>[...] SQL_ID is just another representation of SQL text (you can read about it  in Tanel Poder&#8217;s blog) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL_ID, Plans, and Baselines, Oh My! &#124; 140,000 Characters or Less</title>
		<link>http://blog.tanelpoder.com/2009/02/22/sql_id-is-just-a-fancy-representation-of-hash-value/comment-page-1/#comment-6450</link>
		<dc:creator>SQL_ID, Plans, and Baselines, Oh My! &#124; 140,000 Characters or Less</dc:creator>
		<pubDate>Mon, 28 Feb 2011 15:58:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=220#comment-6450</guid>
		<description>[...] SQL_IDs do go away, but since they are just a hash value of the query object &#8211; then they should remain the same even after a hard-parse occurs. Or as I understand it after reading Tanel Poder&#8217;s (Twitter) excellent blog post on the subject (link): [...]</description>
		<content:encoded><![CDATA[<p>[...] SQL_IDs do go away, but since they are just a hash value of the query object &#8211; then they should remain the same even after a hard-parse occurs. Or as I understand it after reading Tanel Poder&#8217;s (Twitter) excellent blog post on the subject (link): [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Wang</title>
		<link>http://blog.tanelpoder.com/2009/02/22/sql_id-is-just-a-fancy-representation-of-hash-value/comment-page-1/#comment-6390</link>
		<dc:creator>Greg Wang</dc:creator>
		<pubDate>Sun, 13 Feb 2011 20:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=220#comment-6390</guid>
		<description>hello, 
&#039;Plan baseline&#039; is introduced in Oracle 11g SQL plan mgmt feature. I wonder how do we relate the &#039;signature&#039; ,  &#039;sql_handle&#039; , or &#039;plan_name&#039; column in the dba_sql_plan_baselines view  to the SQL_ID, HASH_VALUE, or PLAN_HASH_VALUE in v$sql.

thanks!</description>
		<content:encoded><![CDATA[<p>hello,<br />
&#8216;Plan baseline&#8217; is introduced in Oracle 11g SQL plan mgmt feature. I wonder how do we relate the &#8216;signature&#8217; ,  &#8216;sql_handle&#8217; , or &#8216;plan_name&#8217; column in the dba_sql_plan_baselines view  to the SQL_ID, HASH_VALUE, or PLAN_HASH_VALUE in v$sql.</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nasir</title>
		<link>http://blog.tanelpoder.com/2009/02/22/sql_id-is-just-a-fancy-representation-of-hash-value/comment-page-1/#comment-6199</link>
		<dc:creator>Nasir</dc:creator>
		<pubDate>Sat, 15 Jan 2011 19:41:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=220#comment-6199</guid>
		<description>Hi,
I am trying to get the same sql_ID which is coming from application,
i am getting the sql_text from v$sqlarea , the sql contains some binds , so before running the sql, i am settings those binds to the value which i need and running the query, however when i check the sql_id it is a different SQL_ID, how do i ensure that when i run the query  i get the same exact sql_id , i am taking care so that even a single space is not coming , but still not able to replicate the sql_ID,

any suggestions/comments ?

thanks,</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am trying to get the same sql_ID which is coming from application,<br />
i am getting the sql_text from v$sqlarea , the sql contains some binds , so before running the sql, i am settings those binds to the value which i need and running the query, however when i check the sql_id it is a different SQL_ID, how do i ensure that when i run the query  i get the same exact sql_id , i am taking care so that even a single space is not coming , but still not able to replicate the sql_ID,</p>
<p>any suggestions/comments ?</p>
<p>thanks,</p>
]]></content:encoded>
	</item>
</channel>
</rss>

