Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • If you are using the cost-based Optimizer, it is important that statistics are up to date so that the simulation is as accurate as possible.
  • What-If is only as good as the data it has to work on. It is dependent on statements, J2EE Caller Services, and Web Transactions being loaded into the PMDB and explained by the Explain Statements PMDB process.
  • Until all functions within an application are exercised, Precise for Oracle cannot give a true picture of all affected statements, J2EE Caller Services, and Web Transactions.
  • The index recommendation feature in the SQL tab only examines a single statement, J2EE Caller Service, and Web Transaction. It may be the case that the What-If tab suggests that this recommendation should not be implemented because of its impact on other statements, J2EE Caller Services, and Web Transactions. It is always a good idea to use both tabs together.

See “About About the Current tab” on page 51, “About tab, About the Activity tab” on page 61tab, and “About About the SQL tab” on page 131tab.

Anchor
HowtheWhatIftabisstructured
HowtheWhatIftabisstructured
How the What-If tab is structured

...

The following table describes the different index change parameters.

Table 9- 1 Index change parameters

ParameterDescription
EvaluateCheck box to select the table row for manipulation.
RemoveButton to remove its table row from the Index list.
EditButton to edit the table row.
ActionIndicates the type of the change, which can be one of the following: Index Creation, Index Modifications, Index Deletion, Gather Statistics, Accept SQL Profile, or Rewrite Query.
OwnerOracle owner.
TableName of the table that the index belongs to.
ObjectRecommended Object name.
DDL/CommentDDL command for recommendation implementation or comment regarding the recommendation.
ColumnsList of columns in the index.
TypeNormal (B*Tree) or Bitmap.
UniqueIndicates whether the index is unique or not.
Leaf BlocksAnalysis of statistics information. This column is blank until you click Evaluate. If an index is deleted, this column will show N/A.
Distinct KeysAnalysis of statistics information. This column is blank until you click Evaluate. If an index is deleted, this column will show N/A.
Clustering FactorAnalysis of statistics information. This column is blank until you click Evaluate. If an index is deleted, this column will show N/A.
PartitionedIndicates whether the index is partitioned or not.

About the Summary area

The Summary area in the What-If tab displays whether or not a statement, J2EE Caller Service, or Web Transaction would be effected by the change after clicking Evaluate, as follows:

  • Statements, J2EE Caller Services, and Web Transactions whose performance improve. The number of statements that are positively impacted.

Anchor
AboutLaunchingtoSQLTabinContext
AboutLaunchingtoSQLTabinContext
About launching to SQL tab in context

Depending upon whether or not a statement was evaluated, you can launch to either the Plan tab or the Compare tab in the SQL tab. The following icons indicate to which tab in the SQL tab a statement will be launched, in context:

Table 9- 2 Icons to launch in context

IconDescription
Image Modified
If the statement was evaluated, launches the SQL tab on the Plan tab.
Image Modified
Launches the SQL tab on the Compare tab so that you can compare the explain plan for this version with the original.

Evaluating index changes

The buttons below the Main area let you add and simulate an index change. The icons on the table rove let you edit index changes for evaluation or delete a suggested change from the evaluation table.

...

To add or edit an index change

  1. Click Add or Edit, as required.
  2. In the What-If... dialog box, select an owner and a table.
  3. Select an operation: Index Creation, Index Modifications, or Index Deletion.
  4. If indexes already exist for this table, select the name of the relevant index.
  5. If you want the index to be a bitmap index or a unique index, select the relevant check box.
  6. To add or remove columns to or from the index, use the left and right arrows.
  7. Click OK to update the table in the Main area.

...

  1. To simulate an index change, select the Evaluate check box of check Evaluate in the relevant table rows, and then click Evaluate.
  2. If the number of statements to evaluate exceeds the default setting (100 statements), you will be prompted to do one of the following:
    • Click OK to start the analysis.
    • Click Top Statements to evaluate the top 100 statements experiencing In Oracle activity only.
    • Click Cancel to cancel the operation.
      The simulation takes into account all the changes listed in the Main area. When the simulation is complete, the Summary and Grid areas are populated with data.

