Chat now with support
Chat mit Support

SQL Optimizer for DB2 LUW 5.0 - User Guide

SQL Optimizer for IBM® DB2® LUW
UsageStatistics Getting Started Options SQL Scanner SQL Optimizer SQL Formatter SQL Inspector Database Explorer SQL Repository Index Impact Analyzer Index Usage Analyzer User-Defined Temp Table Editor Functions SQL Functions SQL Information and Functions Activity Log
Tutorials About us Copyright

Add SQL to an Index Impact Analysis

After creating an Index Impact Analysis, you can add more SQL statements from the SQL Repository to it. This process will re-execute the Scenario.

To add SQL statements

  1. From the left pane, select the Analyzer in which you want to add the SQL.

  2. Right-click and select Add SQL.

  3. In the Add SQL window under the Select SQL to be added pane, check the SQL statements you want added.

  4. Under the Select Scenario to include SQL pane, check the Scenarios you want the SQL added to.

 

Add Scenario

After creating an Index Impact Analysis, you can add more Scenarios to it. A Scenario can be added in two ways:

To add a Scenario to an Analyzer

Method One

  1. In the left pane, right-click the Analyzer and select Add Scenario.

  2. Click the Index page and specify the information for the proposed new indexes.  

Method Two

  1. In the left pane, right-click an Analyzer and select New Analysis.

  2. Select the Continuing an existing Analyzer using the Analyzer’s selected SQL option.

  3. From the Select Analyzer box, click the Analyzer name.

  4. Click the Index page and specify the information for the proposed new indexes.

 

Modify Index Impact Analyzer

To modify the analysis name or description

  1. From the Index Impact Analyzer window, select the Analyzer you want to modify from the left pane.

  2. Right-click and select Modify to open the Modify Analyzer window.

  3. Modify the name or description.

 

Regenerate

The Scenario can be re-executed using the same indexes. You can choose to retrieve the access plans for all SQL statements in the Scenario or select specific SQL to retrieve the access plan again using the same indexes.

The function is useful if changes have occurred in the database environment, such as data volume changes, that may affect access plans.

To regenerate the access plan

  1. Select the Scenario from the left pane.

  2. Right-click and select Regenerate.

  3. Check the SQL statements whose current access plans you would like retrieved again.

 

Verwandte Dokumente

The document was helpful.

Bewertung auswählen

I easily found the information I needed.

Bewertung auswählen