<?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: Tracking the bind value</title>
	<atom:link href="http://dioncho.wordpress.com/2009/05/07/tracking-the-bind-value/feed/" rel="self" type="application/rss+xml" />
	<link>http://dioncho.wordpress.com/2009/05/07/tracking-the-bind-value/</link>
	<description>We are natural born scientists</description>
	<lastBuildDate>Fri, 17 Dec 2010 18:43:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Plans gone AWRy &#8211; an invASHtigation &#171; OraStory</title>
		<link>http://dioncho.wordpress.com/2009/05/07/tracking-the-bind-value/#comment-527</link>
		<dc:creator><![CDATA[Plans gone AWRy &#8211; an invASHtigation &#171; OraStory]]></dc:creator>
		<pubDate>Tue, 29 Dec 2009 16:37:50 +0000</pubDate>
		<guid isPermaLink="false">http://dioncho.wordpress.com/?p=625#comment-527</guid>
		<description><![CDATA[[...] other ASH / AWR resources: Tracking the bind variable &#8211; Dion Cho Doug&#8217;s AWR tagged posts Doug&#8217;s ASH tagged posts Possibly related posts: (automatically [...]]]></description>
		<content:encoded><![CDATA[<p>[...] other ASH / AWR resources: Tracking the bind variable &#8211; Dion Cho Doug&#8217;s AWR tagged posts Doug&#8217;s ASH tagged posts Possibly related posts: (automatically [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dion Cho</title>
		<link>http://dioncho.wordpress.com/2009/05/07/tracking-the-bind-value/#comment-367</link>
		<dc:creator><![CDATA[Dion Cho]]></dc:creator>
		<pubDate>Wed, 29 Jul 2009 07:45:25 +0000</pubDate>
		<guid isPermaLink="false">http://dioncho.wordpress.com/?p=625#comment-367</guid>
		<description><![CDATA[Petr.

Yes, I know that. 
But that&#039;s not what I&#039;m describing in this post. &quot;Can we get the bind values used in the &quot;select ..&quot; query by session 146 10PM of last night?&quot; - that&#039;s the question here.]]></description>
		<content:encoded><![CDATA[<p>Petr.</p>
<p>Yes, I know that.<br />
But that&#8217;s not what I&#8217;m describing in this post. &#8220;Can we get the bind values used in the &#8220;select ..&#8221; query by session 146 10PM of last night?&#8221; &#8211; that&#8217;s the question here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Petr</title>
		<link>http://dioncho.wordpress.com/2009/05/07/tracking-the-bind-value/#comment-366</link>
		<dc:creator><![CDATA[Petr]]></dc:creator>
		<pubDate>Wed, 29 Jul 2009 07:38:37 +0000</pubDate>
		<guid isPermaLink="false">http://dioncho.wordpress.com/?p=625#comment-366</guid>
		<description><![CDATA[Hallo Dion,

I supposed that peeked binds in OTHER_XML in v$sql_plan and dba_hist_sqlplan are the binds which were used when the statement was parsed.]]></description>
		<content:encoded><![CDATA[<p>Hallo Dion,</p>
<p>I supposed that peeked binds in OTHER_XML in v$sql_plan and dba_hist_sqlplan are the binds which were used when the statement was parsed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dion Cho</title>
		<link>http://dioncho.wordpress.com/2009/05/07/tracking-the-bind-value/#comment-364</link>
		<dc:creator><![CDATA[Dion Cho]]></dc:creator>
		<pubDate>Tue, 28 Jul 2009 11:16:43 +0000</pubDate>
		<guid isPermaLink="false">http://dioncho.wordpress.com/?p=625#comment-364</guid>
		<description><![CDATA[Petr

It&#039;s technically impossible to get the bind values from shared v$ views and/or dictionary views. Bind values have meaning only at the session level(PGA), not the system level(SGA). This is why we have only 2 ways available to capture 100% of the bind values 


auditing
10046 trace


What you get from V$SQL_PLAN and DBA_HIST_SQLPLAN(and any other views) are the bind values of one specific session of one specific time.]]></description>
		<content:encoded><![CDATA[<p>Petr</p>
<p>It&#8217;s technically impossible to get the bind values from shared v$ views and/or dictionary views. Bind values have meaning only at the session level(PGA), not the system level(SGA). This is why we have only 2 ways available to capture 100% of the bind values </p>
<p>auditing<br />
10046 trace</p>
<p>What you get from V$SQL_PLAN and DBA_HIST_SQLPLAN(and any other views) are the bind values of one specific session of one specific time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Petr</title>
		<link>http://dioncho.wordpress.com/2009/05/07/tracking-the-bind-value/#comment-363</link>
		<dc:creator><![CDATA[Petr]]></dc:creator>
		<pubDate>Tue, 28 Jul 2009 10:48:39 +0000</pubDate>
		<guid isPermaLink="false">http://dioncho.wordpress.com/?p=625#comment-363</guid>
		<description><![CDATA[Bind values can be found together with other info in column OTHER_XML in V$SQL_PLAN or DBA_HIST_SQLPLAN in row with ID=0. They can by displayed (if available) with the option ADVANCED from

V$SQL_PLAN: 
select * from  table(dbms_xplan.display_cursor(&#039;&amp;SQL_ID&#039;,&amp;child,&#039;ADVANCED&#039;));

AWR:
select * from table(dbms_xplan.display_awr(&#039;&amp;SQL_ID&#039;,NULL,NULL,&#039;ADVANCED&#039;));]]></description>
		<content:encoded><![CDATA[<p>Bind values can be found together with other info in column OTHER_XML in V$SQL_PLAN or DBA_HIST_SQLPLAN in row with ID=0. They can by displayed (if available) with the option ADVANCED from</p>
<p>V$SQL_PLAN:<br />
select * from  table(dbms_xplan.display_cursor(&#8216;&amp;SQL_ID&#8217;,&amp;child,&#8217;ADVANCED&#8217;));</p>
<p>AWR:<br />
select * from table(dbms_xplan.display_awr(&#8216;&amp;SQL_ID&#8217;,NULL,NULL,&#8217;ADVANCED&#8217;));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denis</title>
		<link>http://dioncho.wordpress.com/2009/05/07/tracking-the-bind-value/#comment-256</link>
		<dc:creator><![CDATA[Denis]]></dc:creator>
		<pubDate>Wed, 27 May 2009 19:06:17 +0000</pubDate>
		<guid isPermaLink="false">http://dioncho.wordpress.com/?p=625#comment-256</guid>
		<description><![CDATA[Thanks Tanel. I tested your method today: http://oracle-study-notes.blogspot.com/2009/05/oradebug-dump-errorstack-and-bind.html it should be helpful. Next time, if same situation occurs, I will give a try.


FGA may work for 10g, but for 9i only SELECT is supported.]]></description>
		<content:encoded><![CDATA[<p>Thanks Tanel. I tested your method today: <a href="http://oracle-study-notes.blogspot.com/2009/05/oradebug-dump-errorstack-and-bind.html" rel="nofollow">http://oracle-study-notes.blogspot.com/2009/05/oradebug-dump-errorstack-and-bind.html</a> it should be helpful. Next time, if same situation occurs, I will give a try.</p>
<p>FGA may work for 10g, but for 9i only SELECT is supported.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://dioncho.wordpress.com/2009/05/07/tracking-the-bind-value/#comment-255</link>
		<dc:creator><![CDATA[Tanel Poder]]></dc:creator>
		<pubDate>Wed, 27 May 2009 12:21:16 +0000</pubDate>
		<guid isPermaLink="false">http://dioncho.wordpress.com/?p=625#comment-255</guid>
		<description><![CDATA[IF your problem is still ongoing, meaning that the &quot;bad&quot; long-running statement is still running, the errorstack dump at level 2 would give you bind variable value as well (as I explained here: http://www.freelists.org/post/oracle-l/Tx-row-lock-contention-after-implementing-transaction-management-in-application-server,6 )]]></description>
		<content:encoded><![CDATA[<p>IF your problem is still ongoing, meaning that the &#8220;bad&#8221; long-running statement is still running, the errorstack dump at level 2 would give you bind variable value as well (as I explained here: <a href="http://www.freelists.org/post/oracle-l/Tx-row-lock-contention-after-implementing-transaction-management-in-application-server,6" rel="nofollow">http://www.freelists.org/post/oracle-l/Tx-row-lock-contention-after-implementing-transaction-management-in-application-server,6</a> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dion Cho</title>
		<link>http://dioncho.wordpress.com/2009/05/07/tracking-the-bind-value/#comment-250</link>
		<dc:creator><![CDATA[Dion Cho]]></dc:creator>
		<pubDate>Wed, 20 May 2009 01:16:01 +0000</pubDate>
		<guid isPermaLink="false">http://dioncho.wordpress.com/?p=625#comment-250</guid>
		<description><![CDATA[@Denis

In that case, FGA(Fine Grained Auditing) seems to be the solution.

http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:5967736255722

http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_fga.htm#CDEIECAG]]></description>
		<content:encoded><![CDATA[<p>@Denis</p>
<p>In that case, FGA(Fine Grained Auditing) seems to be the solution.</p>
<p><a href="http://asktom.oracle.com/pls/asktom/f?p=100:11:0" rel="nofollow">http://asktom.oracle.com/pls/asktom/f?p=100:11:0</a>::::P11_QUESTION_ID:5967736255722</p>
<p><a href="http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_fga.htm#CDEIECAG" rel="nofollow">http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_fga.htm#CDEIECAG</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: denis</title>
		<link>http://dioncho.wordpress.com/2009/05/07/tracking-the-bind-value/#comment-249</link>
		<dc:creator><![CDATA[denis]]></dc:creator>
		<pubDate>Tue, 19 May 2009 14:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://dioncho.wordpress.com/?p=625#comment-249</guid>
		<description><![CDATA[Thanks. I will read the doc whenever having chances. My situation is I support a 9i database, which from time to time has blocker/waiter sessions (long enough to  cause application slow down significantly). We are able to show dev team the sql of the blocking sessions. But they asked can you give us the bind values in those sqls? Then we lost. From your post, it seems possible to turn on audit on a table, then we can get bind value of the sql on it. Is it true? If so, looks to me better than turning on sql_trace, which is nearly impossible - we don&#039;t know which and when a session will be blocking.]]></description>
		<content:encoded><![CDATA[<p>Thanks. I will read the doc whenever having chances. My situation is I support a 9i database, which from time to time has blocker/waiter sessions (long enough to  cause application slow down significantly). We are able to show dev team the sql of the blocking sessions. But they asked can you give us the bind values in those sqls? Then we lost. From your post, it seems possible to turn on audit on a table, then we can get bind value of the sql on it. Is it true? If so, looks to me better than turning on sql_trace, which is nearly impossible &#8211; we don&#8217;t know which and when a session will be blocking.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dion Cho</title>
		<link>http://dioncho.wordpress.com/2009/05/07/tracking-the-bind-value/#comment-248</link>
		<dc:creator><![CDATA[Dion Cho]]></dc:creator>
		<pubDate>Tue, 19 May 2009 02:19:40 +0000</pubDate>
		<guid isPermaLink="false">http://dioncho.wordpress.com/?p=625#comment-248</guid>
		<description><![CDATA[@Denis

Oracle has built up fantastic document on this.

http://download.oracle.com/docs/cd/B28359_01/server.111/b28337/tdpsg_auditing.htm]]></description>
		<content:encoded><![CDATA[<p>@Denis</p>
<p>Oracle has built up fantastic document on this.</p>
<p><a href="http://download.oracle.com/docs/cd/B28359_01/server.111/b28337/tdpsg_auditing.htm" rel="nofollow">http://download.oracle.com/docs/cd/B28359_01/server.111/b28337/tdpsg_auditing.htm</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
