Monitor a SQL Performance Analyzer Task

You can monitor the SQL Performance Analyzer data captured in the task, and the pre-change and post-change trials, and comparisons.

In addition, you can create multiple trials and comparisons within the task to test other system changes on SQL performance.

To monitor a SQL Performance Analyzer task:

  1. Go to the SQL Performance Watch home page for the database.
  2. In the Tasks section, click the name of the task.

The SQL Performance Analyzer Task: <name of the task> panel is displayed and has the following tabs:

  • Executions: On this tab, you can:
    • Monitor the details of the most recent execution
    • Monitor the trials created as part of the task
    • Monitor the comparisons created as part of the task
    • Create trials and comparisons for the task
  • Comparison explorer: On this tab, you can monitor how the SQL performance of a reference trial compares with changed trials, based on the performance metrics selected for the comparison analysis.

Create a Trial

You can create additional pre-change or post-change SQL trials for a SQL Performance Analyzer task to test if other system changes have resulted in changes to the execution plans of SQL statements and have impacted SQL performance.

To create a trial:

  1. Go to the SQL Performance Analyzer Task: <name of the task> panel.
  2. In the Trials section, click Create trial.
  3. In the Create trial panel:
    1. Review the SQL Performance Analyzer task details.
    2. Specify the following general options:
      1. Name: Enter a name for the trial.
      2. Description: Optionally, enter a description for the trial.
      3. Execution method: Select one of the following options to determine how the SQL trials are created and what content is generated:
        • Execute SQL: Generates both execution plans and statistics for each SQL statement in the SQL tuning set by actually running the SQL statements. On selecting this option, the Per SQL time limit field is displayed and you must select an option to specify the time limit for SQL execution during the trial.
        • Generate plans: Invokes the optimizer to create execution plans only without actually running the SQL statements.
    3. Select the check box in the Comparison section to understand how the trial's performance compares with a reference trial. On selecting the check box, the following fields are displayed:
      1. Reference trial: Select a reference SQL trial for comparison and review the details of the trial.
      2. Comparison metric: The comparison metric selected for the reference trial is displayed by default and you can change or add other metrics for the analysis. If you chose to generate explain plans only in the SQL trial, the Optimizer cost metric stored in the SQL execution plans is selected by default.
      3. Validate SQL result sets: Select to direct the SQL Performance Analyzer to detect if the result-sets between the two trials being compared are different. If differences are seen in the result-sets of any SQL statement between the two trials being compared, the SQL Performance Analyzer comparison report will indicate this for every such SQL statement. This is On by default.
    4. Schedule: Select Immediately to start the trial now or Later to schedule the trial at a later time.
  4. Click Create.
The SQL trials created for a SQL Performance Analyzer task are listed in the Trials section in the SQL Performance Analyzer Task: <name of the task> panel.

In the Trials section, you can:

  • Monitor the SQL trials created for the SQL Performance Analyzer task.
  • Click the Actions icon (Actions) for a trial and perform the following tasks:
    • View execution parameters: Click to view the execution parameters specified for the trial.
    • Create like: Click to create a clone of the trial.

Create a Comparison

You can create additional comparisons for a SQL Performance Analyzer task to compare the performance data collected in a pre-change SQL trial to the post-change SQL trial.

To create a comparison:

  1. Go to the SQL Performance Analyzer Task: <name of the task> panel.
  2. In the Comparisons section, click Create comparison.
  3. In the Create comparison panel:
    1. Review the SQL Performance Analyzer task details.
    2. Select a reference SQL trial (pre-change) for comparison from the Reference trial drop-down list.
    3. Select a changed SQL trial (post-change) for comparison from the Changed trial drop-down list.
    4. Select the comparison metric in the Trial comparison field, based on which the pre-change and post-change trials will be compared.
    5. Select Immediately to start the comparison now or Later to schedule the comparison at a later time.
  4. Click Create.
The comparisons created for a SQL Performance Analyzer task are listed in the Comparisons section in the SQL Performance Analyzer Task: <name of the task> panel.

In the Comparisons section, you can:

  • Monitor the comparisons created for a particular trial. You can expand the row to view metric comparison details and click Comparison Report to view the SQL Performance Analyzer comparison report.
  • Click Create like to create a clone of the comparison.