high availability group 08: võ Đức vĩnh50703006 nguyễn quang vũ50703033

49
High Availability Group 08: Group 08: Võ Đức Vĩnh Võ Đức Vĩnh 50703006 50703006 Nguyễn Quang Vũ Nguyễn Quang Vũ 50703033 50703033

Upload: georgiana-mason

Post on 17-Dec-2015

221 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

High AvailabilityGroup 08:Group 08:Võ Đức VĩnhVõ Đức Vĩnh 5070300650703006Nguyễn Quang VũNguyễn Quang Vũ 5070303350703033

Page 2: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Contents

Overview of High Availability1

Oracle High Availability Solutions2

High Availability Architectures3

Summarize, References, Q&A4

Đức Vĩnh

Quang Vũ

Page 3: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

High Availability (cont)High Availability (cont)

Timely and detection

Reliability

Recoverability

Continuous operations

Page 4: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

System changes

Data changes.

Computer failure

Storage failure

Human error

Site failure

Planned Downtime Unplanned Downtime

Causes of DowntimeCauses of DowntimeCauses of DowntimeCauses of Downtime

Data corruption

Page 5: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Database HA SolutionsOracle Database HA Solutions

Oracle Oracle Database Database

HA HA SolutionsSolutions

1 Oracle HA Features.Oracle HA Features.Oracle HA Features.Oracle HA Features.

2 Oracle HA Solutions for Planned DowntimeOracle HA Solutions for Planned Downtime

Oracle HA Solutions for Unplanned Downtime3

4 High Availability and Grid Computing.High Availability and Grid Computing.

5 High Availability Management.High Availability Management.

Page 6: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle HA Features

Oracle Real Application Clusters.Oracle Data Guard.Oracle Stream.Oracle Flashback Technology.Automatic Storage Management.Recovery Manager.Flash Recovery Area.Oracle Security Features.Fast-Start Fault Recovery.LogMiner.Hardware Assisted Resilient Data (HARD) Initiative.

Page 7: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Flashback Technology

Includes 4 features:Oracle Flashback Query.Oracle Flashback Versions Query.Oracle Flashback Transaction Query.Oracle Flashback Table.Oracle Flashback Drop.Oracle Flashback Database.Oracle Flashback Restore Points.

Page 8: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Automatic Storage Management

Provides file system and volume manager directly in the Oracle Kernel.

There are many advantages: mirror across drives and storage array, auto re-mirror...

Page 9: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Recovery Manager

To manage the backup, recovery of database.

It has also many benefits.

Page 10: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Flash Recovery Area

Provides:

1.Unified storage location of related recovery files.

2.Management of the disk space allocated.

3.Fast, reliable disk-based backup and restoration.

Page 11: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Security Features

Authentication control.Access control.Auditing control.Security policy management using profiles.Encryption, transferred data.

Page 12: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Fast-Start Fault Recovery

Predictable, bounded recovery from computer failures.

Database checkpointing to maintain desired recovery time objective.

Page 13: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

LogMiner

LogMiner is a tool related to SQL query, can used to:

1. Track or audit changes to data.

2. Provide supplemental information for turning and capacity planning.

3. Retrieve critical information for debugging complex applications.

4. Recover deleted data.

Page 14: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

LogMiner (cont)

Includes:

1. Pinpoint.

2. Determine the necessary actions.

3. Performance turning and capacity planning.

4. Perform post-auditing.

Page 15: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Hardware Assisted Resilient Data Initiative

Page 16: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

HA Solution for Unplanned Downtime

Page 17: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

HA Solution for Unplanned Downtime

Page 18: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

HA Solution for Unplanned Downtime

Page 19: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

HA Solution for Unplanned Downtime

Page 20: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

HA Solution for Planned Downtime

System changes:

- Dynamic Resource Provisioning.- Rolling Upgrades.

Data changes:- Online Reorganization and Redefinition.

Page 21: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

HA and Grid Computing

Page 22: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

High Availability Management

Oracle Enterprise Manager Grid Control (OEMGC) is a HTML-based user interface supporting the administrator.

Includes:-Oracle Management Service (OMS).-Oracle Management Agents.-Oracle Management Repository.

Page 23: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

High Availability Management

Some advantages of OEMGC:- Monitor components and be alerted.- View overall system status. - View alerts aggregated across all instances.- Set thresholds for alert generation.-Monitor performance metric.-Perform database cluster-wide operations.-Viewing hardware and operating system information.- Interconnect monitor

