After creating a configuration analysis, you can add more Scenarios to it. A Scenario can be added in two ways.
To add a Scenario
The Configuration Analysis Details window displays information about the retrieve of the query plan for each SQL statement.
The Configuration Analysis Details window displays after the batch run process is completed unless the Show details on next batch run checkbox in the Configuration Analysis Details window is unchecked.
To view the Configuration Analysis Details window after an analysis
Select View | Show Configuration Analysis.
Review this information to see if an error occurred during the retrieval of the query plan. Errors may occur if the selected SQL statements are from one database and user and you have set another database and user in the drop-down boxes at the bottom left of the main window.
The Configuration analysis first executes the configuration parameter changes that you have selected on your database. Then it retrieves the query plan for each SQL statement that you have selected for your analyzer. When you set up the individual scenarios, you determine if you would like the configuration parameter changes rolled back or to leave them set on Adaptive Server.
If you do not have the analysis process rollback the configuration changes, you can roll them back in any one of the following ways:
In the tree pane (left pane), right-click the scenario name and select Go To Undo Changes.
When you close the Configuration Analyzer window, you are prompted to rollback the changes. Click Yes.
In the tree pane (left pane), click the scenario name and select the Apply/Undo Changes button at the top of the right pane. Click next to the Undo Change pane.
You can make the changes permanent, in one of the following ways:
In the tree pane (left pane), right-click the scenario name and select Confirm Changes.
When you close the Configuration Analyzer window, you are prompted to rollback the changes. Click No.
After creating a configuration analysis, you can add more SQL statements from the SQL Repository to it.
To add SQL to an existing configuration analysis
From the left pane, select the analysis in which you want to add the SQL.
Right-click and select Add SQL.
From the Add SQL window under the Select SQL to be added pane, check the SQL statements you want added.
Under the Select Scenario to include SQL pane, check the Scenarios you want the SQL added to.
Click OK to add the SQL, retrieve the query plans and re-execute the Scenario.