Versions Compared

Key

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

This section includes the following topics:

Anchor
AbouttheSQLtab
AbouttheSQLtab
About the SQL tab

The process of explaining statements is a prerequisite for tuning. The explain process is designed to clarify the access path chosen for a statement and translate it into a visual medium. The SQL tab helps you identify bottlenecks and guides you through the steps required to tune SQL statements.

...

See “About the Dashboard tab” on page 43, “About the Current tab” on page 51, “About the Activity tab” on page 61, and “About the Objects tab” on page 87.*

Anchor
HowtheSQLtabisstructured
HowtheSQLtabisstructured
How the SQL tab is structured

The SQL tab lets you analyze execution plans and explain results so that you can tune statements and achieve optimal results.

...

  • Related SQL selector
  • View tabs
  • Tuning Action buttons

Anchor
AbouttheRelatedSQLselector
AbouttheRelatedSQLselector
About the Related SQL selector

The Related SQL selector appears only in the Plan view if a statement has a related SQL. The first time you visit the SQL tab, it will not be visible. It lets you choose one of the alternative statements that are associated with an original statement. An original statement is one captured by the Collector, imported, or entered manually. Full details on the related SQL are held in the Related SQL view.

...

  • When you edit a statement and save an alternative. see “Editing an existing statement” on page 154.
  • When you click New Alternatives in the Related SQL view, and Precise for Oracle creates an alternative SQL for you. See “Generating new alternatives” on page 156.
  • When an index recommendation is made in the What-If tab and you click Compare to switch to the SQL tab, in which case a copy of the statement is saved along with its new virtual index and execution plan. See “About the What-If tab” on page 159.

Anchor
AbouttheViewtabs
AbouttheViewtabs
About the View tabs

The SQL tab divides the information on the selected statement into different views. Each view has a different layout and presents different information.

...

The Text tab displays the SQL text for each alternative. 

Anchor
AboutTuningActions

...

AboutTuningActions
About Tuning Actions

...

The Tuning Actions icon lets you perform additional tuning functions. These action options are accessed by clicking on their related button or by accessing them through the Actions menu.

...

To generate a new alternative

 

1    In , in the Run Alternatives view, click Actions>Generate Alternative.

Anchor

...

HowtheSQLtabcanhelpyouidentifyperformanceproblems

...

HowtheSQLtabcanhelpyouidentifyperformanceproblems
How the SQL tab can help you identify performance problems

...

After identifying a problematic statement that is slowing down the response time of a specific application, the first step in tuning the statement is to understand the access path that Oracle chose for the statement. The explain procedure is designed to clarify the access path chosen for a statement and translate it into a visual medium. Therefore, you can easily see whether the optimizer chose the proper execution plan. For example, you can see whether the optimizer performed an index seek as expected. In addition, you can see schema changes related to the statement's objects and compare these changes with previous access plans and In Oracle over time data for the selected statement to understand how the changes affected a statement's performance. You can also compare previous access plans and locate the steps that have been changed.

...