Académique Documents
Professionnel Documents
Culture Documents
Objectives
Available tools:
• Basic:
– Time model
– Top wait events
– Dynamic performance views and tables
– Alert log
– Trace files
– Enterprise Manager pages
• Add-in: Statspack
• Options:
– Diagnostics Pack
– Tuning Pack
Tuning Objectives
DB Time =
DB Wait Time +
DB CPU Time
CPU and Wait Time Tuning Dimensions
CPU
time
Possibly Scalable
needs SQL application
tuning
Needs No gain
instance/RAC achieved
tuning by adding
CPUs/nodes
Wait
time
Time Model: Overview
– V$SESS_TIME_MODEL
• DB time represents the total time
SQL
spent in database calls by user sessions.
• A tuning goal is to reduce DB time.
• Using DB time, you can gauge the performance impact of
any entity of the database.
Time Model Statistics Hierarchy
Oracle instance
Dynamic Performance Views:
Usage Examples
V$STATISTICS_LEVEL
STATISTICS_LEVEL
Reports
System Statistic Classes
V$SYSSTAT User
Debug
Redo
SQL
System
statistic
classes
RAC
Enqueue
OS
V$STATNAME V$SESSTAT
Cache
Displaying Statistics
Foreground
Network User I/O processes I/O
Network
messaging
https://host name:1158/em
Performance Information
on the Database Home Page
Viewing the Alert Log