[bbk5345] 第83集 第10章 SQL Performance 04

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

  1. Capture SQL workload on production.
  2. Transport the SQL workload to a test system.
  3. Build "before-change" performance data.
  4. Make changes.
  5. Build "after-change" performance data.
  6. Compare results from steps 3 and 5.
  7. Tune regressed SQL.

Quiz

  • Even when you enable Automatic Maintenance tasks,the SQL Tuning Advisor always has to be started separately.
    1. True
    2. False
  • You can receive performance recommendations for historical SQL statements that are collected by AWR snapshots.
    1. True
    2. False
  • The SQL Access Advisor can recommend the proper set of materialized views,materialized view logs,partitioning,and indexes for a given workload.
    1. True
    2. 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.
    1. True
    2. 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
原文地址:https://www.cnblogs.com/arcer/p/3117077.html