Kerry
Osborne
Randy
Johnson
Tanel Poder
Contents
J
m
About
the Authors
xvi
About the Technical Reviewer
xvii
a
Acknowledgments
xviii
Introduction
xix
Chapter
1:What Is
Exadata?
1
An Overview of Exadata
2
History
of Exadata
3
Alternative Views of What Exadata Is
5
Data Warehouse
Appliance
5OLTP Machine 6
Consolidation Platform 6
Configuration Options
7
Exadata Database Machine X2-2 7 Exadata Database Machine X2-8 8
Hardware
Components
9
Operating Systems
10 Database Servers 11Storage
Servers 11InfiniBand
11 Flash Cache 12 Disks 12Bits and Pieces 12
Software
Components
12
Database Server Software 12
Storage
Server
Software 16Software Architecture
18
Summary
21
Chapter
2:
Offloading
/ Smart Scan
23
Why
Offloading
Is
Important
23
What
Offloading
Includes
27
Column
Projection
27Predicate
Filtering
32Storage
Indexes 33Simple
Joins
(Bloom Filters)
34 FunctionOffloading
37Compression/Decompression
39Encryption/Decryption
40Virtual Columns 41
Data
Mining
ModelScoring
43 Non-Smart ScanOffloading
44Smart Scan
Prerequisites
45
Full
Scans
45Direct
Path Reads 45Exadata
Storage
46Smart
Scan Disablers
49
Simply
Unavailable 49Reverting
to BlockShipping
49Skipping
SomeOffloading
50 viCONTENTS
How to
Verify
That Smart Scan
is
Happening
50
10046 Trace 51
Performance Statistics
(v$sessstat)
52 OffloadEligible Bytes
54SQL
Monitoring
58Parameters
61
Summary
64
Chapter
3:
Hybrid
Columnar
Compression
65
Oracle
Storage
Review
65
Oracle
Compression
Mechanisms
68
BASIC 68 OLTP 68 HCC 69
HCC
Mechanics
72
HCC Performance
73
Load Performance 73Query
Performance 78 DMLPerformance 83Expected Compression
Ratios
91
Compression
Advisor 91 Real WorldExamples
94Restrictions/Challenges
100
Moving
Data toanon-Exadata Platform 100Disabling
Serial Direct PathReads
100Locking
Issues 101Single
Row Access 102Common
Usage
Scenarios
102
Summary
104
Chapter
4:
Storage
Indexes
105
Structure
105
Monitoring Storage
Indexes
107
Database Statistics 107
Tracing
108Monitoring Wrap Up
111Controlling Storage
Indexes
111
_kcfis_storageidx_disabled
111_kcfis_storageidx_diag_mode
112_cell_storidx_mode
112Storage
Software Parameters 112Behavior
113
Performance
114
Special Optimization
for Nulls 116Physical
Distribution of Values 117Potential Issues
118
Incorrect Results 119
Moving Target
119Partition Size
122Incompatible Coding Techniques
122Summary
124
Chapter
5: Exadata Smart
Flash Cache
125
Hardware
125
Cache
vs.Flash
Disk
127
Using
FlashMemory
asCache 128HowESFCis Created 132
CONTENTS
Controlling
ESFCUsage
134Monitoring
135
At the
Storage Layer
135
At the
DatabaseLayer
139Performance
140
Summary
141
Chapter
6: Exadata Parallel
Operations
143
Parameters
143
Parallelization at the
Storage
Tier
145
AutoDOP
146
Operation
andConfiguration
146I/O Calibration 149
AutoDOP
Wrap Up
152Parallel
Statement
Queuing
152
The Old
Way
153The New
Way
153Controlling
ParallelQueuing
157Parallel Statement
Queuing Wrap
Up
165In-Memory
Parallel
Execution
165
Summary...
175
Chapter
7: Resource
Management
175
Database Resource
Manager
176
Consumer
Groups
178Plan Directives 181
Resource Plan 183
Resource
Manager
Views 184 The Wait Event: resmgr: cpuquantum
185DBRM
Example
185Testing
aResource
Plan 190Instance
Caging
198
Configuring
andTesting
InstanceCaging
199Over-Provisioning
204I/O
Resource
Manager
204
How I0RM Works 206
Methods for
Managing
I/OonExadata 209Bringing
It AllTogether
215 IORMMonitoring
and Metrics 219Summary
235
Chapter
8:
Configuring
Exadata
237
Exadata Network
Components
237
The
Management
Network 237The Client
AccessNetwork
238 ThePrivate
Network 239About the
Configuration
Process
240
Configuring
Exadata
241
Step
1: TheConfiguration
Worksheet 242Step
2: The DBMConfigurator
253Step
3:Upload
Parameter andDeployment
Files 254Step
4:CheckIP
(checkip.
sh)
258Step
5: Firstboot 260Step
6:Staging
theInstallation
Media 262Step
7:Running
OneCommand
263Upgrading
Exadata
268
Creating
aNew RAC Cluster 268Upgrading
theExisting
Cluster 270*CONTENTS
Summary
273
Chapter
9:
Recovering
Exadata
275
Exadata
Diagnostic
Tools
275
Sun
Diagnostics: sundiag.sh
276HealthCheck 278
CellCLI 279
Backing
Up
Exadata
284
Backing Up
theDatabase Servers 284Backing Up
theStorage
Cell 287Backing
Up
the Database
293
Disk-Based
Backups
293Tape-Based Backups
293Backup
fromStandby
Database 294Exadata
Optimizations
for RMAN 295Recovering
Exadata
296
Restoring
the Database Server 296Recovering
theStorage
Cell 299Summary
318
m
Chapter
10: Exadata Wait Events
319
Events
Specific
toExadata
319
The "cell" Events 320 Plan
Steps
ThatTrigger
Events 321Exadata Wait Events in the User I/O Class
323
cell smart tablescan 323
cellsmartindexscan 326
cell
single
blockphysical
read 328 cellmultiblockphysical
read 330cell list of blocks
physical
read 331cell
smart filecreation
332 cellstatistics gather
333Exadata Wait Events
in the
System
I/O Class
333
cellsmartincremental
backup
334cell smart restore from
backup
335Exadata Wait Events
in the Other and Idle Classes
337
cell smart flash
unkeep
337Old Events
338
direct
path
read 338 enq: KO—fastobject
checkpoint
339 reliable message 340Resource
Manager
Events
341
resmgrxpu
quantum
341resmgnpq queued
342Summary
343
Chapter
11:
Understanding
Exadata Performance Metrics
...345
Measuring
Exadata's Performance
Metrics
345
Revisiting
the
Prerequisites
for
Exadata Smart
Scans
346
Exadata Smart Scan Performance 346
Understanding
Exadata SmartScan Metrics
andPerformance Counters
350Exadata
Dynamic
Performance
Counters
350
When and How to Use Performance Counters 351 The
Meaning
andExplanation
of Exadata Performance Counters 354 Exadata Performance Counter Reference i 356Understanding
SQL
Statement Performance
374
Summary
377
CONTENTS
Chapter
12:
Monitoring
Exadata Performance..
379
A
Systematic Approach
379
Monitoring
SQL
Statement
Response
Time
380
Monitoring
SQLStatements
with Real-TimeSQL
Monitoring Reports
381Monitoring
SQL Statements
using
V$SQL
andV$SQLSTATS
393Monitoring
the
Storage
Cell
Layer
395
Accessing
Cell Metrics In the CellLayer Using
CellCLI 395Accessing
Cell MetricsUsing
the Grid Control ExadataStorage
ServerPlug-In
396Which
Cell MetricstoUse? 405Monitoring
ExadataStorage
CellOS-level Metrics 406Summary
418
Chapter
13:
Migrating
to
Exadata
419
Migration Strategies
420
Logical Migration
421
Extract and Load 422
Copying
Dataover aDatabase
Link 427Replication-Based Migration
443Logical Migration Wrap
Up
451Physical Migration
451
Backup
and Restore
452
Full
Backup
and Restore 452 IncrementalBackup
454Transportable
Tablespaces (and XTTS)
455Physical
Standby
458ASM Rebalance 460
Post-Migration
Tasks 463Wrap Up
Physical Migration
Section 464 xiiiSummary
465
Chapter
14:
Storage Layout
467
Exadata Disk Architecture
467
Failure
Groups
469
Grid
Disks471
Storage
Allocation
473Creating
Grid Disks
477
Creating
Grid Disks 478 Grid DiskSizing
479Creating
FlashDisk-BasedGrid
Disks 483Storage Strategies
484
Configuration Options
485Isolating Storage
CellAccess
485Cell
Security
487
Cell
Security Terminology
488 CellSecurity
Best Practices 489Configuring ASM-Scoped Security
489Configuring Database-Scoped Security
490Removing
Cell Security
493Summary
495
Chapter
15:
Compute
Node
Layout
497
Provisioning
Considerations
497
Non-RAC
Configuration
500
RAC
Clusters
504
Typical
Exadata
Configuration
506
Exadata Clusters
507
Summary
509
«CONTENTS
Chapter
16:
Unlearning
Some
Things
We
Thought
We Knew
511
A Tale of Two
Systems
511
OLTP-Oriented Workloads
512
Exadata Smart
FlashCache
(ESFC)
512Scalability
513 Write-lntensive OLTP Workloads 513DW-Oriented Workloads
514
Enabling
SmartScans 514Things
that
CanCripple
Smart
Scans 516 OtherThings
toKeep
in Mind
526Mixed
Workloads
528
To IndexorNot to Index? 529
The