• No results found

Expert Oracle Exadata

N/A
N/A
Protected

Academic year: 2021

Share "Expert Oracle Exadata"

Copied!
14
0
0

Loading.... (view fulltext now)

Full text

(1)

Expert

Oracle

Exadata

Second Edition

Martin

Bach

Karl Arao

Andy

Colvin

Frits

Hoogland

Kerry

Osborne

Randy

Johnson

Tanel

Poder

(2)

Contents

J

AbouttheAuthors xxi

Acknowledgments.

xxiii

Introduction xxv

Chapter

1: What Is Exadata? 1

An Overview of Exadata 1

History

of Exadata 2

Alternative ViewsofWhat Exadata Is 4

DataWarehouseAppliance 4 OLTP Machine 5

Consolidation Platform 5

Configuration Options

6

Exadata Database Machine X5-2 6 ExadataDatabase MachineX4-8 7 ExadataStorage ExpansionRack X5-2 7

Hardware

Components

9 Operating Systems 10 Database Servers 10 StorageServers 10 InfiniBand 10 FlashCache 11 Disks 11

(3)

CONTENTS

Software

Components

11

Database Server Software 11

StorageServer Software 14

SoftwareArchitecture 16

Summary

20

Chapter

2:

Offloading

/ Smart Scan 21

Why Offloading

Is

Important

21 What

Offloading

Includes 26

Column Projection 27

PredicateFiltering 31

StorageIndexes and Zone Maps 33

SimpleJoins(Bloom Filters) 35

FunctionOffloading 38

Compression/Decompression 41

Encryption/Decryption 42

Virtual Columns 42

Supportfor LOBoffloading 45

JSON Supportand Offloading 46

DataMiningModelScoring 47

Non-Smart ScanOffloading 48

Smart Scan

Prerequisites

49

Full Scans 49

Direct Path Reads 50 ExadataStorage 53

Smart Scan Disablers 54

SimplyUnavailable 54

Revertingto BlockShipping 55

SkippingSomeOffloading 56

SkippingOffloading silently 56

(4)

Howto

Verify

That Smart Scan Is

Happening

57

10046 Trace 57

Session Performance Statistics 58

OffloadEligible Bytes 59

SQLMonitoring 63

Parameters 65

Summary

66

Chapter

3:

Hybrid

Columnar

Compression

67

Oracle Storage Review 67

Disassemblingthe Oracle Block 70

Compression

Mechanics 73

BASICCompression 73

OLTPCompression 74

HybridColumnarCompression 76

HCC Internals 80

What Happens WhenYou CreateaHCCCompressedTable? 83

HCC Performance 86

LoadPerformance 86

QueryPerformance 87

DML Performance 90

Expected

Compression

Ratios 97

CompressionAdvisor 97

Real-WorldExamples 99

Restrictions/Challenges

105

MovingDatatoaNon-Exadata Platform 105

DisablingSerial Direct Path Reads 106

LockingIssues 106

(5)

iCONTENTS

Common Usage Scenarios 111

Automatic DataOptimization 112

ExampleUse CasesforADO 114

Summary

120

Chapter

4:

Storage

Indexes 121

Structure 121

Monitoring Storage Indexes 122

Database Statistics 123

Tracing 124

Monitoring Wrap-Up 126

Controlling Storage

Indexes 126

_kcfis__storageidx_disabled 127

_kcfis_storageidx_diag_mode 127

_celLstoridx^mode 127

_cell_storidxjTiinrnax_enabled 128

StorageSoftwareParameters 128

Behavior 129

Performance 130

Special Optimizationfor Nulls 132

PhysicalDistribution of Values 133

Potential Issues 134

IncorrectResults 134

Moving Target 135

PartitionSize 138

Incompatible Coding Techniques 138

Summary 139

Chapter

5: Exadata Smart Flash Cache 141

Hardware 142

FlashMemoryin Exadata X4-2StorageServers 142 FlashMemoryin Exadata X5-2StorageServers 144

(6)

Flash Cache vs. Flash Disk 145

Using FlashMemoryasCache 146

Mixed Workload andOLTPOptimizations 150

Using FlashMemoryforDatabaseLogging 151

Using FlashMemorytoAccelerate Writes 153

MiscellaneousOtherWBFC-relatedOptimizations 155 How ESFC and ESFL Are Created 156

Enablingthe Write-back Flash Cache 158

FlashCacheCompression 162

ControllingESFCUsage 163

Monitoring

164

At theStorage Layer 164

Atthe DatabaseLayer 170

Summary

176

Chapter 6: Exadata Parallel

Operations

177

Parameters 177

Parallelizationat the StorageTier 180

Auto DOP 180

Operationand Configuration 181

I/OCalibration 184

Auto DOPWrap-Up 186

ParallelStatement

