<?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: Xplan 2.0</title>
	<atom:link href="http://www.adellera.it/blog/2009/08/07/xplan-20/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adellera.it/blog/2009/08/07/xplan-20/</link>
	<description>A blog about Oracle - Un blog riguardo Oracle</description>
	<lastBuildDate>Mon, 14 Nov 2011 11:12:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Lynn Sattler</title>
		<link>http://www.adellera.it/blog/2009/08/07/xplan-20/comment-page-1/#comment-474</link>
		<dc:creator>Lynn Sattler</dc:creator>
		<pubDate>Mon, 02 May 2011 20:18:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.adellera.it/blog/?p=285#comment-474</guid>
		<description>Alberto,

Have a new issue with xplan.

Running against v11.1 linux rh5 with multibyte characterset:
NLS_NCHAR_CHARACTERSET                                           AL16UTF16
NLS_LENGTH_SEMANTICS                                             CHAR

( I have a hunch the issue is related to the characterset because xplan works fine against another v 11.1 db)

Issued: @xplan &quot;&quot; &quot;&quot;       (have tried different options, same results)
get this:

new 147:      :OPT_ASH_PROFILE_MINS := 15;
old 148:   &amp;COMM_IF_LT_10G. end if;
new 148:    end if;
declare /* xplan_exec_marker */ -- process options
*
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at line 28

SQL&gt;
SQL&gt; -- print current options values
SQL&gt; variable CURRENT_XPLAN_OPTIONS varchar2(500 char)
SQL&gt; begin
  2  select /*+ xplan_exec_marker */
  3         &#039;inst_id=&#039; &#124;&#124; :OPT_INST_ID
  4      &#124;&#124; &#039; plan_stats=&#039;&#124;&#124;:OPT_PLAN_STATS


