<?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: SQL Tuning Advisor</title>
	<atom:link href="http://kerryosborne.oracle-guy.com/2008/09/sql-tuning-advisor/feed/" rel="self" type="application/rss+xml" />
	<link>http://kerryosborne.oracle-guy.com/2008/09/sql-tuning-advisor/</link>
	<description>Just another Oracle blog</description>
	<pubDate>Thu, 29 Jul 2010 12:09:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: sachu</title>
		<link>http://kerryosborne.oracle-guy.com/2008/09/sql-tuning-advisor/#comment-9445</link>
		<dc:creator>sachu</dc:creator>
		<pubDate>Tue, 27 Apr 2010 18:11:47 +0000</pubDate>
		<guid isPermaLink="false">http://kerry.oracle-guy.com/?p=10#comment-9445</guid>
		<description>Hi Kerry,
thanks for your time ..here is index list on comm_parti table right now, I_COMMPART_T_CAID_CRDT_PRC_CID index is being used in explain plan ..

INDEX_OWNER                    INDEX_NAME                               COLUMN_NAME                              COLUMN_POSITION
------------------------------ ---------------------------------------- ---------------------------------------- ---------------
sachin                         I_COMMPART_T_CAID_CRDT_PRC_CID           COMM_ADDRESS_ID                                        1
sachin                         I_COMMPART_T_CAID_CRDT_PRC_CID           CREA_DATE					       2
sachin                         I_COMMPART_T_CAID_CRDT_PRC_CID           PARTY_ROLE_TYPE_CODE                                   3
sachin                         I_COMMPART_T_CAID_CRDT_PRC_CID           COMM_ID                                                4

sachin                         I_COMMPART_T_CAID_MKTPL_ID               COMM_ADDRESS_ID                                        1
sachin                         I_COMMPART_T_CAID_MKTPL_ID               MKPLACE_ID	                                       2

sachin                         I_COMMPART_T_COMM_ID                     COMM_ID                                                1

sachin                         I_COMMPART_T_CREA_DATE			CREA_DATE                                              1

sachin                         I_COMMPART_T_LAST_UPDATED_DATE           LAST_UPDATED_DATE                                      1

sachin                         PK_COMM_PARTICIPANTS_T                   COMM_PARTICIPANT_ID                                    1

sachin                         U_COMMPART_T_CID_CAID_PRID_CD            COMM_ID                                                1
sachin                         U_COMMPART_T_CID_CAID_PRID_CD            COMM_ADDRESS_ID                                        2
sachin                         U_COMMPART_T_CID_CAID_PRID_CD            PARTY_ROLE_ID                                          3
sachin                         U_COMMPART_T_CID_CAID_PRID_CD            COMM_PARTICIPANT_TYPE_CODE                             4


and explain plan 