Queueing

186

The OldWay 187 The NewWay 187

ControllingParallelQueueing 190 ParallelStatementQueueing Wrap-Up 197

In-Memory

Parallel Execution 197

Troubleshooting

Parallel Execution 206

(7)

lCONTENTS

Chapter

7: Resource

Management

• 209

Consolidation 210

Typesof Database Consolidation 210

Instance

Caging

211

Configuring InstanceCaging 212

SettingCPU_C0UNT 213

InstanceCaging Usageand Results 213 InstanceCagingandMultitenancy 214

Over-Provisioning 214

Binding

Instances to

Specific

CPUs

Using Cgroups

215

Installation andConfigurationofCgroups 215

Oracle 12c

THREADED_EXECUTION

217

Managing

PGA

Memory

218

Database Resource

Manager

221

CreatingaCDB Resource Plan 222

Creatinga(Pluggable)Database Resource Plan 224

UsingtheSchedulertoChangetheResourcePlan 227

The Wait Event:resmgr: cpuquantum 228 Where to Go from Here 228 ResourceMappingPriorities 229 ResourceLimiting 229 OtherLimitingParameters 230 ConsumerGroup Mappings Using ORACLE_FUNCTION 231

Monitoringthe ResourceManager 232

ResourceManagerViews 233

I/O Resource

Manager

234

IORM Methods 235

How IORMWorks 236 IORM Architecture 236

IORMObjective 238

ConfiguringInterdatabase IORM 238

(8)

CategoryIORM 241 I/O ResourceManagerandPluggableDatabases 243 I/O ResourceManagerProfiles 243

Resource

Management

Directives Matrix 244

IORMMonitoringand Metrics 245

Summary 250

Chapter8:

Configuring

Exadata 251

Exadata Network

Components

251

TheManagementNetwork 252

The Client Access Network 252 The Private Network 252

About the

Configuration

Process 254

Configuring

Exadata 256

Step1:GatheringInstallationRequirements 256

Step2: Run Oracle ExadataDeploymentAssistant 257

Step3: Create Network VLANs and DNS Entries for Hostnames 285

Step4: Run CheckIP toVerify Network Readiness 285

Step5:Run Cables and Power to Exadata Racks 288

Step6: Perform HardwareInstallation 289

Step7:StageOneCommand Files and Oracle Software 289

Step8:ConfiguretheOperating System 291

Step9: Run OneCommand 294

Upgrading

Exadata 297

CreatingaNew RAC Cluster 298

UpgradingtheExisting Cluster 299

Summary

301

Chapter

9:

Recovering

Exadata • 303

Exadata

Diagnostic

Tools 303

SunDiagnostics: sundiag.sh 304

(9)

CONTENTS

Backing Up

Exadata 308

BackingUp the Database Servers 308

Backing UptheStorageCell 312

Backing

Upthe Database 316 Disk-BasedBackups 316

Tape-Based Backups 317

BackupfromStandbyDatabase 318

ExadataOptimizationsforRMAN 318

Recovering

Exadata 319

Restoringthe Database Server 320

RecoveringtheStorageCell 323

Summary 339

Chapter

10: Exadata Wait Events 341

Events

Specific

toExadata 342 The "cell" Events 343

PlanStepsThatTriggerEvents 344

Exadata Wait Eventsin the User I/O Class 346

cell smart tablescan 346

cell smart indexscan 350

cellsingleblockphysicalread 352

cell multiblockphysicalread 354

cell listofblocksphysicalread 355 cell smart file creation 356

cell statisticsgather 356 Minor EventsintheUser/10 Class 357

Exadata Wait Eventsinthe

System

I/OClass 358

cell smart incrementalbackup 358

cellsmart restore frombackup 360

Exadata Wait Events in the Other and Idle Classes 361

cell smart flash unkeep 361 EventMeaning 362 xiv

(10)

Non-Exadata-Specific

Events 363 directpathread 363

Enq:KO—fastobject checkpoint 364 reliablemessage 365

Resource

Manager

Events 366

resmgr.becomeactive 366

resmgncpuquantum 368

resmgr:pqqueued 369

Summary

370

Chapter

11: Exadata Performance Metrics 371

Measuring

Exadata's Performance Metrics 371

Revisiting

the

Prerequisites

for Exadata Smart Scans 374

Exadata SmartScan Performance 374

UnderstandingExadata Smart Scan Metrics and Performance Counters 378 Exadata Dynamic Performance Counters 378

When and How to Use Performance Counters 379 TheMeaningand Explanationof Exadata Performance Counters 383

Performance CounterReferenceforaSelected Subset 386

Understanding

SQLStatementPerformance 411

Querying

cellsrv Internal

Processing

Statistics 414

TheVSCELLFamilyofViews 415

