Professional Documents
Culture Documents
2-2 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Reasons for Inefficient SQL Performance
2-3 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Inefficient SQL: Examples
2-5 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Performance Monitoring Solutions
Automatic
Fore- 60 min
In-memory
ground MMON
statistics
SGA AWR
ASH
Snapshots
Snapshots ADDM
Alerts AST
Statspack
ADDM
results AWR report
2-7 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Monitoring and Tuning Tools: Overview
Services
Base/ Service
Optimizer SQL
Segment Histograms Metrics ASH
statistics statistics statistics Compared
statistics periods
System
Wait Time OS ASH
Session Alerts
model model statistics report
statistics
2-9 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
EM Performance Pages for Reactive Tuning
Home
ASH Run
Report ADDM
Performance
Wait
class Top Top Top Top Top Top Top
details SQL Sessions Services Modules Actions Files Objects
SPA
CPU
time Possibly
needs SQL Scalable
tuning application
Wait
time
• Simple design
• Data modeling
• Tables and indexes
• Using views
• Writing efficient SQL
• Cursor sharing
• Using bind variables
• Simple tables
• Well-written SQL
• Indexing only as required
• Retrieving only required information
• SQL Developer
• SQL*Plus
SQL Developer
SQL Developer