To create an Index Usage Analysis
Click .
If no analysis exists in the Index Usage Analyzer, then the New Analysis wizard appears automatically. Otherwise, you can open the New Analysis wizard in the following ways:
Click .
Use the following pages in the New Analysis wizard to select the options for creating an analysis.
When the analysis is finished, the Index Usage Analysis Details window appears with information about the retrieval of the access plan for each SQL statement.
You can update an analysis for unused indexes by rerunning the analysis with the same SQL statements from the original analysis or you can add or delete SQL statements from the analysis.
To update an analysis
Right-click the analysis name in the left pane of the Index Usage Analysis window and select Update Analysis.
The Update Analysis wizard has two pages to select the options for changing an analysis before it is updated. It is not necessary to make any changes on these pages before rerunning the analysis.
On the Analyzer page, you can change the name and description of the analysis.
On the Selected SQL page, you can add or delete SQL statements to the analysis.
When the analysis is finished, the Index Usage Analysis Details window appears with information the retrieve of the access plan for each SQL statement.
The Analyzer tab is used to name the analysis and to select the folder where the Analyzer information will be stored.
|
Item |
Description |
|---|---|
|
Name |
Enter the name for the analysis. |
|
Description |
Enter the description for the analysis. |
|
Last modified |
Displays the last modified date and time. |
|
Save location |
Displays the folder in the tree where the analysis is saved. In the Select save location pane, select the folder where you want to save the analysis. To create a new folder, click |
The Select SQL tab is used to select the SQL statements whose access plans you want to analyze to see which Indexes are used and which are not used by these SQL statements.
The SQL statements used in an analysis can be taken from the SQL Repository or the SQL Scanner.
Select the SQL statements for the analysis.