...

The following tables describe the columns in the tables:

Table 9- 3 Columns for J2EE Caller Service and Web Transaction table

ColumnDescription
J2EE Caller Service or Web TransactionNames of either the J2EE Caller Services or Web Transactions.
In Oracle

Resource consumption of the impacted J2EE Caller Service or Web Transaction during the selected time frame.

The format is: hh:mm:ss. Use this column to assess the heavy resource consuming statements that are either positively or negatively impacted.

Gain (%)The amount in gain in percentage when performing the suggested index change.
Statement ExecutionsThe amount of statement executions.
Affected TransactionThe number of transactions for the specific J2EE Caller Service that are affected by the index change (for J2EE Caller Services only).

Table 9- 4 Columns for the Statement table

ColumnDescription
Image Modified

Lets you launch to the SQL tab on the plan tab, if the statement was not evaluated, or the SQL tab on Compare tab, to compare the explain plan for this version of the statement with the original.

See

“About

About launching to SQL tab in

context” on page 161

context.

TextPortion of the SQL text.
In Oracle

Resource consumption of the impacted statement during the selected time frame.

The format is: hh:mm:ss. Use this column to assess the heavy resource consuming statements that are either positively or negatively impacted.

CostCurrent estimated cost of the Oracle Optimizer, as taken from the latest explain plan.
Predicted CostPredicted cost of the Oracle Optimizer for the new plan.
Gain (%)The amount in gain in percentage when performing the suggested index change.
ExecutionsNumber of times the statement was executed during the selected time frame.
StatementName of the impacted statement.
Statement IDThe ID of the statement.
statement-usernameThe user name which executed the statement.
statement-explain-typeDisplay the explain type used for the recommendations.
CommentPrecise for Oracle may include its own comment on the simulated change, or why, for example, costs are not available.
Affected TransactionThe number of transactions for the specific statement that are affected by the index change.

Anchor
HowtheWhatIftabcanhelpyouidentifyperformanceenhancements
HowtheWhatIftabcanhelpyouidentifyperformanceenhancements
How the What-If tab can help you identify performance enhancements

You can identify a performance problem by doing one or more of the following:

Anchor
Addinganindex
Addinganindex
Adding an index

Simulating an index change is a two-step process.

...

In the Association area on the right, you can see the two statements that will be affected. The Oracle Optimizer is used to compare the cost of the original execution plan with the cost of the new execution plan. In our example, the cost will be reduced and the Change Ratio is less than 100 for both cases. The execution time of these statements and the resources they consume should therefore be reduced.

Anchor
Removinganindex
Removinganindex
Removing an index

To simulate removing an index, you first need to add a proposed index change to the table in the Main area.

...

Further information can be gathered from the change ratio, which varies from 113%—only slightly worse—to up to 700%. It is therefore unlikely that we implement the proposed change.


Scroll Ignore
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmltrue
Newtabfooter
aliasIDERA
urlhttp://www.idera.com
 

...

Precise. Performance intelligence from click to storage. Learn more > >

...

Newtabfooter
aliasProducts
urlhttps://www.idera.com/productssolutions/sqlserver
 
Newtabfooter
aliasPurchase
urlhttps://www.idera.com/buynow/onlinestore
 | 
Newtabfooter
aliasSupport
urlhttps://idera.secure.force.com/precise/
 | 
Newtabfooter
aliasCommunity
urlhttp://community.idera.com
 
|
 
Newtabfooter
aliasResources
urlhttp://www.idera.com/resourcecentral
 | 
Newtabfooter
aliasAbout Us
urlhttp://www.idera.com/about/aboutus
 
Newtabfooter
aliasLegal
urlhttps://www.idera.com/legal/termsofuse

...