Académique Documents
Professionnel Documents
Culture Documents
The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracles products remains at the sole discretion of Oracle.
Performance Diagnostics
Key Concepts
DB Time
Total time in database calls by foreground sessions Includes CPU time, IO time and non-idle wait time DB Time <> response time Total DB time = sum of DB time for all active sessions
#1
P B 0
High-load SQL
IO / CPU issues
RAC issues
SQL Advisor
Use ADDM (Automatic Database Diagnostic Monitor) for database-wide performance diagnostic Self-diagnostic engine in the database Helps resolve current and past problems In 11g, a RAC specialist as well! Provides impact and benefit analysis, non problem areas Runs proactively out of the box, reactively when required
Click!
P B 9
*
Time
ASH Report:
Top Events for that SQL
ASH Report:
Activity for that SQL over the same 5 mins
Performance
#
Actual
Baseline
time
SQL Optimization
P B 7
Demo
Real-time SQL Monitoring
SQL
Statistics Analysis
Access Structure Analysis (Single SQL) SQL Design Analysis Plan Tuning (SQL Profiling)
Live tuning
Run SQL Tuning Advisor in Limited mode only if system does not have spare resources otherwise run in Comprehensive mode (recommended)
Remote tuning
Tuning remotely if Cumulative resources/time consumed by all SQL statements significant System cannot spare resources Use SQL Profile and SQL Tuning Set export/import capabilities
Packaged Apps
Custom Apps
Automatic implement
Well-tuned SQL
P B 5
P B 4
2. 3. 4. 5.
Capture SQL workload in STS using automatic cursor cache capture capability Execute SPA pre-change trial Refresh statistics using PENDING option Execute SPA post-change trial Run SPA report comparing SQL execution statistics Remediate individual SQL for plan few regressions Revert to old statistics if too many regressions observed
Analysis Report
Test Changes In
10g R2 or 11g 10g R2 or 11g 10g R2 or 11g 11g 11g
SQL Performance Analyzer (SPA) Capture on 9i, 10.1, 10.2 database releases Test changes in 10.2 & above Database Replay Capture on 9i, 10.2 database releases Test changes in 11.1 & above
Space Management
Goals
Optimize space usage by eliminating/ minimizing fragmentation Optimize data access and transaction performance
Performance
Serialization of space management at file level Space management faster by 100200% Automatically manages contention on meta-data blocks Inter-instance data block contention reduced by dynamic instance affinity
P B 3
Automatic Segment Space Mgmt (ASSM) vs. Manual Segment Space Mgmt (MSSM)
4
Response Time
Insert Workload
ASSM MSSM
3 2 1 0 1 2 4 8 16 32
Concurrent Users
8
Response Time
6 4 2 0 1 2 4 8
Concurrent Users
Internal Fragmentation
Fragmentation of space within a segment
Space under-utilization below HWM Although minimized, can still occur in ASSM tablespace Performance Impact: slows certain access paths, e.g., full table scan Online Segment Shrink remedies internal fragmentation
ROW MOVEMENT must be ENABLED for heap organized segments Segment must be in ASSM, locally managed tablespace
Automatic Segment Advisor evaluates segments for fragmentation and makes appropriate recommendations
Space Operations Online In-place Incremental Dependecy Maintenance Segment Level Reorg Parallel Shrink Y Y Y Y Y N Online Redef Y N N N N Y Alter MOVE N N N N Y Y
P B 2
64K or multiple:
Global temporary tables are predominant and amount of data loaded is small Application is predominantly OLTP V$TEMPSEG_USAGE
Location
Moscone West Exhibit Hall Moscone West Exhibit Hall Moscone West Exhibit Hall Moscone West Exhibit Hall Moscone West Exhibit Hall Moscone West Exhibit Hall Moscone West Exhibit Hall
Recommended Sessions
Session Title
Performance Fundamentals for Oracle DB 10g and 11g Oracle Enterprise Manager: Oracle's Management Solution for Your Enterprise Advanced Performance Diagnostics: What the GUI Doesn't Tell You Demystifying SQL Tuning: Tips and Techniques for SQL Experts Successful Upgrade Secrets: Preventing Performance Problems with Database Replay Storage Monitoring Made Easy: Diagnosing I/O Performance Problems Oracle Recovery Manager (RMAN) Best Practices SQL Tuning Roundtable with the Experts Proactive Performance Monitoring with Baselines and Adaptive Thresholds
Date
Monday, 9/22 Monday, 9/22 Tuesday, 9/23 Tuesday, 9/23 Tuesday, 9/23 Wed, 9/24 Wed, 9/24 Wed, 9/24 Thursday, 9/25
Time
2:30 4:00 11:30 1:00 5:00 9:00 11:30 1:00 1:30
Location
Mos South: 302 Mos West: 2003 Mos West : 2003 Mos South: 303 Mos South: 303 Mos South: 303 Mos South: 103 Mos West: 2001 Mos South: 303