The cellsrvstatutility 419

Summary

421

Chapter

12:

Monitoring

Exadata Performance 423 A Systematic

Approach

423

Monitoring

SQLStatement

Response

Time 424

MonitoringSQL Statements with Real-TimeSQLMonitoring Reports 425

(11)

mCONTENTS

Monitoring

the

Storage

Cell

Layer

441 AccessingCell Metrics intheCellLayer UsingCellCLI 442

AccessingCell MetricsUsingtheEnterprise ManagerExadataStorageServerPlug-In 443 Which Cell Metricsto Use? 449

MonitoringExadataStorageCellOS-Level Metrics 450

Summary

461

Chapter 13:

Migrating

toExadata 463

Migration

Strategies

464

Logical Migration

465

Extract andLoad 466

Copying Dataover aDatabase Link 472

Replication-Based Migration 486

Logical Migration Wrap Up 492

Physical

Migration

492

Backup

and Restore 493

FullBackupand Restore 493

IncrementalBackup 495

Transportable Tablespaces 497

Cross-Platform TTS with IncrementalBackups 500

Physical Standby ;..503

Wrap Up Physical MigrationSection 505

Summary

506

Chapter

14:

Storage Layout

507

Exadata Disk Architecture 507

FailureGroups 509

Grid Disks 512

StorageAllocation 514

Creating

Grid Disks 518

CreatingGrid Disks 519

Grid DiskSizing.... 520

CreatingFlashDisk-Based Grid Disks 524

(12)

Storage Strategies

525

Configuration Options 525

Isolating StorageCell Access 526

Cell

Security

528

CellSecurity Terminology .529

CellSecurityBest Practices 529

Configuring ASM-Scoped Security 530

Configuring Database-Scoped Security 531

RemovingCell Security 534

Summary

536

Chapter

15:

Compute

Node

Layout

537

Provisioning

Considerations 538

Non-RAC

Configuration

539

Split-Rack

Clusters 541

Typical

Exadata

Configuration

543

Multi-RackClusters 544

Summary

546

Chapter

16:

Patching

Exadata 547

Types

ofExadata Patches 548

Quarterly

Database Patch for Exadata 549

ApplyingaQDPE in Place 550

ApplyingaQDPEbyCloningHomes 553

Exadata

Storage

Server Patches 556

Applyingan ExadataStorageServerPatch 559

Upgrading Compute Nodes 565

UpgradingInfiniBandSwitches 568

ApplyingPatchestoStandby Systems 569

(13)

CONTENTS

Chapter

17:

Unlearning

Some

Things

We

Thought

We Knew 571

A Tale of TwoSystems 571

OLTP-Oriented Workloads 572

Exadata Smart Flash Cache(ESFC) 572

Scalability 573

Write-lntensiveOLTP Workloads 573

DW-OrientedWorkloads 574

EnablingSmart Scans 574

ThingsThat CanCripple Smart Scans 576

OtherThingstoKeepinMind 583

Mixed Workloads 590

To IndexorNot to Index? 591

The0ptimi2erDoesn'tKnow 594

Using ResourceManager 598

Summary

598

Appendix

A:CELLCLI and DCLI 599

An Introductionto CellCLI 599

Invokingcellcli 600

GettingFamiliar withcellcli 602

SendingCommands fromtheOperatingSystem 607

UsingcellcliXMLOutputin the Database 607

ConfiguringandManagingthe StorageCell 609

An Introduction to deli 610

Summary

612

AppendixB: Online Exadata Resources 613

My Oracle

Support

Notes 613

The Authors'

Blogs

615

(14)

Appendix

C:

Diagnostic Scripts

617

Appendix

D: exachk 621

An Introduction to exachk 621

Running exachk 622

SavingPasswords for exachk 625

Automatingexachk Executions 627

Summary 629

References

Related documents

Ø  A single Exadata storage server is also known as a “cell” Ø  A cell is the building block for the Exadata storage grid Ø  More cells provide greater capacity and

Exadata Performance – Smart Flash Cache..  Sql statement response

Keys to Speed and Cost Advantage Exadata Hybrid Columnar Compression Exadata Intelligent Storage Grid Exadata Smart Flash Cache.!. • Data Intensive processing runs in Exadata

The minimum requirements on the qualifications and experience of the key personnel of a registered specialist contractor in site formation works category (RSC(SF)) are given in

Prof. Wisnubroto Chairman of National Nuclear Energy Agency of Indonesia.. IAEA and the international experts have developed the concept of nuclear security culture and

First, the random matrix models are simple enough to provide analytical formulas relating observables like the microscopic level density of the Dirac operator to low energy constants

A failed save versus poison indicates that the character awakes weakened, as per the after-effects of raise dead, for 24 hours. There is a 50% chance of experiencing a

[r]