Any ideas?
Lynn Sattler</description>
		<content:encoded><![CDATA[<p>Alberto,</p>
<p>Have a new issue with xplan.</p>
<p>Running against v11.1 linux rh5 with multibyte characterset:<br />
NLS_NCHAR_CHARACTERSET                                           AL16UTF16<br />
NLS_LENGTH_SEMANTICS                                             CHAR</p>
<p>( I have a hunch the issue is related to the characterset because xplan works fine against another v 11.1 db)</p>
<p>Issued: @xplan &#8220;&#8221; &#8220;&#8221;       (have tried different options, same results)<br />
get this:</p>
<p>new 147:      :OPT_ASH_PROFILE_MINS := 15;<br />
old 148:   &amp;COMM_IF_LT_10G. end if;<br />
new 148:    end if;<br />
declare /* xplan_exec_marker */ &#8212; process options<br />
*<br />
ERROR at line 1:<br />
ORA-06502: PL/SQL: numeric or value error: character string buffer too small<br />
ORA-06512: at line 28</p>
<p>SQL&gt;<br />
SQL&gt; &#8212; print current options values<br />
SQL&gt; variable CURRENT_XPLAN_OPTIONS varchar2(500 char)<br />
SQL&gt; begin<br />
  2  select /*+ xplan_exec_marker */<br />
  3         &#8216;inst_id=&#8217; || :OPT_INST_ID<br />
  4      || &#8216; plan_stats=&#8217;||:OPT_PLAN_STATS</p>
<p>Any ideas?<br />
Lynn Sattler</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alberto Dell'Era</title>
		<link>http://www.adellera.it/blog/2009/08/07/xplan-20/comment-page-1/#comment-473</link>
		<dc:creator>Alberto Dell'Era</dc:creator>
		<pubDate>Sun, 01 May 2011 16:19:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.adellera.it/blog/?p=285#comment-473</guid>
		<description>Hi Lynn,

I&#039;m happy to see that you find xplan useful and that you are so kind in letting me know :)

I have added your suggestion in the header of xplan.sql and I have also expanded the example description
a bit more - it is indeed possible to add full expressions in the order-by list, provided that you turn
commas into semicolons:

--          order_by:  (default: null)
--                    Order statements by the specified columns/expressions. Ties are ordered by sql_text and child_number.
--                    Use the semicolon instead of the comma in expressions.
--                    For example: &quot;order_by=elapsed_time desc;buffer_gets&quot;
--                                 &quot;order_by=elapsed_time/decode(executions;0;null;executions) desc;buffer_gets&quot;

This is useful also in your scenario, since it happens far too often that you get an executions=0 row, and
all it takes to spoil the fun is just one row ;)

ciao
Alberto</description>
		<content:encoded><![CDATA[<p>Hi Lynn,</p>
<p>I&#8217;m happy to see that you find xplan useful and that you are so kind in letting me know :)</p>
<p>I have added your suggestion in the header of xplan.sql and I have also expanded the example description<br />
a bit more &#8211; it is indeed possible to add full expressions in the order-by list, provided that you turn<br />
commas into semicolons:</p>
<p>&#8211;          order_by:  (default: null)<br />
&#8211;                    Order statements by the specified columns/expressions. Ties are ordered by sql_text and child_number.<br />
&#8211;                    Use the semicolon instead of the comma in expressions.<br />
&#8211;                    For example: &#8220;order_by=elapsed_time desc;buffer_gets&#8221;<br />
&#8211;                                 &#8220;order_by=elapsed_time/decode(executions;0;null;executions) desc;buffer_gets&#8221;</p>
<p>This is useful also in your scenario, since it happens far too often that you get an executions=0 row, and<br />
all it takes to spoil the fun is just one row ;)</p>
<p>ciao<br />
Alberto</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lynn Sattler</title>
		<link>http://www.adellera.it/blog/2009/08/07/xplan-20/comment-page-1/#comment-472</link>
		<dc:creator>Lynn Sattler</dc:creator>
		<pubDate>Tue, 19 Apr 2011 20:40:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.adellera.it/blog/?p=285#comment-472</guid>
		<description>Alberto,

I&#039;ve chatted before with you about your xplan routine.

I&#039;ve been using it some more and I read your documentation again.
I learned by trial and error that I could get it to sort the output by execution time per execution.
Here is what I used:
@xplan &quot;%&quot; &quot;parsed_by=ONEADMIN,order_by=elapsed_time/executions desc&quot;

If you are so inclined you may want to add this sort option to your samples.

Thanks for the xplan routines, I am finding them more useful.  We have the sql tune / addm  big dollar utilities.  I find good info in your output that does not show up with addm report.

Lynn Sattler
Toledo, Ohio  USA</description>
		<content:encoded><![CDATA[<p>Alberto,</p>
<p>I&#8217;ve chatted before with you about your xplan routine.</p>
<p>I&#8217;ve been using it some more and I read your documentation again.<br />
I learned by trial and error that I could get it to sort the output by execution time per execution.<br />
Here is what I used:<br />
@xplan &#8220;%&#8221; &#8220;parsed_by=ONEADMIN,order_by=elapsed_time/executions desc&#8221;</p>
<p>If you are so inclined you may want to add this sort option to your samples.</p>
<p>Thanks for the xplan routines, I am finding them more useful.  We have the sql tune / addm  big dollar utilities.  I find good info in your output that does not show up with addm report.</p>
<p>Lynn Sattler<br />
Toledo, Ohio  USA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#187; Best Oracle Peformance Tools?</title>
		<link>http://www.adellera.it/blog/2009/08/07/xplan-20/comment-page-1/#comment-467</link>
		<dc:creator>&#187; Best Oracle Peformance Tools?</dc:creator>
		<pubDate>Thu, 13 Jan 2011 20:10:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.adellera.it/blog/?p=285#comment-467</guid>
		<description>[...] xplan  &#8211; extend explain plan info from Alberto Dell Era [...]</description>
		<content:encoded><![CDATA[<p>[...] xplan  &#8211; extend explain plan info from Alberto Dell Era [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich</title>
		<link>http://www.adellera.it/blog/2009/08/07/xplan-20/comment-page-1/#comment-460</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Wed, 11 Aug 2010 14:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.adellera.it/blog/?p=285#comment-460</guid>
		<description>hello Sir,
sorry for delayed reply, I am using 10202 sqlplus version ..
I will try with 11.2 version ..

thanks for writing a such a beautiful script, I can&#039;t say. how useful it was for me ..

Rich ..</description>
		<content:encoded><![CDATA[<p>hello Sir,<br />
sorry for delayed reply, I am using 10202 sqlplus version ..<br />
I will try with 11.2 version ..</p>
<p>thanks for writing a such a beautiful script, I can&#8217;t say. how useful it was for me ..</p>
<p>Rich ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alberto Dell'Era</title>
		<link>http://www.adellera.it/blog/2009/08/07/xplan-20/comment-page-1/#comment-459</link>
		<dc:creator>Alberto Dell'Era</dc:creator>
		<pubDate>Fri, 06 Aug 2010 09:32:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.adellera.it/blog/?p=285#comment-459</guid>
		<description>Hi Rich,

can you tell me :

- the version of the database you are connecting to
- the version of sqlplus you are using

The most recent the version of sqlplus, the better; I usually use 11.2 to connect even to older databases.</description>
		<content:encoded><![CDATA[<p>Hi Rich,</p>
<p>can you tell me :</p>
<p>- the version of the database you are connecting to<br />
- the version of sqlplus you are using</p>
<p>The most recent the version of sqlplus, the better; I usually use 11.2 to connect even to older databases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich</title>
		<link>http://www.adellera.it/blog/2009/08/07/xplan-20/comment-page-1/#comment-458</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Fri, 06 Aug 2010 07:41:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.adellera.it/blog/?p=285#comment-458</guid>
		<description>hi Sir,
I am getting following error, while running the xplan.
I tried
SET SERVEROUTPUT ON size UNL

but no luck ..any suggestions ..

@xplan “” “sql_id=akwwmt0txutp3″

ERROR at line 1:
ORA-20000: ORU-10027: buffer overflow, limit of 1000000 bytes
ORA-06512: at “SYS.DBMS_OUTPUT”, line 32
ORA-06512: at “SYS.DBMS_OUTPUT”, line 97
ORA-06512: at “SYS.DBMS_OUTPUT”, line 112
ORA-06512: at line 174
ORA-06512: at line 238
ORA-06512: at line 252
ORA-06512: at line 1694
ORA-06512: at line 2702
ORA-06512: at line 2856</description>
		<content:encoded><![CDATA[<p>hi Sir,<br />
I am getting following error, while running the xplan.<br />
I tried<br />
SET SERVEROUTPUT ON size UNL</p>
<p>but no luck ..any suggestions ..</p>
<p>@xplan “” “sql_id=akwwmt0txutp3″</p>
<p>ERROR at line 1:<br />
ORA-20000: ORU-10027: buffer overflow, limit of 1000000 bytes<br />
ORA-06512: at “SYS.DBMS_OUTPUT”, line 32<br />
ORA-06512: at “SYS.DBMS_OUTPUT”, line 97<br />
ORA-06512: at “SYS.DBMS_OUTPUT”, line 112<br />
ORA-06512: at line 174<br />
ORA-06512: at line 238<br />
ORA-06512: at line 252<br />
ORA-06512: at line 1694<br />
ORA-06512: at line 2702<br />
ORA-06512: at line 2856</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich</title>
		<link>http://www.adellera.it/blog/2009/08/07/xplan-20/comment-page-1/#comment-457</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Fri, 06 Aug 2010 07:13:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.adellera.it/blog/?p=285#comment-457</guid>
		<description>thanks Sir,
sorry for late reply, my problem got solved ..

Rich ..</description>
		<content:encoded><![CDATA[<p>thanks Sir,<br />
sorry for late reply, my problem got solved ..</p>
<p>Rich ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alberto Dell'Era</title>
		<link>http://www.adellera.it/blog/2009/08/07/xplan-20/comment-page-1/#comment-454</link>
		<dc:creator>Alberto Dell'Era</dc:creator>
		<pubDate>Fri, 18 Jun 2010 09:49:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.adellera.it/blog/?p=285#comment-454</guid>
		<description>@rich

a) are you using a recent version of sqlplus (e.g. 10g, 11g) ?

b) have you extracted all the files contained in xplan.zip in the current directory ?

regards
Alberto</description>
		<content:encoded><![CDATA[<p>@rich</p>
<p>a) are you using a recent version of sqlplus (e.g. 10g, 11g) ?</p>
<p>b) have you extracted all the files contained in xplan.zip in the current directory ?</p>
<p>regards<br />
Alberto</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rich</title>
		<link>http://www.adellera.it/blog/2009/08/07/xplan-20/comment-page-1/#comment-453</link>
		<dc:creator>rich</dc:creator>
		<pubDate>Fri, 18 Jun 2010 08:07:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.adellera.it/blog/?p=285#comment-453</guid>
		<description>Hello Sir,
this would be silly question but I am not able to get the output from your script, please help me to solve this.
I want to use this great script for my day to day issues of PT.

used all option but no luck ..

@xplan.sql &quot;%select jp.cp_job_id%&quot; &quot;&quot;

@xplan.sql &quot;&quot; &quot;sql_id=ab4rjccnt8dvx&quot;

@xplan.sql &quot;&quot; &quot;sql_id=ab4rjccnt8dvx,hash=697579389&quot;

getting following errors 

Usage: VAR[IABLE] [  [ NUMBER &#124; CHAR &#124; CHAR (n) &#124; VARCHAR2 (n) &#124;
                               NCHAR &#124; NCHAR (n) &#124; NVARCHAR2 (n) &#124;
                               CLOB &#124; NCLOB &#124; REFCURSOR ] ]
Usage: VAR[IABLE] [  [ NUMBER &#124; CHAR &#124; CHAR (n) &#124; VARCHAR2 (n) &#124;
                               NCHAR &#124; NCHAR (n) &#124; NVARCHAR2 (n) &#124;
                               CLOB &#124; NCLOB &#124; REFCURSOR ] ]
SP2-0552: Bind variable &quot;CURRENT_ERROR&quot; not declared.
Usage: VAR[IABLE] [  [ NUMBER &#124; CHAR &#124; CHAR (n) &#124; VARCHAR2 (n) &#124;
                               NCHAR &#124; NCHAR (n) &#124; NVARCHAR2 (n) &#124;
                               CLOB &#124; NCLOB &#124; REFCURSOR ] ]
Usage: VAR[IABLE] [  [ NUMBER &#124; CHAR &#124; CHAR (n) &#124; VARCHAR2 (n) &#124;
                               NCHAR &#124; NCHAR (n) &#124; NVARCHAR2 (n) &#124;
                               CLOB &#124; NCLOB &#124; REFCURSOR ] ]
Usage: VAR[IABLE] [  [ NUMBER &#124; CHAR &#124; CHAR (n) &#124; VARCHAR2 (n) &#124;
                               NCHAR &#124; NCHAR (n) &#124; NVARCHAR2 (n) &#124;
                               CLOB &#124; NCLOB &#124; REFCURSOR ] ]
Usage: VAR[IABLE] [  [ NUMBER &#124; CHAR &#124; CHAR (n) &#124; VARCHAR2 (n) &#124;
                               NCHAR &#124; NCHAR (n) &#124; NVARCHAR2 (n) &#124;
                               CLOB &#124; NCLOB &#124; REFCURSOR ] ]
SP2-0552: Bind variable &quot;INSTANCE_NAME&quot; not 
...
..
SP2-0552: Bind variable &quot;OPT_PLAN_STATS&quot; not declared.
SP2-0552: Bind variable &quot;OPT_PLAN_STATS&quot; not declared.
SP2-0552: Bind variable &quot;OPT_PLAN_STATS&quot; not declared.
...
..
Input truncated to 46 characters
Input truncated to 2 characters
Input truncated to 2 characters
Input truncated to 15 characters</description>
		<content:encoded><![CDATA[<p>Hello Sir,<br />
this would be silly question but I am not able to get the output from your script, please help me to solve this.<br />
I want to use this great script for my day to day issues of PT.</p>
<p>used all option but no luck ..</p>
<p>@xplan.sql &#8220;%select jp.cp_job_id%&#8221; &#8220;&#8221;</p>
<p>@xplan.sql &#8220;&#8221; &#8220;sql_id=ab4rjccnt8dvx&#8221;</p>
<p>@xplan.sql &#8220;&#8221; &#8220;sql_id=ab4rjccnt8dvx,hash=697579389&#8243;</p>
<p>getting following errors </p>
<p>Usage: VAR[IABLE] [  [ NUMBER | CHAR | CHAR (n) | VARCHAR2 (n) |<br />
                               NCHAR | NCHAR (n) | NVARCHAR2 (n) |<br />
                               CLOB | NCLOB | REFCURSOR ] ]<br />
Usage: VAR[IABLE] [  [ NUMBER | CHAR | CHAR (n) | VARCHAR2 (n) |<br />
                               NCHAR | NCHAR (n) | NVARCHAR2 (n) |<br />
                               CLOB | NCLOB | REFCURSOR ] ]<br />
SP2-0552: Bind variable &#8220;CURRENT_ERROR&#8221; not declared.<br />
Usage: VAR[IABLE] [  [ NUMBER | CHAR | CHAR (n) | VARCHAR2 (n) |<br />
                               NCHAR | NCHAR (n) | NVARCHAR2 (n) |<br />
                               CLOB | NCLOB | REFCURSOR ] ]<br />
Usage: VAR[IABLE] [  [ NUMBER | CHAR | CHAR (n) | VARCHAR2 (n) |<br />
                               NCHAR | NCHAR (n) | NVARCHAR2 (n) |<br />
                               CLOB | NCLOB | REFCURSOR ] ]<br />
Usage: VAR[IABLE] [  [ NUMBER | CHAR | CHAR (n) | VARCHAR2 (n) |<br />
                               NCHAR | NCHAR (n) | NVARCHAR2 (n) |<br />
                               CLOB | NCLOB | REFCURSOR ] ]<br />
Usage: VAR[IABLE] [  [ NUMBER | CHAR | CHAR (n) | VARCHAR2 (n) |<br />
                               NCHAR | NCHAR (n) | NVARCHAR2 (n) |<br />
                               CLOB | NCLOB | REFCURSOR ] ]<br />
SP2-0552: Bind variable &#8220;INSTANCE_NAME&#8221; not<br />
&#8230;<br />
..<br />
SP2-0552: Bind variable &#8220;OPT_PLAN_STATS&#8221; not declared.<br />
SP2-0552: Bind variable &#8220;OPT_PLAN_STATS&#8221; not declared.<br />
SP2-0552: Bind variable &#8220;OPT_PLAN_STATS&#8221; not declared.<br />
&#8230;<br />
..<br />
Input truncated to 46 characters<br />
Input truncated to 2 characters<br />
Input truncated to 2 characters<br />
Input truncated to 15 characters</p>
]]></content:encoded>
	</item>
</channel>
</rss>

