Inputting SQL to tune

Click the SQL button on the Overview tab to specify the source of SQL statements you want to tune.

SQL statements to the SQL Text dialog or write queries by hand and then click OK.

You can also input SQL by clicking anywhere in the Tuning Statements area and pressing Ctrl-V. 

Once you have input the SQL and click OK, you can later edit the text by right-clicking an entry in the Tuning Statements area and selecting Edit

Running a tuning job

Once you click the Run Job icon on the top right-hand side of the Overview tab, the Overview tab provides the list of statements that were analyzed by the Tuner, as well as the cases suggested by the execution process to improve them. Additional information may include statement Name, Text, Source, Cost, and Elapsed Time values, depending on the platform.

Only the Elapsed Time statistic appears on all supported platforms. On Oracle, Execution Statistics and Other Execution Statistics columns will appear. When determining the best possible path using the Overview tab, it is best to use the Elapsed Time value as the guideline. The faster the path, the more optimized the query will become.

There are three tuning options to choose from before clicking Run Job:

Creating tuning reports

After tuning SQL you can create an HTML or PDF Report of the tuning session. You can choose the details to include in the report.

  1. At the top right corner of the Tuning tab, click the Export Report button.

    The Export a Tuning Report dialog appears.
  2. Enter a Report Title and Description.
  3. On the Tuning Cases tab, choose the cases you want to report on. Click the + to expand the cases.
  4. On the Configuration tab, choose the content you want to include in the report.
  5. Select the General Report options, enter the location for the report, and then click Export.
    You will see the progress of the report generation in the Progress pane. 

    When complete, the report is stored at the top level of your workspace.
    A report in PDF format will resemble the following:



 |    |  |   |   |