﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Richard To's Blog</title>
    <description>&lt;table&gt;
        &lt;tr&gt;
            &lt;td valign="top"&gt;&lt;img height="183" width="139" src="/Portals/0/Blog/blog-richard-to.png" /&gt;&lt;/td&gt;
            &lt;td valign="top"&gt;
            &lt;p&gt;Richard To is chief technologist and designer of Quest SQL Tuning products. Richard specializes in using AI technique to solve database performance problems.&lt;/p&gt;
            &lt;p&gt;Richard's blog helps solve problems in your SQL code, tune queries, and shares new tips, tricks, and techniques on SQL tuning.&lt;/p&gt;
            &lt;p&gt;&lt;font color="#003366" size="3"&gt;&lt;strong&gt;Recent postings on SQL tuning:&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
&lt;/table&gt;</description>
    <link>http://www.toadworld.com/BLOGS/tabid/67/BlogId/15/Default.aspx</link>
    <language>en-US</language>
    <managingEditor>Richard To</managingEditor>
    <webMaster>webmaster@toadworld.com</webMaster>
    <pubDate>Fri, 19 Mar 2010 04:17:21 GMT</pubDate>
    <lastBuildDate>Fri, 19 Mar 2010 04:17:21 GMT</lastBuildDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>Blog RSS Generator Version 3.2.0.15477</generator>
    <item>
      <title>Batch Optimizer Part 5 – Viewing the SQL alternatives and execution run time statistics</title>
      <description>&lt;div&gt;&lt;em&gt;Written by Rene Woody&lt;br /&gt;
 &lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;After a SQL statement has been optimized in the Batch Optimizer in Quest SQL Optimizer &lt;em&gt;for Oracle&lt;/em&gt;, you can view the text of the SQL alternatives and the execution plans in the Tuning Lab module. If the original SQL statement and alternatives have been executed, you can view the run time statistics as well.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;1.&lt;span&gt;      &lt;/span&gt;In the &lt;strong&gt;SQL in Selected Job&lt;/strong&gt; window in the Batch Optimizer, click the SQL statement to highlight it.&lt;/div&gt;
&lt;div&gt;2.&lt;span&gt;      &lt;/span&gt;Click &lt;strong&gt;Open in Tuning Lab&lt;/strong&gt;  &lt;img height="21" alt="" width="23" src="http://www.toadworld.com/Portals/0/blogimages/RichadToBlog05232008-2.gif" /&gt;.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;img alt="" src="http://www.toadworld.com/Portals/0/blogimages/RichadToBlog05232008-1.gif" /&gt;&lt;/div&gt;
&lt;div&gt;  &lt;/div&gt;
&lt;div&gt;&lt;font color="#000080" size="2"&gt;&lt;strong&gt;Functions Available in the Tuning Lab&lt;/strong&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Since the Batch Optimizer limits the number of SQL alternatives that are executed automatically, in the Tuning Lab you can execute the alternatives that were not executed in the Batch Optimizer to see if you can find a faster alternative.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;When you are viewing the details of a SQL statement that was optimized in the Batch Optimizer, in addition to the Execute function, you may also use the Test for Scalability, Store Session, Reports, Retrieve Results, and Alter Session Parameters functions.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;font color="#000080" size="2"&gt;&lt;strong&gt;Select the Best SQL Alternative&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;In the Tuning Lab as you view the SQL alternatives and the run time statistics from the execution of the SQL statements, you can change the alternative that is the “best” alternative based on your own review of all of the run time statistics. &lt;/div&gt;
&lt;ul&gt;
    &lt;li&gt;In the &lt;strong&gt;Tuning Lab | SQL Details Layout | Scenario Explorer&lt;/strong&gt; window, right-click the SQL statement and select &lt;strong&gt;Mark as Best in Batch Optimizer&lt;/strong&gt;. &lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;This changes the SQL alternative that is selected as the “Best Alternative” in the Batch Optimizer. When you generate the optimized script, this “Best Alternative” will be used to replace the original SQL statement.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;em&gt;If you would like to learn more about Quest SQL Optimizer for Oracle, please visit the &lt;/em&gt;&lt;a href="http://sqloptimizeroracle.inside.quest.com/index.jspa"&gt;&lt;font color="#800080"&gt;Inside SQL Optimizer for Oracle community&lt;/font&gt;&lt;/a&gt;. &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;</description>
      <link>http://www.toadworld.com/BLOGS/tabid/67/EntryID/224/Default.aspx</link>
      <author>Richard To</author>
      <comments>http://www.toadworld.com/BLOGS/tabid/67/EntryID/224/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.toadworld.com/Default.aspx?tabid=67&amp;EntryID=224</guid>
      <pubDate>Fri, 23 May 2008 12:07:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.toadworld.com/DesktopModules/Blog/Trackback.aspx?id=224</trackback:ping>
    </item>
  </channel>
</rss>