<?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"
	>
<channel>
	<title>Comments on: Hidden SQL - why can&#8217;t I find my SQL Text?</title>
	<atom:link href="http://kerryosborne.oracle-guy.com/2009/04/hidden-sql-why-cant-i-find-my-sql-text/feed/" rel="self" type="application/rss+xml" />
	<link>http://kerryosborne.oracle-guy.com/2009/04/hidden-sql-why-cant-i-find-my-sql-text/</link>
	<description>Just another Oracle blog</description>
	<pubDate>Sat, 13 Mar 2010 23:45:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: LOB vs. SQL*Trace &#171; Dion Cho &#8211; Oracle Performance Storyteller</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/hidden-sql-why-cant-i-find-my-sql-text/#comment-2619</link>
		<dc:creator>LOB vs. SQL*Trace &#171; Dion Cho &#8211; Oracle Performance Storyteller</dc:creator>
		<pubDate>Fri, 19 Jun 2009 02:22:34 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1161#comment-2619</guid>
		<description>[...] followings are related posts which describe the same phenomenon in the different ways. http://kerryosborne.oracle-guy.com/2009/04/hidden-sql-why-cant-i-find-my-sql-text/ [...]</description>
		<content:encoded><![CDATA[<p>[...] followings are related posts which describe the same phenomenon in the different ways. <a href="http://kerryosborne.oracle-guy.com/2009/04/hidden-sql-why-cant-i-find-my-sql-text/"  rel="nofollow">http://kerryosborne.oracle-guy.com/2009/04/hidden-sql-why-cant-i-find-my-sql-text/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Log Buffer #143: a Carnival of the Vanities for DBAs &#124; Pythian Group Blog</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/hidden-sql-why-cant-i-find-my-sql-text/#comment-1010</link>
		<dc:creator>Log Buffer #143: a Carnival of the Vanities for DBAs &#124; Pythian Group Blog</dc:creator>
		<pubDate>Fri, 24 Apr 2009 16:45:03 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1161#comment-1010</guid>
		<description>[...] Osborne wonders about Hidden SQL - why can’t I find my SQL Text?, beginning, &#8220;A very frequently executed statement on a database was generating some waits on [...]</description>
		<content:encoded><![CDATA[<p>[...] Osborne wonders about Hidden SQL - why can’t I find my SQL Text?, beginning, &#8220;A very frequently executed statement on a database was generating some waits on [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/hidden-sql-why-cant-i-find-my-sql-text/#comment-894</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Mon, 20 Apr 2009 13:47:19 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1161#comment-894</guid>
		<description>Dion,

  Thanks for the pointer on the x$kglob. I'm with you, I don't want to look at any dumps unless I have too. I hadn't tried to reproduce this issue until this morning after your comment. But I didn't have too many problems doing so. The problems for me were all related to doing the test in SQL*Plus. The first was that SQL*Plus spits out DBMS_OUTPUT calls unless you set serveroutput off (so this wiped out the prev_sql_id field in v$session). The second issue is that when the statement  completes, the sql_id field in v$session is  wiped out. The entries still exist in v$open_cursor and the prev_sql_id field still has the original sql_id of the statement which generated the access to the lob. So in order to see the behavior we had in production, my SQL*Plus test required that I catch the session in the act of executing the statement. I haven't had time to look into that yet. I have captured the data and will add it to the original post as I'm not sure how the formatting would work in the comments section.

   Thanks for your comments.

Kerry</description>
		<content:encoded><![CDATA[<p>Dion,</p>
<p>  Thanks for the pointer on the x$kglob. I&#8217;m with you, I don&#8217;t want to look at any dumps unless I have too. I hadn&#8217;t tried to reproduce this issue until this morning after your comment. But I didn&#8217;t have too many problems doing so. The problems for me were all related to doing the test in SQL*Plus. The first was that SQL*Plus spits out DBMS_OUTPUT calls unless you set serveroutput off (so this wiped out the prev_sql_id field in v$session). The second issue is that when the statement  completes, the sql_id field in v$session is  wiped out. The entries still exist in v$open_cursor and the prev_sql_id field still has the original sql_id of the statement which generated the access to the lob. So in order to see the behavior we had in production, my SQL*Plus test required that I catch the session in the act of executing the statement. I haven&#8217;t had time to look into that yet. I have captured the data and will add it to the original post as I&#8217;m not sure how the formatting would work in the comments section.</p>
<p>   Thanks for your comments.</p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LOB, sql_id and LCO &#171; Dion Cho - Oracle Performance Storyteller</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/hidden-sql-why-cant-i-find-my-sql-text/#comment-889</link>
		<dc:creator>LOB, sql_id and LCO &#171; Dion Cho - Oracle Performance Storyteller</dc:creator>
		<pubDate>Mon, 20 Apr 2009 10:40:02 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1161#comment-889</guid>
		<description>[...] leave a comment &#187;  Kerry Osborne wrote an interesting case on LOB here. [...]</description>
		<content:encoded><![CDATA[<p>[...] leave a comment &raquo;  Kerry Osborne wrote an interesting case on LOB here. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dion Cho</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/hidden-sql-why-cant-i-find-my-sql-text/#comment-887</link>
		<dc:creator>Dion Cho</dc:creator>
		<pubDate>Mon, 20 Apr 2009 09:08:20 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1161#comment-887</guid>
		<description>Kerry. 

It's very interesting case even though I could not reproduce your case(SQL*Net more data from client thing).

Anyway, query on x$kglob would have shown some data like:

select * from sys.x$kglob where kglobt03 = '';

And library cache dump would show the depedent table for the LOB LCO.

But still, hard to decode. :)</description>
		<content:encoded><![CDATA[<p>Kerry. </p>
<p>It&#8217;s very interesting case even though I could not reproduce your case(SQL*Net more data from client thing).</p>
<p>Anyway, query on x$kglob would have shown some data like:</p>
<p>select * from sys.x$kglob where kglobt03 = &#8221;;</p>
<p>And library cache dump would show the depedent table for the LOB LCO.</p>
<p>But still, hard to decode. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/hidden-sql-why-cant-i-find-my-sql-text/#comment-812</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Fri, 17 Apr 2009 14:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1161#comment-812</guid>
		<description>Glad to hear it helped you out. It drove me crazy for a couple of days.

Kerry</description>
		<content:encoded><![CDATA[<p>Glad to hear it helped you out. It drove me crazy for a couple of days.</p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cristian</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/hidden-sql-why-cant-i-find-my-sql-text/#comment-805</link>
		<dc:creator>Cristian</dc:creator>
		<pubDate>Fri, 17 Apr 2009 10:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1161#comment-805</guid>
		<description>I've noticed same strange behaviour on one of my systems. Before your post i was only able to understand that problem was with LOB and i've found it through V$ACTIVE_SESSION_HISTORY and SQL_PLAN_HASH_VALUE field. Querying V$SQL_PLAN (with value in ASH) i've found (with my great surprise) a lot of different sql_id's and querying V$SQL with one of those SQL_ID i've found the query on a LOB. 
Thank you for this great post.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve noticed same strange behaviour on one of my systems. Before your post i was only able to understand that problem was with LOB and i&#8217;ve found it through V$ACTIVE_SESSION_HISTORY and SQL_PLAN_HASH_VALUE field. Querying V$SQL_PLAN (with value in ASH) i&#8217;ve found (with my great surprise) a lot of different sql_id&#8217;s and querying V$SQL with one of those SQL_ID i&#8217;ve found the query on a LOB.<br />
Thank you for this great post.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
