Вы находитесь на странице: 1из 66

<Insert Picture Here>

Oracle Database 11g Release 2: Maximum Availability Architecture



Oracle
vadim.gousev@oracle.com

: Oracle (HA)
HA Oracle 11g Release 2
Maximum Availability Architecture (MAA)

&

Oracle HA
1.

2.

online

3.
HA

4.

Oracle

Show me the money!

HA Oracle
!

Real Application Clusters

Flashback
RMAN & Oracle Secure Backup
ASM
Data Guard
Streams

Online Reconfiguration
Rolling Upgrades

Online Redefinition

Edition-based Redefinition

Oracle MAA Best Practices

Real Application
Clusters (RAC)

Real Application Clusters



HR

SALES

ERP




HA

8

ADDM RAC

ADDM

ADDM

.1
AWR
1

.2
AWR
2

.3
AWR
3




, ..

/,
SQL


AWR

New in 11.2

RAC One Node



Omotion

, shutdown
transactional


HA



10 10


Ref. http://www.oracle.com/technology/products/database/clustering/pdf/ug_raconenode-2009.pdf

10

RAC One Node

Server A

DB1

Server B

DB2

DB3

Server C

DB4

DB5

Shared Storage

Single Cluster
11

RAC One Node

Server A

DB1

Server B

DB2

DB3

DB1

Server C

DB4

DB5

DB2

Common Shared Storage

5 core limit

3 core limit

Single Cluster
12

Omotion
Client Connections
Server A

DB1

Server B

DB2

DB3

Server C

DB4

DB5

Common Shared Storage

Single Cluster
13

Omotion
Client Connections
Server A

DB1

Server B

DB2

DB2

DB3

Server C

DB4

DB5

Common Shared Storage

Single Cluster
14

Omotion
Client Connections
Server A

DB1

Server B

DB2

DB2

DB3

Server C

DB4

DB5

Common Shared Storage

Single Cluster
15

Omotion
Client Connections
Server A

DB1

Server B

DB2

DB2

DB3

Server C

DB4

DB5

Common Shared Storage

Single Cluster
16

Omotion
Client Connections
Server A

DB1

Server B

DB2

DB3

Server C

DB4

DB5

Common Shared Storage

Single Cluster
17

Online Rolling Patches


Client Connections
Server A

DB1

Database
Binaries

Server B

DB2

DB3

Server C

DB4

DB5

Common Shared Storage

Single Cluster
18

Online Rolling Patches


Client Connections
Server A

Server B

Server C

Patch
DB1

Database
Binaries

DB2

DB3

DB4

DB5

Common Shared Storage

Single Cluster
19

Online Rolling Patches


Client Connections
Server A

DB1

Patched
Database
Binaries

Server B

DB2

DB3

Server C

DB4

DB5

Common Shared Storage

Single Cluster
20

Online Rolling Patches


Client Connections
Server A

DB1

Server B

DB2

Patched
Database
Binaries

DB2

DB3

Server C

DB4

DB5

Common Shared Storage

Single Cluster
21

Online Rolling Patches


Client Connections
Server A

DB1

Server B

DB2

Patched
Database
Binaries

DB2

DB3

Server C

DB4

DB5

Common Shared Storage

Single Cluster
22

Online Rolling Patches


Client Connections
Server A

DB1

Server B

DB2

Patched
Database
Binaries

DB2

DB3

Server C

DB4

DB5

Common Shared Storage

Single Cluster
23

Online Rolling Patches


Client Connections
Server A

DB1

Server B

DB2

Patched
Database
Binaries

DB3

Server C

DB4

DB5

Common Shared Storage

Single Cluster
24

Cluster Failover

Server A

DB1

DB2

Server B

DB3

Server C

DB4

Common Shared Storage

Single Cluster
25

Cluster Failover

Server A

DB1

DB2

Server B

DB3

Server C

DB4

Common Shared Storage

Single Cluster
26

Cluster Failover

Server A

DB1

Server B

DB2

Server C

DB3

DB4

Common Shared Storage

Single Cluster
27

RAC One Node



, ,

Oracle VM

- cold-failover cluster
(migration, online maintenance)


RAC


Single-instance and RAC -


RAC One Node Option 2
, RAC Option

28

Flashback
RMAN
Oracle Secure Backup
ASM
Data Guard
Streams

29

Flashback:

Flashback
Query

Flashback
Table

Flashback
Transaction

Flashback
Database

30



Flashback

80
60
40
20
0

Flashback

()

Correction Time = Error Time + f(DB_SIZE)


Flashback


2%

31

Flashback Database

32


,
Oracle Enterprise
Manager

Recovery Manager (RMAN)



Oracle Secure
Backup

RMAN

Tape Drive

