Professional Documents
Culture Documents
Wei Hu
wei.hu@oracle.com
Oracle’s High Availability (HA)
Solution Stack
System Real Application Clusters
Failure Continuous Availability for all Applications
2
Oracle Data Guard Focus
– Data Protection
– Data Availability
– Data Recovery
3
What Is Oracle Data Guard?
4
Data Guard Architecture Overview
Clients Clients
Primary Standby
Site Site
Data Changes
Broker Agent
Broker Agent
Data Guard Broker
Primary Standby
Database Database
5
How Does It Work?
y As primary database is modified, redo data is
propagated to standby databases
6
Data Guard Configuration
Primary Site Standby Site A
Standby Site B
Standby
Database
Primary
Database Standby
Database
7
Oracle Data Guard Architecture
Physical Standby
Database
Sync or Async
Redo Shipping Backup
Production
Database Redo Apply
DIGITAL DATA STORAGE
Network
DIGITAL DATA STORAGE
Broker
Optional
Delay
Logical Standby
Transform Database Open for
Redo to SQL Reports
SQL
Optional Apply
Additional
Delay Indexes & MVs
8
Oracle Data Guard Process Architecture
Oracle Net Physical/Logical
Transactions Standby
Database
LGWR
(Synchronous/Asynchronous) MRP/ LSP
RFS Affirm/
NoAffirm
9
Data Guard Redo Apply
Data Guard Broker
Redo Apply
Sync or Async
Redo Shipping
10
Data Guard SQL Apply
Additional
Indexes &
Data Guard Broker Materialized Views
Primary
Database Logical Standby
Database
Optional
Delay
Continuously
Network Open for Reports
Sync or Async
Redo Shipping Transform Redo
to SQL and Apply
11
Standby Databases Are Not Idle
Standby
Server Read-Only / Read-Write
Reporting
Backups
Standby Tape
Database
12
Cascaded Redo Log Destinations
y Standby database receives its redo data from another standby database
and not from the original primary database
y Primary database sends a set of redo data to only selected standby
databases and not to all standby databases
y Reduces the load on the primary system, and also reduces network
traffic and use of valuable network resources around the primary site
13
Protection from Human Errors
and Data Corruptions
Primary Site Standby Site
Standby
Production
Database
Database
Optional Delayed Apply
14
Switchover and Failover
y Primary and Standby role transitions
y Switchover
– Planned role reversal
– No database reinstantiation required
– Used for maintenance of OS or hardware
y Failover
– Unplanned failure (e.g. disasters) of primary
– Primary database must be reinstantiated
y Initiated using simple SQL / GUI interface
y Data Guard automates the processes involved
15
Failover Example
16
Flexible Data Protection Modes
17
Maximum Protection Mode
18
Maximum Availability Mode
19
Maximum Performance Mode
20
Automatic Gap Resolution &
Resynchronization
y Network connectivity problems may cause gaps in
the sequence of log files in the standby
y Data Guard automatically takes care of these gaps
– Automatic Gap Handling
– FAL (Fetch Archive Log) Gap Handling
21
GAP Resolution
y Automatic
– ARCH process idling away on the primary ‘pings’ all enabled
standbys on a regular basis to see if they are missing any redo
data
– If so it sends them the missing redo data
y FAL
– Gap discovered during apply process in physical standby
– Based on FAL_SERVER and FAL_CLIENT settings, primary
notified, and it sends missing redo data
22
Oracle Data Guard Broker
23
Data Guard Broker Architecture
Job Event Security Discovery
Service Service Service Service
Data Guard
Manager
24
Data Guard Manager
25
Local and Remote Standby Databases
y Oracle Data Guard configuration can support both local and
remote standby databases
26
Usage Examples
Chicago Dallas Example B
Primary Primary
Standby Database
Primary Site A Standby
Database Database Database
Standby
Database
Primary Primary
Example A Site C Database
Standby Site
27
Usage Examples
Standby Site A Synchronous transport
Primary Site LAN attached
Used to offload backups
First choice for switchover candidate
Standby
Database
Standby Site B
Primary
Database
Synchronous transport
LAN attached
Used to offload reporting
Standby
Database
Standby Site C
Standby
Database
Example C Asynchronous transport
WAN attached
Delayed apply
Provides DR and data protection
28
Data Guard and RAC
y Data Guard and Real Application Clusters are complementary and
should be used together for a Maximum Availability Architecture
29
Data Guard and Streams
y Streams and Data Guard are independent features of Oracle Database
Enterprise Edition, based on some common underlying technology
30
Financial Services Company Using Data Guard & Streams
Streams
Master for information
Database distribution
Data Feed
31
Data Guard and Remote Mirroring
32
Data Guard and Remote Mirroring
y Better protection
– Redo is validated logically
y Greater efficiency
– Only redo is transferred instead of entire disk
block (7x bandwidth savings, 27x network I/Os)
y Cheaper
– No reliance on specialized hardware
y Remote mirroring is useful for non-Oracle
data
33
Why Oracle Data Guard?
1. Disaster Recovery & High Availability
– Easy failover/switchover between primary and standby databases
34
Resources
y HA Portal on OTN: http://otn.oracle.com/deploy/availability/
35