<?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: Oracle Troubleshooting: How to read Oracle ERRORSTACK output?!</title>
	<atom:link href="http://blog.tanelpoder.com/2010/02/14/oracle-troubleshooting-how-to-read-oracle-errorstack-output/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tanelpoder.com/2010/02/14/oracle-troubleshooting-how-to-read-oracle-errorstack-output/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=oracle-troubleshooting-how-to-read-oracle-errorstack-output</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: Where is the sql_id of active session &#171; Coskan&#8217;s Approach to Oracle</title>
		<link>http://blog.tanelpoder.com/2010/02/14/oracle-troubleshooting-how-to-read-oracle-errorstack-output/comment-page-1/#comment-9001</link>
		<dc:creator>Where is the sql_id of active session &#171; Coskan&#8217;s Approach to Oracle</dc:creator>
		<pubDate>Fri, 11 Nov 2011 15:39:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=617#comment-9001</guid>
		<description>[...] Method 2- Oradebug dump error stack (10g-11g no license needed)- Most reliable and certain way it is %100 accurate and good part is it does not need any input from me since Tanel Poder already covered how to go through error stack on his post how to read errorstack output  [...]</description>
		<content:encoded><![CDATA[<p>[...] Method 2- Oradebug dump error stack (10g-11g no license needed)- Most reliable and certain way it is %100 accurate and good part is it does not need any input from me since Tanel Poder already covered how to go through error stack on his post how to read errorstack output  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Hays</title>
		<link>http://blog.tanelpoder.com/2010/02/14/oracle-troubleshooting-how-to-read-oracle-errorstack-output/comment-page-1/#comment-7253</link>
		<dc:creator>Dave Hays</dc:creator>
		<pubDate>Fri, 20 May 2011 20:36:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=617#comment-7253</guid>
		<description>OH my goodness,  I totally missed the point  :) 
also, correct, I think I took my test as far as to begin using the pl/sql block just in attempt to obtain the desired result. 
Tanel,  thank you very much! 

-dave</description>
		<content:encoded><![CDATA[<p>OH my goodness,  I totally missed the point  :)<br />
also, correct, I think I took my test as far as to begin using the pl/sql block just in attempt to obtain the desired result.<br />
Tanel,  thank you very much! </p>
<p>-dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2010/02/14/oracle-troubleshooting-how-to-read-oracle-errorstack-output/comment-page-1/#comment-7252</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Fri, 20 May 2011 20:14:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=617#comment-7252</guid>
		<description>This is likely because you&#039;re not running the query anymore. Run something which takes longer time so you could run the oradebug command when the query is still running.

What I use for demos is:

SELECT COUNT(*) FROM some_table a, sometable b, sometable c WHERE a.some_col != :bind1 and b.some_col != :bind2

Btw, you don&#039;t need PL/SQL anonymous block to use bind variables...</description>
		<content:encoded><![CDATA[<p>This is likely because you&#8217;re not running the query anymore. Run something which takes longer time so you could run the oradebug command when the query is still running.</p>
<p>What I use for demos is:</p>
<p>SELECT COUNT(*) FROM some_table a, sometable b, sometable c WHERE a.some_col != :bind1 and b.some_col != :bind2</p>
<p>Btw, you don&#8217;t need PL/SQL anonymous block to use bind variables&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Hays</title>
		<link>http://blog.tanelpoder.com/2010/02/14/oracle-troubleshooting-how-to-read-oracle-errorstack-output/comment-page-1/#comment-7251</link>
		<dc:creator>Dave Hays</dc:creator>
		<pubDate>Fri, 20 May 2011 19:52:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=617#comment-7251</guid>
		<description>&lt;a href=&quot;#comment-7247&quot; rel=&quot;nofollow&quot;&gt;@Tanel Poder &lt;/a&gt; 
sure - 

I have a table called BINDTEST :
SQL&gt; desc bindtest;
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------------
 V1                                                 NUMBER

SQL&gt; select * from bindtest;

        V1
----------
        10

SQL&gt;

The simplest test I could think of was an anonymous block of PL/SQL with the following delete statement:

script name delete.sql: 

variable B1 number;
exec :B1 := 10;

BEGIN
delete bindtest where v1 = :B1;
end;
/

And here&#039;s the test:
1)
I setospid  to my current session:
Terminal 1:
SQL&gt; !ps -ef &#124; grep 32191
haysdj     467 32191  0 14:43 pts/3    00:00:00 grep 32191
haysdj   32191 21417  0 14:40 pts/3    00:00:00 sqlplus
oracle   32220 32191  0 14:40 ?        00:00:00 oraclez1tr (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))

Terminal 2:
SQL&gt; oradebug setospid 32220
Oracle pid: 27, Unix process pid: 32220, image: oracle@arloraft01.corp.cat.com ( TNS V1-V3)
SQL&gt;

2)
I run my simple delete script:

Terminal1:

SQL&gt; @delete

PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.

SQL&gt;

3)
I dump errorstack (level 3)
Terminal 2
SQL&gt; oradebug dump errorstack 3
Statement processed.
SQL&gt;


