Les 15 Perf
Les 15 Perf
• Investment options
• System architecture
• Scalability
• Application design principles
• Workload testing, modeling, and implementation
• Deploying new applications
V$EVENT_NAME
• event_number V$SYSTEM_EVENT
• event
• event_id
• total_waits
• name
• total_timeouts
• parameter1
• time_waited
• parameter2
• average_wait
• parameter3
• time_waited_micro
• wait_class
Instance/Database Disk
V$DATABASE V$DATAFILE
V$INSTANCE V$FILESTAT
V$PARAMETER V$LOG
V$SPPARAMETER V$LOG_HISTORY
V$SYSTEM_PARAMETER V$DBFILE
V$PROCESS V$TEMPFILE
V$BGPROCESS V$TEMPSEG_USAGE
V$PX_PROCESS_SYSSTAT V$SEGMENT_STATISTICS
V$SYSTEM_EVENT Contention
Memory V$LOCK
V$BUFFER_POOL_STATISTICS V$UNDOSTAT
V$LIBRARYCACHE V$WAITSTAT
V$SGAINFO V$LATCH
V$PGASTAT
ADDM finds
MMON
top problems.
SYSAUX
SGA
6:00 AM
Snapshot 1
In-memory 7:00 AM
Snapshot 2
statistics 8:00 AM Snapshot 3
9:00 AM
Snapshot 4
9:30 AM
SQL Tuning
Add materialized view
Advisor
Restructure SQL
Implement partitioning
Bind variable
candidates
Workload specification
Recommendations
-SQL statement
-Indexes
-SQL Tuning Set
-Materialized views
-SQL cache contents
-Materialized view logs
-Statistics
-Partitioning
-Schema name
SQL Access
Advisor
Database Replay:
• Captures production workloads
• Tests with realistic workloads
• Replays the same SQL against the same data in each test
Workload
Capture Replay
Production Test
database database
Capture directory
Database
backup
Production
database
Capture directory
Database
backup
Production
Process
database capture
Test
system
with
Database changes
backup
Test
database
Clients/App servers
Capture directory Replay
system
• Captured operations:
– All SQL (DML, DDL, PL/SQL) with practically all types of binds
– Full LOB functionality (cursor based and direct OCI)
– Local transactions
– Login/logoff
– Session switching
– Limited PL/SQL RPCs
• Limitations: Operations not captured
– Direct path load, import/export
– OCI-based object navigation (ADTs) and REF binds
– Streams, non-PL/SQL-based AQ
– Distributed transactions, remote describe/commit operations
– Flashback (Database and Query)
– Shared server
Start
Workload recording
Plan
Workload Replay
Process Capture
Replay Files
& Metadata
Raw captured data
(from production Initialize Replay
system)
Prepare
Replay
Replay
Report
Analyze End