27
Tom Hamilton – America’s Channel Database CSE Oracle Archite cture 1

Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Embed Size (px)

Citation preview

Page 1: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Tom Hamilton – America’s Channel Database CSE

Oracle Architecture

1

Page 2: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Common Oracle Versions

Oracle 8i (no SMO support)Oracle 9i (no SMO support 3.3 or later)Oracle 10gOracle 11gComing attractions

– Oracle 12c – not released by Oracle yet

2

Page 3: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Oracle Components

Database filesAutomatic Storage Management (ASM)Real Application Cluster (RAC)ProtocolsDisaster Recovery

3

Page 4: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Oracle Database Files

4

Storage System

Page 5: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Oracle Database Files

Binaries Configuration filesDatafiles Temporary database files Redo log files Archive redo log files Cluster-related files

5

Page 6: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

What’s a Block?

The basic unit Oracle uses to manage data.Typically 8k in size.Some data warehouses or any other

database with a lot of long sequential reads will have 16k or 32k.

You can have a database with mixed block sizes, but it is very rare

6

Page 7: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Block Structure. It has a header that

contains a database address, SCN number, checksum, etc.

It has a tail with more metadata about the block.

Not a good candidate for deduplication.

7

Page 8: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Block Structure: Deduplication

8

The header should be globally unique in the whole database, meaning that first 4k WAFL block will have

no duplicates. The tail is not 100%

unique, but it’s highly variant, meaning that final 4k WAFL block will have very few

duplicates.

Page 9: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

NetApp Deduplication and Data Compression Sample Use Cases and Space Savings

9

Legend

Compression & Deduplication

Deduplication Only

Compression Only

Neither

Page 10: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Oracle Database Backup and Recovery

Backup and recovery– Archivelog mode

Control files Redo logs Archive logs SCN Benefits Consequences

– Non-Archivelog mode Control files Redo logs Benefits Consequences

10

Page 11: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Oracle Database Backup and Recovery

11

Page 12: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Automatic Storage Manager

What is it? Features

Mirroring and Striping Dynamic Storage Configuration Interoperability with non-ASM databases RAC and single instance

Components Disk Groups Disks Failure groups Files Templates

NetApp interoperability

12

Page 13: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

NetApp Adds Value to Oracle ASM

Oracle ASM NetApp Oracle ASM + NetApp

Data Resilience

Protect against Single Disk Failure Yes Yes Yes

Protect against Double Disk failure No Yes Yes

Passive Block corruption detection Yes Yes Yes

Active Block corruption detection Yes Yes Yes

Lost disk write detection No Yes Yes

Performance

Stripe data across ASM Disks Yes No Yes

Balance I/O across ASM Disks Yes No Yes

Stripe data across Physical Disks No Yes Yes

Balance I/O across Physical Disks No Yes Yes

I/O prioritization No Yes Yes

Storage Utilization

Free space management across physical disks

No Yes Yes

Thin provisioning of ASM Disks No Yes Yes

Space efficient Cloning No Yes Yes

Data Protection

Storage Snapshot based Backups No Yes Yes

Storage Snapshot based Restores No Yes Yes

13

Page 14: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

ASM versus FC: IO Layers

14

Page 15: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Real Application Cluster

Shared databaseCluster-aware storage

– ASM– Oracle Cluster File System (OCFS)– NFS– Raw devices

Distance between RAC nodes

15

Page 16: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Oracle RAC

16

Page 17: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Introducing Oracle dNFS

Collaborative solution from NetApp & OracleNFSv3 client within Oracle RDBMS serverNFS files accessed directly from OracleEliminates extra O/S NFS client code pathOptimized NFS code path for database I/O

patterns via direct I/O and asynchronous I/O support

17

What is Direct NFS client?

Page 18: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Introducing Oracle dNFS

Eliminates the need for NFS mount optionsStandard NFS client implementation across all

platforms supported by the Oracle Database, even Windows.

No infrastructure changes are required to change from kNFS to dNFS.

18

What is Direct NFS client?

Page 19: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

19

dNFS Optimizes Oracle I/O Traffic

19

TCP / IP layer

Driver + NIC HW

FS layer

NFS client

TCP / IP layer

Driver + NIC HW

Traditional NFS I/O Direct NFS I/O

dNFS

1122

33 OS

Dat

ab

ase

Extra layers1

2

3

Not optimizedfor Oracle

Extra networktraffic Storage

Page 20: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Oracle dNFS Innovation

Scales across 4 separate network paths between DB host & NFS server

Load balances across available pathsScales linearly with number of pathsHigh Availability across pathsTested with NetApp VIF technologyNo configuring O/S LACP bonding

20

dNFS is scalable, reliable, & easy to use!

Page 21: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Improved Scalability with dNFSPerforms on par with blocks protocolsHigher concurrent access to NFS server

21

Page 22: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Protocols

FCP/FCoEiSCSINative NFSDirect NFS (DNFS)DO NOT USE CIFS

22

Page 23: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Performance Considerations

FCP/FCoEiSCSINative NFSDirect NFS (DNFS)Which one do you choose?

– The customer is always right– Current infrastructure– Expertise level– Requirements– DO NOT GET IN A PROTOCOL WAR!

23

Page 24: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Performance Considerations – TR3932

24

Page 25: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Performance Considerations – TR3932

25

Page 26: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1

Oracle Disaster Recovery Methods: Data Guard

Data availability, data protection and disaster recovery solutionWhat:•Replicates Oracle databases from one data center to another•Ability to perform backups from the standby database instead of the production database•Both physical and logical versions

Image from Oracle Corp

Page 27: Tom Hamilton – Americas Channel Database CSE Oracle Architecture 1