Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 E-mail Us
 Oracle Articles
New Oracle Articles

 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog

 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Oracle Support

 SQL Tuning

 Oracle UNIX
 Oracle Linux
 Remote s
 Remote plans
 Application Server

 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S


 Consulting Staff
 Consulting Prices
 Help Wanted!


 Oracle Posters
 Oracle Books

 Oracle Scripts

Don Burleson Blog 







AWR and SQL Tuning

Oracle Tips by Burleson Consulting

AWR and SQL Tuning

Just as the v$sql_plan  view revolutionized Oracle9i tuning, the new Oracle10g AWR tables have revolutionized SQL tuning.  Most Oracle experts note that SQL optimization is one of the most important factors in database tuning, yet the transient nature of SQL execution has made it difficult to see the impact of SQL execution over time.  All of this changed with Oracle10g.

The AWR tables contain useful information about the time-series execution plans for SQL statements, and this repository can be used to display details about the frequency of usage for table and indexes. 

The following basic relationships between database objects and SQL statements are important:

       Each SQL statement may generate many access plans: From the information on dynamic sampling and dbms_stats, the execution plans for SQL statements will change over time to accommodate changes in the data they access.  It is important to understand how and when a frequently executed SQL statement changes its access plan.

       Each object is access by many access plans: In most OLTP systems, tables and indexes show repeating patterns of usage and clear patterns can be detected when averaging object access of day-of-the-week and hour-of-the-day.


Figure 15.18: Time-series relationships between SQL and database objects


Figure 15.18 shows that there is a many-to-many relationship between any given SQL statement and the tables they access.  Once this fundamental relationship is clear, the AWR tables can be used to perform time-based SQL tuning.  We have the following AWR tables for SQL tuning as shown in 15.19:







Figure 15.19: The dba_hist views for SQL tuning

These simple tables represent a revolution in Oracle SQL tuning, and time-series techniques can be employed to optimize SQL with better results than ever before.  The following section provides a closer look at these AWR tables and the amazing details that they can provide about SQL execution over time.

The Ion tool is also excellent for identifying SQL to tune and it can show SQL execution over time with stunning SQL graphics.

Get the Complete
Oracle SQL Tuning Information 

The landmark book "Advanced Oracle SQL Tuning  The Definitive Reference"  is filled with valuable information on Oracle SQL Tuning. This book includes scripts and tools to hypercharge Oracle 11g performance and you can buy it for 30% off directly from the publisher.



Oracle Training at Sea
oracle dba poster

Follow us on Twitter 
Oracle performance tuning software 
Oracle Linux poster


Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


Copyright © 1996 -  2017

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

Remote Emergency Support provided by Conversational