My trace output is as follows:


Unix process pid: 32220, image: oracle@arloraft01.corp.cat.com (TNS V1-V3)

*** 2011-05-20 14:44:25.821
*** ACTION NAME:() 2011-05-20 14:44:25.810
*** MODULE NAME:(SQL*Plus) 2011-05-20 14:44:25.810
*** SERVICE NAME:(SYS$USERS) 2011-05-20 14:44:25.810
*** SESSION ID:(305.915) 2011-05-20 14:44:25.810
Received ORADEBUG command &#039;dump errorstack 3&#039; from process Unix process pid: 364, image:
*** 2011-05-20 14:44:25.821
ksedmp: internal or fatal error
Current SQL statement for this session:
BEGIN
delete bindtest where v1 = :B1;
end;

...
...
...
Cursor#1(0x2b9b42321768) state=BOUND curiob=0x2b9b4233ce40
 curflg=cd fl2=0 par=(nil) ses=0x8f64ed70
 sqltxt(0x883fe0f0)=DELETE BINDTEST WHERE V1 = :B1
  hash=564318d4cda9b6ad1a4c07f3319b5fd0
  parent=0x8779afc8 maxchild=01 plk=0x8c35b8e8 ppn=n
cursor instantiation=0x2b9b4233ce40 used=1305920648
 child#0(0x883fdec8) pcs=0x8779abd8
  clk=0x8c2d9c90 ci=0x83f9d2e0 pn=(nil) ctx=0x840ba8a8
 kgsccflg=0 llk[0x2b9b4233ce48,0x2b9b4233ce48] idx=0
 xscflg=80110436 fl2=15000000 fl3=208218c fl4=0
 Bind bytecodes
  Opcode = 6   Bind Rpi Scalar Sql In(may be out) Nocopy NoSkip
  Offsi = 48, Offsi = 0
kkscoacd
 Bind#0
  oacdty=02 mxl=22(22) mxlc=00 mal=00 scl=00 pre=00
  oacflg=13 fl2=202001 frm=00 csi=00 siz=24 off=0
  No bind buffers allocated

...
...
...</description>
		<content:encoded><![CDATA[<p><a href="#comment-7247" rel="nofollow">@Tanel Poder </a><br />
sure &#8211; </p>
<p>I have a table called BINDTEST :<br />
SQL&gt; desc bindtest;<br />
 Name                                      Null?    Type<br />
 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
 V1                                                 NUMBER</p>
<p>SQL&gt; select * from bindtest;</p>
<p>        V1<br />
&#8212;&#8212;&#8212;-<br />
        10</p>
<p>SQL&gt;</p>
<p>The simplest test I could think of was an anonymous block of PL/SQL with the following delete statement:</p>
<p>script name delete.sql: </p>
<p>variable B1 number;<br />
exec :B1 := 10;</p>
<p>BEGIN<br />
delete bindtest where v1 = :B1;<br />
end;<br />
/</p>
<p>And here&#8217;s the test:<br />
1)<br />
I setospid  to my current session:<br />
Terminal 1:<br />
SQL&gt; !ps -ef | grep 32191<br />
haysdj     467 32191  0 14:43 pts/3    00:00:00 grep 32191<br />
haysdj   32191 21417  0 14:40 pts/3    00:00:00 sqlplus<br />
oracle   32220 32191  0 14:40 ?        00:00:00 oraclez1tr (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))</p>
<p>Terminal 2:<br />
SQL&gt; oradebug setospid 32220<br />
Oracle pid: 27, Unix process pid: 32220, image: <a href="mailto:oracle@arloraft01.corp.cat.com">oracle@arloraft01.corp.cat.com</a> ( TNS V1-V3)<br />
SQL&gt;</p>
<p>2)<br />
I run my simple delete script:</p>
<p>Terminal1:</p>
<p>SQL&gt; @delete</p>
<p>PL/SQL procedure successfully completed.</p>
<p>PL/SQL procedure successfully completed.</p>
<p>SQL&gt;</p>
<p>3)<br />
I dump errorstack (level 3)<br />
Terminal 2<br />
SQL&gt; oradebug dump errorstack 3<br />
Statement processed.<br />
SQL&gt;</p>
<p>My trace output is as follows:</p>
<p>Unix process pid: 32220, image: <a href="mailto:oracle@arloraft01.corp.cat.com">oracle@arloraft01.corp.cat.com</a> (TNS V1-V3)</p>
<p>*** 2011-05-20 14:44:25.821<br />
*** ACTION NAME:() 2011-05-20 14:44:25.810<br />
*** MODULE NAME:(SQL*Plus) 2011-05-20 14:44:25.810<br />
*** SERVICE NAME:(SYS$USERS) 2011-05-20 14:44:25.810<br />
*** SESSION ID:(305.915) 2011-05-20 14:44:25.810<br />
Received ORADEBUG command &#8216;dump errorstack 3&#8242; from process Unix process pid: 364, image:<br />
*** 2011-05-20 14:44:25.821<br />
ksedmp: internal or fatal error<br />
Current SQL statement for this session:<br />
BEGIN<br />
delete bindtest where v1 = :B1;<br />
end;</p>
<p>&#8230;<br />
&#8230;<br />
&#8230;<br />
Cursor#1(0x2b9b42321768) state=BOUND curiob=0x2b9b4233ce40<br />
 curflg=cd fl2=0 par=(nil) ses=0x8f64ed70<br />
 sqltxt(0x883fe0f0)=DELETE BINDTEST WHERE V1 = :B1<br />
  hash=564318d4cda9b6ad1a4c07f3319b5fd0<br />
  parent=0x8779afc8 maxchild=01 plk=0x8c35b8e8 ppn=n<br />
