SQL Performance Analyzer : Overview
- Target users:DBAs,QAs,application developers
- Helps predict the impact of system changes on SQL workload response time.
- Builds different versions of SQL workload performance (that is,SQL execution plans and execution statistics)
- Executes SQL serially(concurrency not honored)
- Offers fine-grained performance analysis on individual SQL
- Is integrated with SQL Tuning Advisor to tune regressions
SQL Performance Analyzer:Use Cases
SQL Performance Analyzer is beneficial in the following use cases:
- Database upgrades
- Implementation of tuning recommendations
- Schema changes
- Statistics gathering
- Database parameter changes
- OS and hardware changes
Accessible through Enterprise Manager and the DBMS_SQLPA(SQLPA->SQL Performance Analyzer) Package
Using SQL Performance Analyzer
- Capture SQL workload on production.
- Transport the SQL workload to a test system.
- Build "before-change" performance data.
- Make changes.
- Build "after-change" performance data.
- Compare results from steps 3 and 5.
- Tune regressed SQL.
Quiz
- Even when you enable Automatic Maintenance tasks,the SQL Tuning Advisor always has to be started separately.
- True
- False
- You can receive performance recommendations for historical SQL statements that are collected by AWR snapshots.
- True
- False
- The SQL Access Advisor can recommend the proper set of materialized views,materialized view logs,partitioning,and indexes for a given workload.
- True
- Flase
- The SQL Performance Analyzer provides you with detailed information about the performance of SQL statements,such as before-and-after execution statistics,and statements with performance improvement or degradation.
- True
- False
Summary
In this lesson,you should have learned how to:
- Use the SQL Tuning Advisor to:
- Identify SQL statements that are using the most resources
- Tune SQL statements that are using the most resources
- Use the SQL Access Advisor to tune a workload