Fast Recovery
Area
Data Files

Cloud

,
, Fast
Recovery Area Oracle Secure
Backup

36

New in 11.2

RMAN

:

RMAN

[BASIC] | HIGH | MEDIUM | LOW


HIGH 40%+

LOW
MEDIUM

HIGH | MEDIUM | LOW Advanced Compression Option

37

3500
3000
2500

GB

2000
1500
1000
500
0
No Compression

10g Compression

11g Compression

38



Slow I/O (Tape)
11g
2.5
10g

250
200
150
100
50
0
No Compression

10g Compression

11g Compression

39

Oracle Secure Backup


Oracle Enterprise
Manager

Oracle Secure Backup


File System Data

Oracle Database


Oracle

RMAN Integration

25 40%

4
Tape
Library

Virtual
Tape
Library
(VTL)


Oracle 9i11g

40

Oracle Secure Backup Cloud Module


Database Files /
Fast Recovery Area

RMAN

Compression /
Encryption

Oracle Secure
Backup Cloud
Module

Amazon S3

Oracle Secure Backup Cloud module: Amazon Cloud




Amazon S3 uptime SLAs

$3,500 RMAN
: http://www.oracle.com/technology/tech/cloud/index.html
41

Automatic Storage Management (ASM)


New in 11.2


Database

3rd Party FS

Application

Automatic Storage Management (ASM)


ASM Instance
Managing Oracle DB
Files

ACFS Snapshot
ASM Cluster & Single
Node File System
(ACFS)
Dynamic Volume Manager

ASM
Disk
Group

DB Datafiles, OCR and Voting Files

Oracle Binaries

3rd Party File Systems

ASM , ,

42



,
*

, , ,
, , -, ,
, , ,
, &
,



* Hard Disk Drives the Good, the Bad & the Ugly, ACM Queue, Sep/Oct 2007,
http://queue.acm.org/detail.cfm?id=1317403

43



Oracle


RMAN
ASM
Data Guard
44

Active-Active

Data Guard
GoldenGate
Streams

45

Standby Database
Oracle Data Guard
Real-time
Queries

Production
Database

Standby
Database

Physical standby
, backup, primary
46

Oracle Active Data Guard


Standby

Real-time
Queries

Production
Database

Standby
Database

read recovery

47

Oracle Snapshot Standby


standby production

Real-time
Queries

Production
Database

Snapshot Standby
Database

standby
Oracle Database, ..

48

Oracle Snapshot Standby


Physical Standby

Snapshot Standby

Physical Standby
Snapshot Standby

SQL> ALTER DATABASE CONVERT TO
SNAPSHOT STANDBY;




SQL> ALTER DATABASE CONVERT TO
PHYSICAL STANDBY;


storage snapshots, :


49

Data Guard 11.2


Active Data Guard:

(SLA) Standby
30- Standby
(failover)

Role-based
ONS DG
(failover)
Standby : JDBC, OCI, ODP.Net
switchover RAC
Max Availability  Max Protection
redo-
SQL Apply : OLTP , SecureFiles,
logical standby Streams

50

Active Data Guard



30-
Active standby

Queries

Updates

Queries
Queries
Queries


active standby
databases

Oracle RAC
Queries

Production
Database

53


(Query SLA)
Session setting: STANDBY_MAX_DATA_DELAY
NONE: apply lag
(Default)
Non-zero (seconds):
STANDBY_MAX_DATA_DELAY.


ORA-03172: STANDBY_MAX_DATA_DELAY of 2 seconds exceeded


Zero:
,
, ORA-03172
Maximum Availability Real-Time Apply
54

New in 11.2


Active Data Guard
Oracle ,

Standby, (
)

Read/Write
Workload

Real-time
Reporting
Continuous redo
shipping, validation & apply

Primary
Database

Active Standby
Database

55

Automatic Client Failover


High Availability


Data Guard Broker Fast Application Notification
Fast notification of
application clients
FAN
enabled
JDBC and
OCI clients

Automatic
redirection to new
primary database

Wide Area Network (ASYNC)


Primary
Database

Auto-start of
primary database
services

Standby
New
Primary
Database
Database

57

Amazon.com

End-to End Failover Time


Data Guard HA/DR
Database failover: 20 secs
Apps redirected: 2 mins
Standby site distance: 15 miles

60

M inu tes

50
40

Resolve
Respond
Identify

30
20
10
0

Before
Data Guard

Data Guard
Automatic Failover
59

Oracle Streams
Oracle

Propagate

Redo
Logs

Capture

Apply1
Apply2


Transparent

Gateway

Non-Oracle
n-way, hub & spoke,
Database
/ /
HA ,

60

Oracle GoldenGate
Oracle


BI, EPM,
Exadata