cursor instantiation=0x2b9b4233ce40 used=1305920648<br />
 child#0(0x883fdec8) pcs=0x8779abd8<br />
  clk=0x8c2d9c90 ci=0x83f9d2e0 pn=(nil) ctx=0x840ba8a8<br />
 kgsccflg=0 llk[0x2b9b4233ce48,0x2b9b4233ce48] idx=0<br />
 xscflg=80110436 fl2=15000000 fl3=208218c fl4=0<br />
 Bind bytecodes<br />
  Opcode = 6   Bind Rpi Scalar Sql In(may be out) Nocopy NoSkip<br />
  Offsi = 48, Offsi = 0<br />
kkscoacd<br />
 Bind#0<br />
  oacdty=02 mxl=22(22) mxlc=00 mal=00 scl=00 pre=00<br />
  oacflg=13 fl2=202001 frm=00 csi=00 siz=24 off=0<br />
  No bind buffers allocated</p>
<p>&#8230;<br />
&#8230;<br />
&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2010/02/14/oracle-troubleshooting-how-to-read-oracle-errorstack-output/comment-page-1/#comment-7247</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Fri, 20 May 2011 17:50:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=617#comment-7247</guid>
		<description>&lt;a href=&quot;#comment-7246&quot; rel=&quot;nofollow&quot;&gt;@Dave Hays&lt;/a&gt; 