------------------------------------------------------------------------------------------------------------------------------------------
&#124; Id  &#124; Operation                               &#124; Name                           &#124; Rows  &#124; Bytes &#124; Cost (%CPU)&#124; Time     &#124; Pstart&#124; Pstop &#124;
------------------------------------------------------------------------------------------------------------------------------------------
&#124;   0 &#124; SELECT STATEMENT                        &#124;                                &#124;    10 &#124;   350 &#124;   114   (3)&#124; 00:00:02 &#124;       &#124;       &#124;
&#124;*  1 &#124;  VIEW                                   &#124;                                &#124;    10 &#124;   350 &#124;   114   (3)&#124; 00:00:02 &#124;       &#124;       &#124;
&#124;*  2 &#124;   COUNT STOPKEY                         &#124;                                &#124;       &#124;       &#124;            &#124;          &#124;       &#124;       &#124;
&#124;   3 &#124;    VIEW                                 &#124;                                &#124;   249 &#124;  5478 &#124;   114   (3)&#124; 00:00:02 &#124;       &#124;       &#124;
&#124;*  4 &#124;     SORT ORDER BY STOPKEY               &#124;                                &#124;   249 &#124;  7968 &#124;   114   (3)&#124; 00:00:02 &#124;       &#124;       &#124;
&#124;   5 &#124;      NESTED LOOPS                       &#124;                                &#124;   249 &#124;  7968 &#124;   113   (2)&#124; 00:00:02 &#124;       &#124;       &#124;
&#124;   6 &#124;       VIEW                              &#124; VW_NSO_1                       &#124;   249 &#124;  1992 &#124;    62   (2)&#124; 00:00:01 &#124;       &#124;       &#124;
&#124;   7 &#124;        SORT UNIQUE                      &#124;                                &#124;   249 &#124; 13944 &#124;            &#124;          &#124;       &#124;       &#124;
&#124;*  8 &#124;         FILTER                          &#124;                                &#124;       &#124;       &#124;            &#124;          &#124;       &#124;       &#124;
&#124;   9 &#124;          NESTED LOOPS                   &#124;                                &#124;   249 &#124; 13944 &#124;    62   (2)&#124; 00:00:01 &#124;       &#124;       &#124;
&#124;  10 &#124;           TABLE ACCESS BY INDEX ROWID   &#124; COMM_ADDRESSES                 &#124;     1 &#124;    33 &#124;     1   (0)&#124; 00:00:01 &#124;       &#124;       &#124;
&#124;* 11 &#124;            INDEX UNIQUE SCAN            &#124; UNIQ_COMMADDR_LOWERADDR        &#124;     1 &#124;       &#124;     1   (0)&#124; 00:00:01 &#124;       &#124;       &#124;
&#124;* 12 &#124;           INDEX RANGE SCAN              &#124; I_COMMPART_T_CAID_CRDT_PRC_CID &#124;   249 &#124;  5727 &#124;    61   (2)&#124; 00:00:01 &#124;       &#124;       &#124;
&#124;* 13 &#124;       TABLE ACCESS BY GLOBAL INDEX ROWID&#124; COMMUNI		         &#124;     1 &#124;    24 &#124;     1   (0)&#124; 00:00:01 &#124; ROWID &#124; ROWID &#124;
&#124;* 14 &#124;        INDEX UNIQUE SCAN                &#124; PK_COMMUNI		         &#124;     1 &#124;       &#124;     1   (0)&#124; 00:00:01 &#124;       &#124;       &#124;
------------------------------------------------------------------------------------------------------------------------------------------
   1 - filter("RNUM"&#62;:7)
   2 - filter(ROWNUM&#60;=:6)
   4 - filter(ROWNUM&#60;=:6)
   8 - filter(:2=:2 AND INTERNAL_FUNCTION("CP"."CREA_DATE")&#60;:3)
  13 - filter("MKPLACE_ID"=:4 AND "RESPONSE_STATUS_TYPE_CODE"=:5 AND ("PARENT_COMM_ID" IS NULL OR "PARENT_COMM_ID"=0))
  14 - access("COMM_ID"="$nso_col_1")</description>
		<content:encoded><![CDATA[<p>Hi Kerry,<br />
thanks for your time ..here is index list on comm_parti table right now, I_COMMPART_T_CAID_CRDT_PRC_CID index is being used in explain plan ..</p>
<p>INDEX_OWNER                    INDEX_NAME                               COLUMN_NAME                              COLUMN_POSITION<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;<br />
sachin                         I_COMMPART_T_CAID_CRDT_PRC_CID           COMM_ADDRESS_ID                                        1<br />
sachin                         I_COMMPART_T_CAID_CRDT_PRC_CID           CREA_DATE					       2<br />
sachin                         I_COMMPART_T_CAID_CRDT_PRC_CID           PARTY_ROLE_TYPE_CODE                                   3<br />
sachin                         I_COMMPART_T_CAID_CRDT_PRC_CID           COMM_ID                                                4</p>
<p>sachin                         I_COMMPART_T_CAID_MKTPL_ID               COMM_ADDRESS_ID                                        1<br />
sachin                         I_COMMPART_T_CAID_MKTPL_ID               MKPLACE_ID	                                       2</p>
<p>sachin                         I_COMMPART_T_COMM_ID                     COMM_ID                                                1</p>
<p>sachin                         I_COMMPART_T_CREA_DATE			CREA_DATE                                              1</p>
<p>sachin                         I_COMMPART_T_LAST_UPDATED_DATE           LAST_UPDATED_DATE                                      1</p>
<p>sachin                         PK_COMM_PARTICIPANTS_T                   COMM_PARTICIPANT_ID                                    1</p>
<p>sachin                         U_COMMPART_T_CID_CAID_PRID_CD            COMM_ID                                                1<br />
sachin                         U_COMMPART_T_CID_CAID_PRID_CD            COMM_ADDRESS_ID                                        2<br />
sachin                         U_COMMPART_T_CID_CAID_PRID_CD            PARTY_ROLE_ID                                          3<br />
sachin                         U_COMMPART_T_CID_CAID_PRID_CD            COMM_PARTICIPANT_TYPE_CODE                             4</p>
<p>and explain plan </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
| Id  | Operation                               | Name                           | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
|   0 | SELECT STATEMENT                        |                                |    10 |   350 |   114   (3)| 00:00:02 |       |       |<br />
|*  1 |  VIEW                                   |                                |    10 |   350 |   114   (3)| 00:00:02 |       |       |<br />
|*  2 |   COUNT STOPKEY                         |                                |       |       |            |          |       |       |<br />
|   3 |    VIEW                                 |                                |   249 |  5478 |   114   (3)| 00:00:02 |       |       |<br />
|*  4 |     SORT ORDER BY STOPKEY               |                                |   249 |  7968 |   114   (3)| 00:00:02 |       |       |<br />
|   5 |      NESTED LOOPS                       |                                |   249 |  7968 |   113   (2)| 00:00:02 |       |       |<br />
|   6 |       VIEW                              | VW_NSO_1                       |   249 |  1992 |    62   (2)| 00:00:01 |       |       |<br />
|   7 |        SORT UNIQUE                      |                                |   249 | 13944 |            |          |       |       |<br />
|*  8 |         FILTER                          |                                |       |       |            |          |       |       |<br />
|   9 |          NESTED LOOPS                   |                                |   249 | 13944 |    62   (2)| 00:00:01 |       |       |<br />
|  10 |           TABLE ACCESS BY INDEX ROWID   | COMM_ADDRESSES                 |     1 |    33 |     1   (0)| 00:00:01 |       |       |<br />
|* 11 |            INDEX UNIQUE SCAN            | UNIQ_COMMADDR_LOWERADDR        |     1 |       |     1   (0)| 00:00:01 |       |       |<br />
|* 12 |           INDEX RANGE SCAN              | I_COMMPART_T_CAID_CRDT_PRC_CID |   249 |  5727 |    61   (2)| 00:00:01 |       |       |<br />
|* 13 |       TABLE ACCESS BY GLOBAL INDEX ROWID| COMMUNI		         |     1 |    24 |     1   (0)| 00:00:01 | ROWID | ROWID |<br />
|* 14 |        INDEX UNIQUE SCAN                | PK_COMMUNI		         |     1 |       |     1   (0)| 00:00:01 |       |       |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
   1 - filter(&#8221;RNUM&#8221;&gt;:7)<br />
   2 - filter(ROWNUM&lt;=:6)<br />
   4 - filter(ROWNUM&lt;=:6)<br />
   8 - filter(:2=:2 AND INTERNAL_FUNCTION(&#8221;CP&#8221;.&#8221;CREA_DATE&#8221;)&lt;:3)<br />
  13 - filter(&#8221;MKPLACE_ID&#8221;=:4 AND &#8220;RESPONSE_STATUS_TYPE_CODE&#8221;=:5 AND (&#8221;PARENT_COMM_ID&#8221; IS NULL OR &#8220;PARENT_COMM_ID&#8221;=0))<br />
  14 - access(&#8221;COMM_ID&#8221;=&#8221;$nso_col_1&#8243;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2008/09/sql-tuning-advisor/#comment-9441</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Tue, 27 Apr 2010 12:51:28 +0000</pubDate>
		<guid isPermaLink="false">http://kerry.oracle-guy.com/?p=10#comment-9441</guid>
		<description>Sachu,

  The to_date function should have allowed the the index on CRE_DATE to be used. Perhaps the variables passed to the query were not selective enough to make the optimizer want to use the index. You can try running a 10053 trace to see what decisions the optimizer made, including if it evaluated the index at all and why it didn't decide to use it.

Kerry</description>
		<content:encoded><![CDATA[<p>Sachu,</p>
<p>  The to_date function should have allowed the the index on CRE_DATE to be used. Perhaps the variables passed to the query were not selective enough to make the optimizer want to use the index. You can try running a 10053 trace to see what decisions the optimizer made, including if it evaluated the index at all and why it didn&#8217;t decide to use it.</p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sachu</title>
		<link>http://kerryosborne.oracle-guy.com/2008/09/sql-tuning-advisor/#comment-9437</link>
		<dc:creator>sachu</dc:creator>
		<pubDate>Tue, 27 Apr 2010 10:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://kerry.oracle-guy.com/?p=10#comment-9437</guid>
		<description>Hi, Kerry
after running Automatic SQL Tuning I got the below recommendation but , applying recommendation not helping to tune the query ..
what can be the reason ?


select * from ( select comm_dates.*, ROWNUM rnum from (select comm_id, comm_date_utc from communi where comm_id in ( select
distinct cp.comm_id from comm_parti cp, com_add ca where ca.comm_address_id = cp.comm_address_id and
ca.lwr_mail_add = :1 and cp.CREA_DATE &#62;= :2 and cp.CREA_DATE &#60; :3 ) and mkplace_id in ( :4 ) and
response_status_type_code in ( :5 ) and (parent_comm_id is null or parent_comm_id = 0) order by comm_date_utc desc ) comm_dates
where ROWNUM  :7

-------------------------------------------------------------------------------
FINDINGS SECTION (4 findings)
-------------------------------------------------------------------------------

1- Restructure SQL finding (see plan 1 in explain plans section)
----------------------------------------------------------------
The predicate "CP"."CREA_DATE"&#62;=:B1 used at line ID 12 of the execution
plan contains an implicit data type conversion on indexed column
"CREA_DATE". This implicit data type conversion prevents the optimizer
from selecting indices on table "SACHIN"."comm_parti_T".

Recommendation
--------------
- Rewrite the predicate into an equivalent form to take advantage of
indices.

Rationale
---------
The optimizer is unable to use an index if the predicate is an inequality
condition or if there is an expression or an implicit data type conversion
on the indexed column.


changed the column predicate but explain plan shows no improvement, what I am missing here ?

select * from ( select comm_dates.*, ROWNUM rnum from (select comm_id, comm_date_utc from communi where comm_id in ( select
distinct cp.comm_id from comm_parti cp, com_add ca where ca.comm_address_id = cp.comm_address_id and
ca.lwr_mail_add = :1 and cp.CREA_DATE &#62;= TO_DATE(:2) and cp.CREA_DATE &#60; TO_DATE(:3) ) and mkplace_id in ( TO_NUMBER(:4) ) and
response_status_type_code in ( TO_NUMBER(:4) ) and (parent_comm_id is null or parent_comm_id = 0) order by comm_date_utc desc ) comm_dates
where ROWNUM  :7

thanks in advance ..</description>
		<content:encoded><![CDATA[<p>Hi, Kerry<br />
after running Automatic SQL Tuning I got the below recommendation but , applying recommendation not helping to tune the query ..<br />
what can be the reason ?</p>
<p>select * from ( select comm_dates.*, ROWNUM rnum from (select comm_id, comm_date_utc from communi where comm_id in ( select<br />
distinct cp.comm_id from comm_parti cp, com_add ca where ca.comm_address_id = cp.comm_address_id and<br />
ca.lwr_mail_add = :1 and cp.CREA_DATE &gt;= :2 and cp.CREA_DATE &lt; :3 ) and mkplace_id in ( :4 ) and<br />
response_status_type_code in ( :5 ) and (parent_comm_id is null or parent_comm_id = 0) order by comm_date_utc desc ) comm_dates<br />
where ROWNUM  :7</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
FINDINGS SECTION (4 findings)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>1- Restructure SQL finding (see plan 1 in explain plans section)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
The predicate &#8220;CP&#8221;.&#8221;CREA_DATE&#8221;&gt;=:B1 used at line ID 12 of the execution<br />
plan contains an implicit data type conversion on indexed column<br />
&#8220;CREA_DATE&#8221;. This implicit data type conversion prevents the optimizer<br />
from selecting indices on table &#8220;SACHIN&#8221;.&#8221;comm_parti_T&#8221;.</p>
<p>Recommendation<br />
&#8212;&#8212;&#8212;&#8212;&#8211;<br />
- Rewrite the predicate into an equivalent form to take advantage of<br />
indices.</p>
<p>Rationale<br />
&#8212;&#8212;&#8212;<br />
The optimizer is unable to use an index if the predicate is an inequality<br />
condition or if there is an expression or an implicit data type conversion<br />
on the indexed column.</p>
<p>changed the column predicate but explain plan shows no improvement, what I am missing here ?</p>
<p>select * from ( select comm_dates.*, ROWNUM rnum from (select comm_id, comm_date_utc from communi where comm_id in ( select<br />
distinct cp.comm_id from comm_parti cp, com_add ca where ca.comm_address_id = cp.comm_address_id and<br />
ca.lwr_mail_add = :1 and cp.CREA_DATE &gt;= TO_DATE(:2) and cp.CREA_DATE &lt; TO_DATE(:3) ) and mkplace_id in ( TO_NUMBER(:4) ) and<br />
response_status_type_code in ( TO_NUMBER(:4) ) and (parent_comm_id is null or parent_comm_id = 0) order by comm_date_utc desc ) comm_dates<br />
where ROWNUM  :7</p>
<p>thanks in advance ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2008/09/sql-tuning-advisor/#comment-9419</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Mon, 26 Apr 2010 22:33:37 +0000</pubDate>
		<guid isPermaLink="false">http://kerry.oracle-guy.com/?p=10#comment-9419</guid>
		<description>Hi Sachu,

Try pasting the script into a file and executing it with @.

@create_tuning_task -- for example

Kerry</description>
		<content:encoded><![CDATA[<p>Hi Sachu,</p>
<p>Try pasting the script into a file and executing it with @.</p>
<p>@create_tuning_task &#8212; for example</p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sachu</title>
		<link>http://kerryosborne.oracle-guy.com/2008/09/sql-tuning-advisor/#comment-9399</link>
		<dc:creator>sachu</dc:creator>
		<pubDate>Mon, 26 Apr 2010 09:44:16 +0000</pubDate>
		<guid isPermaLink="false">http://kerry.oracle-guy.com/?p=10#comment-9399</guid>
		<description>hi,
create script failing with error ..

SQL&#62; SET LONG 10000;
SQL&#62; SET PAGESIZE 9999
SET LINESIZE 155
SQL&#62; SQL&#62; set verify off
SQL&#62; col recommendations for a150
SQL&#62; accept task_name -
&#62; prompt 'Task_Name: '
Task_Name:  DECLARE ret_val VARCHAR2(4000);
SQL&#62; BEGIN
  2  ret_val := dbms_sqltune.create_tuning_task(task_name=&#62;'&#38;&#38;Task_name', sql_id=&#62;'&#38;sql_id', time_limit=&#62;&#38;time_limit);
  3  dbms_sqltune.execute_tuning_task('&#38;&#38;Task_name');
  4  END;
  5  /
Enter value for sql_id: dt7vf07d0kj4n
Enter value for time_limit: 10
ret_val := dbms_sqltune.create_tuning_task(task_name=&#62;' DECLARE ret_val VARCHAR2(4000);', sql_id=&#62;'dt7vf07d0kj4n', time_limit=&#62;10);
*
ERROR at line 2:
ORA-06550: line 2, column 1:
PLS-00201: identifier 'RET_VAL' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored</description>
		<content:encoded><![CDATA[<p>hi,<br />
create script failing with error ..</p>
<p>SQL&gt; SET LONG 10000;<br />
SQL&gt; SET PAGESIZE 9999<br />
SET LINESIZE 155<br />
SQL&gt; SQL&gt; set verify off<br />
SQL&gt; col recommendations for a150<br />
SQL&gt; accept task_name -<br />
&gt; prompt &#8216;Task_Name: &#8216;<br />
Task_Name:  DECLARE ret_val VARCHAR2(4000);<br />
SQL&gt; BEGIN<br />
  2  ret_val := dbms_sqltune.create_tuning_task(task_name=&gt;&#8217;&amp;&amp;Task_name&#8217;, sql_id=&gt;&#8217;&amp;sql_id&#8217;, time_limit=&gt;&amp;time_limit);<br />
  3  dbms_sqltune.execute_tuning_task(&#8217;&amp;&amp;Task_name&#8217;);<br />
  4  END;<br />
  5  /<br />
Enter value for sql_id: dt7vf07d0kj4n<br />
Enter value for time_limit: 10<br />
ret_val := dbms_sqltune.create_tuning_task(task_name=&gt;&#8217; DECLARE ret_val VARCHAR2(4000);&#8217;, sql_id=&gt;&#8217;dt7vf07d0kj4n&#8217;, time_limit=&gt;10);<br />
*<br />
ERROR at line 2:<br />
ORA-06550: line 2, column 1:<br />
PLS-00201: identifier &#8216;RET_VAL&#8217; must be declared<br />
ORA-06550: line 2, column 1:<br />
PL/SQL: Statement ignored</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2008/09/sql-tuning-advisor/#comment-7070</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Sat, 06 Feb 2010 21:40:28 +0000</pubDate>
		<guid isPermaLink="false">http://kerry.oracle-guy.com/?p=10#comment-7070</guid>
		<description>Oops. Your right about the time units in my script. I think I was playing with my script using minutes but ended up posting text in minutes and script in seconds. I've fixed the text to match the script. Thanks for pointing out that inconsistency. 

Thanks also for the positive feedback.

Kerry</description>
		<content:encoded><![CDATA[<p>Oops. Your right about the time units in my script. I think I was playing with my script using minutes but ended up posting text in minutes and script in seconds. I&#8217;ve fixed the text to match the script. Thanks for pointing out that inconsistency. </p>
<p>Thanks also for the positive feedback.</p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rnm1978</title>
		<link>http://kerryosborne.oracle-guy.com/2008/09/sql-tuning-advisor/#comment-7025</link>
		<dc:creator>rnm1978</dc:creator>
		<pubDate>Fri, 05 Feb 2010 16:11:35 +0000</pubDate>
		<guid isPermaLink="false">http://kerry.oracle-guy.com/?p=10#comment-7025</guid>
		<description>This is a great article, very clearly written. Thanks.
I humbly offer a minor correction - create_tuning_task time_limit is documented as being in seconds, not minutes as you state. Ref: http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_sqltun.htm#CHDGBCDB</description>
		<content:encoded><![CDATA[<p>This is a great article, very clearly written. Thanks.<br />
I humbly offer a minor correction - create_tuning_task time_limit is documented as being in seconds, not minutes as you state. Ref: <a href="http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_sqltun.htm#CHDGBCDB" onclick="javascript:pageTracker._trackPageview('/outbound/comment/download.oracle.com');" rel="nofollow">http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_sqltun.htm#CHDGBCDB</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kerry Osborne&#8217;s Oracle Blog &#187; Blog Archive Oracle SQL Profiles - Kerry Osborne’s Oracle Blog</title>
		<link>http://kerryosborne.oracle-guy.com/2008/09/sql-tuning-advisor/#comment-382</link>
		<dc:creator>Kerry Osborne&#8217;s Oracle Blog &#187; Blog Archive Oracle SQL Profiles - Kerry Osborne’s Oracle Blog</dc:creator>
		<pubDate>Sun, 05 Apr 2009 01:35:09 +0000</pubDate>
		<guid isPermaLink="false">http://kerry.oracle-guy.com/?p=10#comment-382</guid>
		<description>[...] me back up for a minute. I posted about Oracle&#8217;s SQL Tuning Advisor a while back. It&#8217;s a feature that was added to Oracle in version 10g. It basically looks a [...]</description>
		<content:encoded><![CDATA[<p>[...] me back up for a minute. I posted about Oracle&#8217;s SQL Tuning Advisor a while back. It&#8217;s a feature that was added to Oracle in version 10g. It basically looks a [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
