Professional Documents
Culture Documents
2
What is a Disaster?
3
Disaster
At a Financial Services Company
4
So What Happened?
5
What is Oracle Data Guard?
Best Data Protection and Availability for Oracle Databases
Data Guard
Primary Site Standby Site
Physical
Primary or Logical
Database Standby
Database
6
Data Guard
Essential for High Availability Data Guard Capabilities
7
Agenda
8
Data Guard Architecture
Overview
3 2
9
Synchronous Transport
Zero Data Loss - SYNC
User Transactions
Queries, Updates, DDL
Comm
Co
it
Active
m
it
Primary
A
Standby
CK
Online
Redo Logs Database
SGA
LGWR
Standb
y
Redo Redo
Buffer
Logs
NSS RFS MRP
Oracle Net
Primary
Database
Queries, Reports
Testing & Backups
10
Asynchronous Transport
ASYNC
User Transactions
Queries, updates, DDL
commitDDL
Co Online
updates,
m Redo
m Logs
it
AC Active
User
K
Standby
Queries,
Database
LGWR
SGA
Redo MRP
NSA RFS
Buffer LSP
11
Redo Transport vs. Protection Mode
Protection Mode Controls Response to Failure Events
12
Automatic Gap Resolution
Active
Oracle Net Standby
Transactions
Database
Redo
Buffer SYNC NSA MRP
RFS
SGA
ASYNC NSS LSP
LGWR Standb
Primary Online y
Redo Redo
Database Logs Logs
Queries
ping ARCH Reports
ARCH RFS Testing
Backups
Archived
Redo Logs
13
Conserve Bandwidth, Improve RPO
Transport Compression - Advanced Compression Option
2500
Uncompressed
2000 22 MB/sec
Compressed
1500 12 MB/sec
Transport
Lag - MB
1000
Test Details
500 • Asynchronous
• 12.5MB/sec bandwidth
0 • 22MB/sec redo rate
Elapsed time - minutes • 50% compression ratio
14
Agenda
15
Data Guard 11g Redo Apply
Simple and Fast – An Exact Replica of the Primary Database
16
Data Guard Redo Apply Performance
On Exadata Storage Server
Two Terabytes/hour
17
Data Guard Apply Validation
Best Possible Protection for the Oracle Database
18
Lost Writes
19
Lost Write Happens
As Reported in SR - Oracle Database 10g Release 2
20
Lost Write Protection in Data Guard 11g
Capability Unique to Oracle Database
21
Agenda
22
What is Active Data Guard 11g
Utilize Physical Standby Database to Offload Primary
Read-write
Workload Fast Incremental Real-time
Real-time
Backups ReportingQueries Fast Incremental
Real-time
Backups
Reporting
Continuous redo
shipping, validation & apply
23
Improve Performance for all Workload
3500
• Double read-write
3000 throughput
Transactions / sec
2500
2,610 • Increase read-only
2000 standby throughput by 70%
24
Active Data Guard
Queries Return Up-to-date Results
1.2
0.8
Seconds
0.6
0.4
0.2
0
6:24:34
6:24:52
6:25:10
6:25:28
6:25:46
6:26:04
6:26:22
6:26:40
6:26:58
6:27:16
6:27:34
6:27:52
6:28:10
6:28:28
6:29:04
6:29:22
6:29:40
6:29:58
dw4
6:24:16
6:28:46 25
Active Data Guard 11g Release 2
Scale Read Performance
Queries
Queries
Updates
Queries
Queries
Queries
Production
Database
26
Active Data Guard Query SLA
Automatically Monitor and Respond to Apply Lag
Read/Write Real-time
Workload Reporting
27
Active Data Guard Auto Block Repair
High Availability by Repairing Corruptions Online
Read/Write Real-time
Workload Reporting
Continuous redo
shipping, validation & apply
28
Agenda
29
Oracle Enterprise Manager
HA Console
30
Oracle Enterprise Manager
Data Guard Management Page
31
Switchover and Failover
• Switchover
• Planned role reversal, never any data loss
• No database reinstantiation required
• Used for database upgrades, tech refresh, data center moves, OS
or hardware maintenance …
• Failover
• Unplanned failure of primary
• Use Flashback Database to reinstate original primary
32
Reduce Unplanned Downtime
Data Guard 11g Fast-Start Failover
33
Application Failover
Application Tier is Still Viable
Primary Site Standby Site
3 FAN breaks clients out
Application Tier - Oracle of TCP timeout,
Application Server Clusters
TAF/FCF automatically
reconnect applications
to new primary
2 Role
specific
database
Database Tier- Oracle services start
Real Application Clusters automatically
(11.2)
Database Data Guard
1 Data Guard
Automatic
Services RedoFailover
Transport Standby
Standby
becomes
Database
Primary
primary
Database
database
34
Complete Site Failover
35
Agenda
36
Reduce Planned Downtime
General Process
37
Technology Refresh and Migrations
Using Redo Apply – Physical Standby
38
Technology Refresh and Migrations
Using SQL Apply – Logical Standby
39
Database Rolling Upgrades
40
Example
Database Rolling Upgrade with Physical Standby
Database A Database B
Install new Oracle version in seperate
homes on A & B, set guaranteed PROD synchronize REDO
restore point (GRP) on A APPLY
41
Data Guard Snapshot Standby
Implement Changes with Confidence – Use as Test System
Updates Queries
Updates
redo Replay
data
workload
using
Primary Active
ActiveStandby
Standby
Database
Snapshot Standby Real
Database
Database Application
Testing
42
Agenda
43
Allstate Insurance
Next Generation Claims Applications
Primary Site
• Next generation architecture
Oracle RAC
ASM • Consolidation of 70+ legacy claims apps
Flashback
RMAN running on multiple mainframe & SQL
Data Guard Server databases into a scalable
Grid Control
architecture based on Oracle MAA
• 10,000 users at full roll-out
Data Guard
• MAA benefits
• Better than mainframe availability
Remote Recovery Site
• Scales to handle peak workload
Physical Standby • Transparent to most failures
- DR
- Testing • Fast recovery where not transparent
- Offload reporting
using Active Data
• Best protection from physical corruptions
Guard (future)
44
Apple Inc
Reader Farm Scale Out using Active Data Guard
Primary ADG 1
Database
L App 1
ADG 2 o
a
SYNC
d App 2
ADG 3
ASYNC
B App 3
a
l
ADG 8
a
n
c
ADG 9 e
r
App n
45
Mercadona – Spain
Regularly Validate DR Readiness
1,267 supermarkets, $14 billion
(euro), 60,000 employees
Primary Site
Network to
• Two new data centers, 350km apart
standby site
>
• Symmetric configurations
• Test/QA in standby data center
• Oracle Database 11.1.0.7
• 25 databases, 10.6TB of data
• Oracle WebLogic Server
• 99+ different applications
WebLogic Server
DR - MIRRORING • Data Guard 11g
• Maximum Performance, ASYNC
Oracle Database
DR - DATA GUARD • Data Guard Broker
• 30MB/second redo generation
• Data Guard switchover across data
centers enables easy DR testing
every 4 months
46
Amazon.com
Data Guard Fast-Start Failover
30
• Current Data Guard Status
20 • 350 standby databases
10 • 150 configured for automatic
failover
0
Before Data Guard
Data Guard Automatic Failover
47
State of Connecticut
Increasing PeopleSoft Availability and Data Protection
PeopleSoft
Midtier HRMS 11i Web/Forms/PCP
Finance EPM Portal
RAC Database
Oracle Database 11g
on Linux Data Guard
Primary Site SYNC Secondary Site
6-node Dell PowerEdge 4-node Dell PowerEdge
“The State of Connecticut was able to satisfy its demands for increased system
availability and reliability by deploying its PeopleSoft system on Oracle RAC with a
Data Guard physical standby database.” Angelo Romano, IT Manager
48
Resources
• Data Guard Technical White Paper
http://www.oracle.com/technology/deploy/availability/pdf/twp_dataguard_11gr2.pdf
• HA Best Practices Documentation
http://www.oracle.com/pls/db111/portal.portal_db?selected=14&frame=
• Data Guard Technical Information and Best Practices
http://www.oracle.com/technology/deploy/availability/htdocs/DataGuardOverview.html
• HA Customer Case Studies
http://www.oracle.com/technology/deploy/availability/htdocs/HA_CaseStudies.html
• Maximum Availability Architecture Best Practices
http://www.oracle.com/technology/deploy/availability/htdocs/maa.htm
• Data Guard and GoldenGate
http://www.oracle.com/technology/deploy/availability/htdocs/dataguardgoldengate.html
• Live Active Data Guard Hands-On Lab Exercises Via Amazon Cloud
http://www.oracle.com/technology/deploy/availability/htdocs/adg_hol_2009.html
49
Appendix – Additional Slides
50
Intermap Technologies Inc.
Active Data Guard 11g - Secure Access to Real-time Data
51
MorphoTrak
Cut $100,000 in System Cost with Active Data Guard
Site A Site B
Read-write transactions Read-only transactions
Primary
Database Active
Data Guard Maximum Availability - SYNC
Data Guard
2-node RAC Zero data loss - automatic database failover Standby
Oracle Database
11.1.0.7
52
United Parcel Service Proof of Concept
Data Guard 11g Reduces Downtime for Upgrades by 93%
53 53
Oracle IT
Scale Beehive Office Applications to 95,000 Users
54
Data Guard 11g New Features Summary
Data Guard 11g Release 1 Data Guard 11g Release 2
• Real-time Query • Automatic Block Repair
• Block change tracking on Active standby • Active Data Guard Query SLA
• Snapshot Standby • Primary with 30 standbys
• Fast-Start Failover supports ASYNC • Parallel local & remote SYNC transport
• ASYNC redo transport enhancements • Retrieve redo from primary at failover
• Redo transport compression for gaps • Improved client failover automation
• 100% increase in apply performance • Role-based services
• Data Guard broker enhancements • Broker support for ONS
• Rolling upgrades for physical standbys • Support auto-client failover for logical
• More mixed primary/standby configurations standby for JDBC, OCI, ODP.Net
• Lost-write protection • No shutdown of RAC instances in physical
• SSL authentication in lieu of password file standby for switchover
• • No shutdown to move from Max Availability to
SQL Apply switchover - no prior shutdown of any
Max Protection
RAC instances
• SQL Apply supports XMLType (stored as CLOB), • SQL Apply support of OLTP Compression,
Transparent Data Encryption, DBMS_FGA (Fine SecureFiles, XA in RAC, Online Redefinition &
Grained Auditing), DBMS_RLS (Virtual Private Edition-based Redefinition
Database)
55
High Availability for Oracle Database
When to Use Active Data Guard vs. GoldenGate
56
Complementary Technologies
DR, Production Offload, Heterogeneous Replication
Read-write Read-only
Transactions Workload
Capture
Source Trail
Target Trail
Delivery
GoldenGate Targets
* GoldenGate archive log mode (ALO)
57
Complementary Technologies
Minimizing Planned Downtime
(GoldenGate Source*)
Old Production
Capture
Database GoldenGate
Heterogeneous Source Trail
Replication
(sync prior to cutover) Target Trail
Delivery
Environment
DG
Data Guard New Production
Standby Database
Database
* GoldenGate archive log mode (ALO)
58
Storage Remote-Mirroring
Online Online
Logs Logs
Archive Archive
Logs Logs
Updates Flashback
Logs
Flashback
Logs
Data Data
Files Files
SYSTEM SYSTEM
USER
TEMP USER
UNDO TEMP
UNDO
59
Data Guard
Database-Aware Transport and Apply
Updates Flashback
Logs
27X fewer
network
Data I/Os*
Files
SYSTEM
USER
TEMP
UNDO
*www.oracle.com/technology/deploy/availability/htdocs/DataGuardRemoteMirroring.html
60