Generating a tuned statement
Before you begin
The What-If index feature is available only if you have a valid license for the BMC AMI SQL Performance for Db2 solution.
To generate a tuned statement
- Create a What-If scenario. For more information, see Creating and editing a What-If index scenario.
- Make changes as needed to the indexes:
- Explain the What-If scenario. For more information, see Explaining SQL statements.
- (Optional) To export the explain plan to a PDF file, perform the following steps:
- Click Generate Report
.
Based on your browser settings, after Command Center generates the report, either the Save As dialog box is displayed or the browser saves the file automatically. - Enter a name for the file.
- Click Save.
- Click Generate Report
- Click Generate. The Generated Statements pane displays the statement required to make the index changes.
- Click Save.
- Save the file to the required data set. For more information, see Editing text files in Scratchpad.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*