Can you post the full testcase here, e.g. which SQL are you running and when exactly are you running the dump command.</description>
		<content:encoded><![CDATA[<p><a href="#comment-7246" rel="nofollow">@Dave Hays</a><br />
Can you post the full testcase here, e.g. which SQL are you running and when exactly are you running the dump command.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Hays</title>
		<link>http://blog.tanelpoder.com/2010/02/14/oracle-troubleshooting-how-to-read-oracle-errorstack-output/comment-page-1/#comment-7246</link>
		<dc:creator>Dave Hays</dc:creator>
		<pubDate>Fri, 20 May 2011 17:44:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=617#comment-7246</guid>
		<description>Tanel,  
I am a great fan of your posts, this is the first time I&#039;ve communicated with you directly - I have what  a simple question -I am trying to reproduce the
examples in 

(http://tech.e2sn.com/oracle/troubleshooting/how-to-read-errorstack-output)

in which you are able to obtain bind information using oradebug dump errorstack 3  

I am following the progression in your article, but I&#039;m unable to reproduce the same when I try it at home.  What I always see instead of &quot;value=&quot;  in my trace dumps is:

  No bind buffers allocated

Can you shed some light on this ?  I&#039;m not expecting that I need to tinker with the hidden parameter _optim_peek_user_binds  (believe thats the name). 

I thank you greatly in advance for any feedback you can provide - 

-dave 
Dave Hays
Caterpillar, Inc.</description>
		<content:encoded><![CDATA[<p>Tanel,<br />
I am a great fan of your posts, this is the first time I&#8217;ve communicated with you directly &#8211; I have what  a simple question -I am trying to reproduce the<br />
examples in </p>
<p>(<a href="http://tech.e2sn.com/oracle/troubleshooting/how-to-read-errorstack-output" rel="nofollow">http://tech.e2sn.com/oracle/troubleshooting/how-to-read-errorstack-output</a>)</p>
<p>in which you are able to obtain bind information using oradebug dump errorstack 3  </p>
<p>I am following the progression in your article, but I&#8217;m unable to reproduce the same when I try it at home.  What I always see instead of &#8220;value=&#8221;  in my trace dumps is:</p>
<p>  No bind buffers allocated</p>
<p>Can you shed some light on this ?  I&#8217;m not expecting that I need to tinker with the hidden parameter _optim_peek_user_binds  (believe thats the name). </p>
<p>I thank you greatly in advance for any feedback you can provide &#8211; </p>
<p>-dave<br />
Dave Hays<br />
Caterpillar, Inc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2010/02/14/oracle-troubleshooting-how-to-read-oracle-errorstack-output/comment-page-1/#comment-4292</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Sun, 28 Mar 2010 16:51:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=617#comment-4292</guid>
		<description>&lt;a href=&quot;#comment-4291&quot; rel=&quot;nofollow&quot;&gt;@Giridhar Kodakalla&lt;/a&gt; 
Well, if the SQL you fire from your PL/SQL causes some other SQL to fire recursively (triggers, auditing, recursive data dictionary queries) then you may see other SQL pop up there if you take the errorstack dump when the recursive SQL happens to be executing.</description>
		<content:encoded><![CDATA[<p><a href="#comment-4291" rel="nofollow">@Giridhar Kodakalla</a><br />
Well, if the SQL you fire from your PL/SQL causes some other SQL to fire recursively (triggers, auditing, recursive data dictionary queries) then you may see other SQL pop up there if you take the errorstack dump when the recursive SQL happens to be executing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giridhar Kodakalla</title>
		<link>http://blog.tanelpoder.com/2010/02/14/oracle-troubleshooting-how-to-read-oracle-errorstack-output/comment-page-1/#comment-4291</link>
		<dc:creator>Giridhar Kodakalla</dc:creator>
		<pubDate>Sun, 28 Mar 2010 10:36:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=617#comment-4291</guid>
		<description>Are there any occassions where the &quot;Current SQL Statement for this Session&quot; in the trace file will be different than whatever is being found from the PL/SQL code (if the sql is from a pl/sql program) which you demonstrated in &quot;Reading the current executing PL/SQL package and PL/SQL source code line number from errorstack trace&quot; by querying DBA_SOURCE?

If yes, would you please let us know. 

Thanks,
Giridhar Kodakalla.</description>
		<content:encoded><![CDATA[<p>Are there any occassions where the &#8220;Current SQL Statement for this Session&#8221; in the trace file will be different than whatever is being found from the PL/SQL code (if the sql is from a pl/sql program) which you demonstrated in &#8220;Reading the current executing PL/SQL package and PL/SQL source code line number from errorstack trace&#8221; by querying DBA_SOURCE?</p>
<p>If yes, would you please let us know. </p>
<p>Thanks,<br />
Giridhar Kodakalla.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2010/02/14/oracle-troubleshooting-how-to-read-oracle-errorstack-output/comment-page-1/#comment-3870</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Wed, 17 Feb 2010 13:52:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=617#comment-3870</guid>
		<description>&lt;a href=&quot;#comment-3866&quot; rel=&quot;nofollow&quot;&gt;@Maxx&lt;/a&gt; 
Hi Maxx,

I&#039;m still working on the best solution, I need to test out few things before I can publish this. Basically people need to join the site with their google account... stay tuned!:)</description>
		<content:encoded><![CDATA[<p><a href="#comment-3866" rel="nofollow">@Maxx</a><br />
Hi Maxx,</p>
<p>I&#8217;m still working on the best solution, I need to test out few things before I can publish this. Basically people need to join the site with their google account&#8230; stay tuned!:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maxx</title>
		<link>http://blog.tanelpoder.com/2010/02/14/oracle-troubleshooting-how-to-read-oracle-errorstack-output/comment-page-1/#comment-3866</link>
		<dc:creator>Maxx</dc:creator>
		<pubDate>Tue, 16 Feb 2010 19:11:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=617#comment-3866</guid>
		<description>Hi Tanel,  Do you have a RSS feed setup for the new website ??</description>
		<content:encoded><![CDATA[<p>Hi Tanel,  Do you have a RSS feed setup for the new website ??</p>
]]></content:encoded>
	</item>
</channel>
</rss>