Page 24: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

www.themegallery.com

Oracle Database HA Architectures

HA Architectures

Choosing the correct High Availability Architecture

Page 25: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Database High Availability Architectures

Oracle Database 10gOracle Database 10g with RACOracle Database 10g with Data GuardOracle Database 10g with RAC and Data Guard

MAAOracle Database 10g with Streams

Page 26: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Database 10g

Stand-alone database on single computerUsing non-architecture high availability features:

Oracle Flashback Technology Automatic Storage Management Fast-Start Fault Recovery Recovery Manager Flash Recovery Area Online Reorganization and Redefinition

Page 27: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Database HA Architectures

Oracle Database 10gOracle Database 10g with RACOracle Database 10g with Data GuardOracle Database 10g with RAC and Data Guard

MAAOracle Database 10g with Streams

Page 28: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Database 10g with RAC

Real Application ClusterMultiple Oracle instances running on multiple

computerCluster definitionOracle ClusterwareShared-everything database

Page 29: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Database 10g with RAC

Page 30: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Database 10g with RAC benefits

Fault tolerance: Fast node and instance failover Planned node, instance switchover and switchbackPatch upgrades and Oracle Clusterware upgradesInstance availability and scalability in multiple

nodesAllows database restart or relocated in case of

failures

Page 31: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Database HA Architectures

Oracle Database 10gOracle Database 10g with RACOracle Database 10g with Data GuardOracle Database 10g with RAC and Data Guard

MAAOracle Database 10g with Streams

Page 32: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Database 10g with Data Guard

Production (primary) databaseStandby database: a copy of production

database Physical standby database Logical standby database

Switch role of databases in case of failure

Page 33: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Database 10g with Data Guard

ProductionDatabase

StandbyDatabase

WAN Traffic manager

Synchronization

Fix or maintenance

Page 34: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Database 10g with Data Guard

DatafilesOracle redo logsPhysical standby database:directly applies redo

to its datafilesLogical standby database: convert DML and

DDL operations to SQL statements

Page 35: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Database 10g with Data Guard

Page 36: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Data Guard Benefits

Physical standby database User errors and logical corruption Disasters and site failures Fast failover and switchover Reporting and testing purposes Backup from standby database Read-only capability

Logical standby database: Read-only and read/write capability Enable upgrades

Page 37: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Database HA Architectures

Oracle Database 10gOracle Database 10g with RACOracle Database 10g with Data GuardOracle Database 10g with RAC and Data Guard

MAAOracle Database 10g with Streams

Page 38: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Database 10g with RAC and Data Guard (MAA)

Maximum Availability ArchitectureCombination of RAC and Data GuardHaving 2 identical sites:

Primary site contains the RAC primary database Secondary site contains the RAC primary

database

Page 39: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Maximum Availability Architecture

Page 40: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Database HA Architectures

Oracle Database 10gOracle Database 10g with RACOracle Database 10g with Data GuardOracle Database 10g with RAC and Data Guard

MAAOracle Database 10g with Streams

Page 41: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Database 10g with Streams

Main usage: information sharing and distributionAlso provide highly available architectureBidirectional replication by messages:

LCR (Logical change record) User-defined messages

Messages are stored and processed in queue

Page 42: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Database 10g with Streams

Manual configurations: Rules determining which message to capture Rules determining how messages are processed Routing of change records

Support heterogeneous platforms.

Page 43: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Oracle Database 10g with Streams

Page 44: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Choosing HA Architecture

Oracle Database 10g with RAC if: Maximum Recovery Time Objective (RTO) for

instance or node failure is in seconds or minutes Database scalability beyond one instance or

node is requiredOracle Database 10g with Data Guard if:

Maximum RTO for instance or node failure is in seconds to minutes or more

Maximum RTO for data corruption or site failure is less than 1 minute to five minutes

Page 45: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

MAA if: Projected planned maintenance is in hours or

less for each year Both RAC and Data Guard are required

Oracle Database 10g with Steams if Heterogeneous solution is required

Choosing HA Architecture

Page 46: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Recovery Times for Unplanned Outages

Page 47: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

Recovery Times for Planned Outages

Page 48: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033

References, Q&A

[1] Oracle Database High Availability Overview 10g release 2 (10.2) B14210-02.

[2] http://www.google.com

Key word: High Availability.[…].

Page 49: High Availability Group 08: Võ Đức Vĩnh50703006 Nguyễn Quang Vũ50703033