Tips by Burleson
Oracle10g Using SQL Tuning Advisor Session
This method has many stages. In the first stage, you can create
the SQL Advisor task by taking SQL statement input from a variety
of sources. They are as follows:
- High Load SQL statements, identified by ADDM.
- SQL statements that are currently in cursor cache (From the
- SQL statements based on the range of snapshot ids from the
Automatic Workload Repository (AWR). By default, AWR maintains
data for up to seven days.
- Simple SQL Statement Text. A user can define a custom
workload consisting of statements of interest to the user. These
may be statements that are either in cursor cache or high-load,
to be captured by ADDM or AWR.
- SQL Tuning Set (STS). A SQL Tuning Set is a named set of SQL
statements with their associated execution context and basic
STS is mostly used for multi-statement input. STS stores
multiple SQL statements, along with their execution information,
such as execution context (parsing schema name and bind values)
and execution statistics (average elapsed time, and execution