Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
48 views

Oracle SQL Tuning Sets

SQL Tuning Sets are database objects that contain SQL statements along with their execution statistics and context. They can be used as inputs for database advisors and allow SQL statements to be loaded from different sources like AWR or the cursor cache. A SQL Tuning Set includes the SQL statements, execution context, basic statistics, and optional execution plans. Statements can be filtered or ranked based on statistics and SQL Tuning Sets can be transported between databases for remote performance tuning.

Uploaded by

Rama
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views

Oracle SQL Tuning Sets

SQL Tuning Sets are database objects that contain SQL statements along with their execution statistics and context. They can be used as inputs for database advisors and allow SQL statements to be loaded from different sources like AWR or the cursor cache. A SQL Tuning Set includes the SQL statements, execution context, basic statistics, and optional execution plans. Statements can be filtered or ranked based on statistics and SQL Tuning Sets can be transported between databases for remote performance tuning.

Uploaded by

Rama
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Managing SQL Tuning Sets

A SQL Tuning Set is a database object that includes one or more SQL statements and
their execution statistics and context. You can use the set as an input for advisors such
as SQL Tuning Advisor, SQL Access Advisor, and SQL Performance Analyzer. You can
load SQL statements into a SQL Tuning Set from different SQL sources, such as AWR,
the cursor cache, or high-load SQL statements that you identify.

A SQL Tuning Set includes the following:

 A set of SQL statements


 Associated execution context such as:
o User schema
o Application module name and action
o List of bind values
o Cursor compilation environment
 Associated basic execution statistics such as:
o Elapsed time and CPU time
o Buffer gets
o Disk reads
o Rows processed
o Cursor fetches
o Number of executions and number of complete executions
o Optimizer cost
o Command type
 Associated execution plans and row source statistics for each SQL statement
(optional)

SQL statements can be filtered using the application module name and action, or any of
the execution statistics. In addition, SQL statements can be ranked based on any
combination of execution statistics.

SQL Tuning Sets are transportable, enabling SQL workloads to be transferred between
databases for remote performance diagnostics and tuning. When high-load SQL
statements are identified on a production system, it may not be desirable to perform
investigation and tuning activities directly on this system. This feature enables you to
transport the high-load SQL statements to a test system, where they can be safely
analyzed and tuned.

You might also like