<?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: Bind Variables</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Fri, 24 May 2013 13:27:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-50274</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Tue, 18 Sep 2012 10:58:50 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-50274</guid>
		<description><![CDATA[There&#039;s been some chat on oracle-l recently about event 10503 not working at the session level - with a reference given, though, to  Bug 10274265 : &quot;EVENT 10503 NOT WORKING ON THE SESSION LEVEL&quot; and followup reports that this bug is now fixed with various patches available.]]></description>
		<content:encoded><![CDATA[<p>There&#8217;s been some chat on oracle-l recently about event 10503 not working at the session level &#8211; with a reference given, though, to  Bug 10274265 : &#8220;EVENT 10503 NOT WORKING ON THE SESSION LEVEL&#8221; and followup reports that this bug is now fixed with various patches available.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Uday</title>
		<link>http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-46050</link>
		<dc:creator><![CDATA[Uday]]></dc:creator>
		<pubDate>Fri, 13 Apr 2012 05:13:35 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-46050</guid>
		<description><![CDATA[Hello Jonathan,

  we see 2 namespaces in v$librarycache in 11.2 (&#039;SQL AREA BUILD&#039; and &#039;SQL AREA STATS&#039;) , I have not found any details on these 2. What are these 2 new namespace relates to ?]]></description>
		<content:encoded><![CDATA[<p>Hello Jonathan,</p>
<p>  we see 2 namespaces in v$librarycache in 11.2 (&#8216;SQL AREA BUILD&#8217; and &#8216;SQL AREA STATS&#8217;) , I have not found any details on these 2. What are these 2 new namespace relates to ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rita</title>
		<link>http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-23580</link>
		<dc:creator><![CDATA[Rita]]></dc:creator>
		<pubDate>Thu, 01 Nov 2007 22:35:17 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-23580</guid>
		<description><![CDATA[We are using VPD.
As a result of this we are seeing that we are getting plenty of child cursors (in some cases 600+).I checked the auth_check_mismatch in v$sql_shared_cursor and it has a &#039;Y&#039; value.
I would really appreciate if you could help us in understanding and resolving this issue.

Thanks]]></description>
		<content:encoded><![CDATA[<p>We are using VPD.<br />
As a result of this we are seeing that we are getting plenty of child cursors (in some cases 600+).I checked the auth_check_mismatch in v$sql_shared_cursor and it has a &#8216;Y&#8217; value.<br />
I would really appreciate if you could help us in understanding and resolving this issue.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Balu</title>
		<link>http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-15929</link>
		<dc:creator><![CDATA[Balu]]></dc:creator>
		<pubDate>Mon, 23 Jul 2007 04:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-15929</guid>
		<description><![CDATA[Hi,

Question Reg Bind Variables.

SQL&gt; declare
    begin
     for i in 1..100000
     loop
      insert into x values(i);
     end loop;
    end;  2    3    4    5    6    7
  8  /

PL/SQL procedure successfully completed.

Elapsed: 00:00:20.66
SQL&gt; declare
    begin
     for i in 1..100000
     loop
      execute immediate &#039;insert into t1 values(:x)&#039; using i;
     end loop;
    end;  2    3    4    5    6    7
  8  /

PL/SQL procedure successfully completed.

Elapsed: 00:04:45.08

If i use bind variables it is taking nearly 4min where as without bind variables it takes only 20Sec to finish the job can you help me explain me the concept in detail that will be great help.

2. will soft parse undergo latches.

Regards

Balu.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Question Reg Bind Variables.</p>
<p>SQL&gt; declare<br />
    begin<br />
     for i in 1..100000<br />
     loop<br />
      insert into x values(i);<br />
     end loop;<br />
    end;  2    3    4    5    6    7<br />
  8  /</p>
<p>PL/SQL procedure successfully completed.</p>
<p>Elapsed: 00:00:20.66<br />
SQL&gt; declare<br />
    begin<br />
     for i in 1..100000<br />
     loop<br />
      execute immediate &#8216;insert into t1 values(:x)&#8217; using i;<br />
     end loop;<br />
    end;  2    3    4    5    6    7<br />
  8  /</p>
<p>PL/SQL procedure successfully completed.</p>
<p>Elapsed: 00:04:45.08</p>
<p>If i use bind variables it is taking nearly 4min where as without bind variables it takes only 20Sec to finish the job can you help me explain me the concept in detail that will be great help.</p>
<p>2. will soft parse undergo latches.</p>
<p>Regards</p>
<p>Balu.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-9749</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Sat, 26 May 2007 13:33:08 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-9749</guid>
		<description><![CDATA[Saibabu, it is possible, though perhaps not by design.  Say you have query with a range predicate:
&lt;code&gt;char_col &lt; :b1&lt;/code&gt;
When you first run the statement your value is &#039;aaa&#039;, very short and close to the start of the alphabet.  When I run the query some time later my value is &#039;zzz.....zzz&#039; - very long and close to the end of the alphabet.
Because of the differences in length I get a second child cursor; because of the differences in value I may get a different execution plan. But, as I said, this may be accident rather then design.
Answer to question 2: I don&#039;t know, I didn&#039;t write the specification or the code; but it&#039;s a reasonable guess. Maybe this is a hangover from the days when memory was very tightly limited and &quot;wasting&quot; 4KB was important. In 10g a lot of the code has apparently changed to try and reduce fragmentation of memory by sticking (where possible) to a small number of allocation sizes - maybe this strategy will also surface at some future time with this bind-variable issue.
]]></description>
		<content:encoded><![CDATA[<p>Saibabu, it is possible, though perhaps not by design.  Say you have query with a range predicate:<br />
<code>char_col &lt; :b1</code><br />
When you first run the statement your value is &#8216;aaa&#8217;, very short and close to the start of the alphabet.  When I run the query some time later my value is &#8216;zzz&#8230;..zzz&#8217; &#8211; very long and close to the end of the alphabet.<br />
Because of the differences in length I get a second child cursor; because of the differences in value I may get a different execution plan. But, as I said, this may be accident rather then design.<br />
Answer to question 2: I don&#8217;t know, I didn&#8217;t write the specification or the code; but it&#8217;s a reasonable guess. Maybe this is a hangover from the days when memory was very tightly limited and &#8220;wasting&#8221; 4KB was important. In 10g a lot of the code has apparently changed to try and reduce fragmentation of memory by sticking (where possible) to a small number of allocation sizes &#8211; maybe this strategy will also surface at some future time with this bind-variable issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vivek Sharma</title>
		<link>http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-9645</link>
		<dc:creator><![CDATA[Vivek Sharma]]></dc:creator>
		<pubDate>Fri, 25 May 2007 13:52:42 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-9645</guid>
		<description><![CDATA[In Response to Akhileshs&#039; query about the table in remote database and the query showing a high version count. A probable solution would be to create a view in the local database as select * from emp@remote. Now, when this local view is referenced, the version count should come down. 

Regards
Vivek]]></description>
		<content:encoded><![CDATA[<p>In Response to Akhileshs&#8217; query about the table in remote database and the query showing a high version count. A probable solution would be to create a view in the local database as select * from emp@remote. Now, when this local view is referenced, the version count should come down. </p>
<p>Regards<br />
Vivek</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saibabu Devabhaktuni</title>
		<link>http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-9606</link>
		<dc:creator><![CDATA[Saibabu Devabhaktuni]]></dc:creator>
		<pubDate>Fri, 25 May 2007 06:20:13 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-9606</guid>
		<description><![CDATA[I&#039;ve 2 questions:

1) Does Oracle ever come up with a different plan for child cursors when they were spawned because of their datatype lengths?
2) If answer to the above question is no, Why is Oracle is spawning different child cursor due to bind lengths, is it to save on shadow process memory?

Thanks.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve 2 questions:</p>
<p>1) Does Oracle ever come up with a different plan for child cursors when they were spawned because of their datatype lengths?<br />
2) If answer to the above question is no, Why is Oracle is spawning different child cursor due to bind lengths, is it to save on shadow process memory?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-6565</link>
		<dc:creator><![CDATA[Martin]]></dc:creator>
		<pubDate>Tue, 24 Apr 2007 09:00:37 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-6565</guid>
		<description><![CDATA[Cross-reference to a similar entry on tkyte-blog: http://tkyte.blogspot.com/2007/04/share-and-share-alike.html]]></description>
		<content:encoded><![CDATA[<p>Cross-reference to a similar entry on tkyte-blog: <a href="http://tkyte.blogspot.com/2007/04/share-and-share-alike.html" rel="nofollow">http://tkyte.blogspot.com/2007/04/share-and-share-alike.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shared_pool latching &#171; Database Systems</title>
		<link>http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-4590</link>
		<dc:creator><![CDATA[shared_pool latching &#171; Database Systems]]></dc:creator>
		<pubDate>Sun, 01 Apr 2007 19:31:37 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-4590</guid>
		<description><![CDATA[[...] Jonathan Lewis answered my question. Check the link http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/ [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Jonathan Lewis answered my question. Check the link <a href="http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/" rel="nofollow">http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alberto Dell'Era</title>
		<link>http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-3991</link>
		<dc:creator><![CDATA[Alberto Dell'Era]]></dc:creator>
		<pubDate>Sat, 17 Mar 2007 22:06:05 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/#comment-3991</guid>
		<description><![CDATA[Boris,

I think you know more than me about the library cache inner workings, as demonstrated by the fact that I don&#039;t know the answers to your questions ;)

Thanks for the very interesting test case, it is absolutely convincing that Oracle will try to use the &quot;current&quot; (last) child first if it is compatible instead of performing a full search to find the most compatible one - so (potentially?) using a less efficient plan but avoiding a lot of pinning. I guess (stress on guess) that this will make the first child colder and colder, so eventually, in a library cache really pressed for space, eligible for being removed - but look at Jonathan&#039;s comment on my test case above.]]></description>
		<content:encoded><![CDATA[<p>Boris,</p>
<p>I think you know more than me about the library cache inner workings, as demonstrated by the fact that I don&#8217;t know the answers to your questions ;)</p>
<p>Thanks for the very interesting test case, it is absolutely convincing that Oracle will try to use the &#8220;current&#8221; (last) child first if it is compatible instead of performing a full search to find the most compatible one &#8211; so (potentially?) using a less efficient plan but avoiding a lot of pinning. I guess (stress on guess) that this will make the first child colder and colder, so eventually, in a library cache really pressed for space, eligible for being removed &#8211; but look at Jonathan&#8217;s comment on my test case above.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