Real-time
information

Real-time Access

400 4,000+
Fortune 500:

3 5
3 3 ATM
7 10
4 5
3 5

62

GoldenGate

::
 Oracle
 DB2
 Microsoft SQL Server
 Sybase ASE
 Teradata
 Enscribe
 SQL/MP
 SQL/MX

Windows 2000, 2003, XP


Linux

, +:
 HP Neoview, Netezza, Greenplum, and
any ODBC compatible databases
 ETL products
 JMS message queues
 MySQL
 TimesTen

Sun Solaris
HP NonStop
HP-UX
HP TRU64
HP OpenVMS
IBM AIX
IBM z/OS

63

GoldenGate Streams

Oracle GoldenGate

Oracle Streams

GoldenGate
Oracle
Streams
Streams
GoldenGate

64

Online Reconfiguration
Rolling Upgrades

Online Redefinition

Edition-based Redefinition

66


one-off
Oracle
Linux x86 (32 & 64-bit)

one-off
RAC ( 10g)

,
,
Data Guard
/GoldenGate/ Streams

/

Data Guard / GoldenGate / Streams

68

Online Redefinition
online
Create new index, move index, defragment index

online

, ,

, , - SQL Select

Source
Table

Continuous
Queries &
Updates

Copy
Table

Update
Tracking

Transform
Result
Table
Store
Updates

Transform
Updates

GUI
interface
to make it
Simple

69

New in 11.2

70

New in 11.2

Edition-based Redefinition
?
Post-upgrade Edition


:
Edition
Editioning View
Crossedition Trigger


Crossedition
,
Triggers


/
Pre-upgrade Edition

Editioning view

Crossedition trigger

71

Maximum Availability Architecture (MAA) Advisor

72

Automated:
Storage
Memory
Statistics
SQL tuning
Backup and Recovery
Advisory:
Indexing
Partitioning
Compression
Availability
Data Recovery

73

Oracle HA: Customer Success Stories

Allstate - Oracle Maximum Availability Architecture with Oracle RAC, ASM, Data Guard, RMAN, Flashback
Amazon.com - Automatic Failover using Data Guard Fast-Start Failover
Amtrust Bank - Oracle Database Maximum Availability Architecture & Zero Data Loss
Bonnier - Site migration with Oracle Streams
CERN - Oracle Streams for the Large Hadron Collider at CERN
Commonwealth Bank of Australia - MAA with Oracle RAC, Data Guard, ASM, RMAN, and Grid Control
ChevronTexaco - RMAN DUPLICATE DBA Time Saver to the Rescue
Chicago Stock Exchange - Expects 171% ROI in Five Years from Oracle Enterprise Grid Computing
CSX - Online RMAN Backups Protect over 16TB of Data
Dell - Dell Consolidates European Support System with Oracle Enterprise Grid on Dell
E-Rewards - HA and synchronization of Data Warehouse and OLTP databases using SQL Apply and MAA
Fidelity National Financial - MAA for 12TB database with primary and standby data centers separated by 750 miles
The Hartford - Incrementally Updating Transportable Tablespaces using RMAN
Intermap Technologies - Using an Active Data Guard 11g standby for secure 24x7 Internet access
Kemira GrowHow Ltd, UK - Replacing Outsourced Disaster Recovery Services with Oracle Data Guard
KLM - KLM Royal Dutch Airlines Eliminates Costly Downtime with Grid Solution
NeuStar - Synchronous Zero Data Loss Protection with Production and Standby Databases Separated by 300 Miles
Nokia - The use of RMAN within Nokia's Oracle Database 11g MAA Architecture
Oracle Global IT - Saving over $300,000 with Oracle Secure Backup
Public Trust - Low cost grid for SMB: Data Guard, RAC, RMAN, ASM, Oracle Application Server, Grid Control
Starbucks - Enterprise data warehouse (EDW) VLDB backup and recovery architecture
Starwood Hotels - RMAN in Oracle Database 10g Best Practices for Maximum Benefit
USA Today Data Protection and Availability for Mission Critical Publishing System
and many more*
Yahoo - MAA with Oracle RAC (16 nodes) and Data Guard
Volkswagen Group Streams Hub & Spoke Architecture with Data Guard Standby Database

* http://www.oracle.com/technology/deploy/availability/htdocs/HA_CaseStudies.html

74


Oracle.com:
http://www.oracle.com/ha

Oracle HA Customer Success Stories on OTN:


http://www.oracle.com/technology/deploy/availability/htdocs/HA_CaseStudies.html

Maximum Availability Architecture (MAA):


http://otn.oracle.com/goto/maa

MAA Assessment:
http://www.oracle.com/goto/hasurvey

81

QUESTIONS
ANSWERS

82

83

Оценить