Using Oracle dbms_sqltune
These AWR
tables feed data to the totally reworked
Enterprise Manager (EM) to produce stunning
time-series displays. AWR data is used by
the Automatic Database Diagnostic Monitor (ADDM)
and the SQL Tuning Advisor or by using the
dbms_sqltune package to make intelligent
performance recommendations.
Instead of running complex scripts to track
database performance over time, the
Oracle10g DBA now has detailed time-series
performance data immediately available for
detailed analysis. These industrial strength
AWR tables are a blessing for the Oracle
tuning DBA. Oracle10g has new DBMS packages,
such as the Oracle dbms_sqltune and
dbms_mview.explain_rewrite packages, that
read the wrh$ tables and carry out
sophisticated performance analysis. While
not artificial intelligence in the truest
sense, these sophisticated tools help
simplify the complex task of Oracle tuning.
For tuning multiple SQL statements, a SQL
Tuning Set (STS) is created. An STS is
nothing but a database object to store SQL
statements with their execution context. STS
can be created from a command line or the
new and improvised Enterprise Manager. For
the hands-on DBA, SQL Tuning Sets can be
managed with Oracle dbms_sqltune package
procedures.
The extra-cost Database Tuning Pack is
required to access SQL Tuning Advisor PL/SQL
Packages located in $ORACLE_HOME/rdbms/admin.
dbms_advisor package with "SQL Tuning
Advisor" as the
value to the "advisor_name" parameter.
dbms_sqltune package
|
|