11g nf sql_anlz
Upcoming SlideShare
Loading in...5
×
 

11g nf sql_anlz

on

  • 387 views

Oracle11g SQL

Oracle11g SQL

Statistics

Views

Total Views
387
Views on SlideShare
386
Embed Views
1

Actions

Likes
0
Downloads
3
Comments
0

1 Embed 1

http://static.slidesharecdn.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

11g nf sql_anlz 11g nf sql_anlz Presentation Transcript

  • SQL Performance Analyzer
    forecast the impact of a potential change on the performance of a SQL query workload.
    WHEN?
    • Database upgrades
    • Implementation of tuning recommendations
    • Schema changes
    • Statistics gathering
    • Database parameter changes
    • OS/hardware changes
    might be
    reported for as a Tuning Result
  • SQL Performance Analyzer
    Extract STS(SQL Tuning Set) from production
    What’s inside?
    FROM Cursor Cache
    – SQL Text
    – Bind variables
    – Execution plans
    – Execution statistics
    - Incremental capture
    over a time period
    - filtering and ranking capabilities
    filters out undesirable SQL
    FILTERING
    Always all? No!
  • SQL Performance Analyzer
    Transport to a test system (STS COPY)
    변 경 전
    변 경 후
    Execute
    Re-Execute
    • Test-Execute SQL
    – produce execution plans and statistics
    – execute SQL serially
    – every SQL is executed only once
    • Explain plan SQL in SQL tuning set to generate SQL plans only
    SQL Performance = execution plans + execution statistics
  • SQL Performance Analyzer
    And next
    Detect
    - improvements
    - regressions
    - unchanged performance
    - changes in execution plans
    Tune
    - regressed SQLs
    - index
    Choose
    - SQL Plan Management baseline
    X
    O
    ?
    SQL Performance = execution plans + execution statistics
  • SQL Performance Analyzer
    Do
    Creating a SQL Tuning Set (Capturing the SQL Workload) Sources
    - Cursor Cache
    - AWR Snapshots, Baselines
    - User-defined Workload (sql_text, parsing_schema_name columns)
    Exporting the SQL Workload
    - choose to export the selected STS
    - load a STS on the test system for comparison purposes
    Collect SQL Performance
    Change
    - parameter
    - index
    - hint
    SQL Performance = execution plans + execution statistics
  • SQL Performance Analyzer
    Do Do
    Collect SQL Performance
    Compare SQL Performance
    Analysis Results
    - before vs after
    Using EM
    SQL Performance = execution plans + execution statistics
  • SQL Performance Analyzer
    Do DoDo
    DBMS_SQLTUNE
    - CREATE_TUNING_TASK
    - EXECUTE_TUNING_TASK
    - REPORT_TUNING_TASK
    - etc………………
    To be continued………………
    SQL Performance = execution plans + execution statistics