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

1 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Oracle Data Guard 12c


Zero Data Loss at Any Distance

Joseph Meeks
Director of Product Management, Oracle
Madhu Tumma
Technology Director, J P Morgan Chase

2 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Program Agenda

 Zero Data Loss Disaster Protection - The Basics


 Challenge / Compromise
 Solution
 JPMorgan Chase & Co - Walk the Walk

3 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Basic Principle of Zero Data Loss
Requires Synchronous Communication

Commit Ack Network Ack

Commit Network Send

Primary Standby

The greater the distance, the larger the performance impact

4 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Geographic Separation and Disaster Recovery
DR Deployed at Distances Too Far for Synchronous Replication

Typical Distance Between Primary and DR sites

Greater than
300 miles Less than 100
miles

100-300 miles
233 Responses in an IOUG Survey - 2012

5 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Forces Compromise

Pick your poison:


 Sacrifice performance for zero data loss

 Deploy storage forwarding solutions

 Accept data loss…and more downtime

6 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Trade-off Performance for Zero Data Loss
Customer Performance Tests

RTT Latency Data Guard Remote Mirroring


Network Round Trip Primary Database Primary Database
milliseconds Performance Impact Performance Impact
0 4% 3%

10 4% 26%

15-20 10% 39%

http://www.oracle.com/technetwork/database/features/availability/dataguardremotemirroring-086151.html

7 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Deploy Storage Forwarding Solutions
EMC Extended Distance Replication: An Example

SRDF/S SRDF/A

 Synchronous storage mirroring to intermediate Symmetrix array


 Asynchronous forwarding to remote Symmetrix array for disaster recovery
http://www.emc.com/collateral/hardware/technical-documentation/300-
006-714-srdf-zero-data-loss-solutions-ext-distance-replication.pdf

8 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Storage Remote-Mirroring: Fundamental Flaw
Zero Oracle Awareness, Mirrors Every Write for Real-Time Protection

Primary Database Remote Volumes


Oracle Instance (in memory)

Remote mirror all


changed blocks
Recovery Recovery
files files
SYNC or ASYNC

Oracle data files Oracle data files

9 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Deploy Data Guard Multi-Standby
A Better Solution

Local
Standby Remote
SYNC ASYNC
Standby
Primary

 ‘Local’ synchronous standby


– HA failover with zero data loss

 Remote asynchronous standby for geo protection


– Data Guard Real-Time Cascade - new with Oracle Database 12c

 Many advantages:
– Best data protection, multiple recovery options, planned maintenance, testing

10 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Data Guard: Fundamentally Best for Oracle Data
Oracle Aware - Simple, Efficient, Physical Replication

Primary Database Standby Database


database redo
Oracle Instance (in memory) Oracle Instance (in memory)
SYNC or ASYNC

Recovery Recovery
files files

• 95% less network I/O


Oracle data files • 85% less network volume Oracle data files
• Knowledge of Oracle redo and block
structures used to prevent corruption

11 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Multi-Standby Configuration
Not Ideal for All Requirements

 If zero data loss failover to the remote DR site is the only


requirement, then multi-standby configuration would:
– Increase hardware, software, and support costs
– Increase downtime for two-step failover to the remote DR site
 Step 1: Failover to local standby
 Step 2: Switchover remote standby where production will run

12 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Result: Accept Data Loss and Downtime
The Compromise Chosen by Many Enterprises for Long-Distance DR

 Asynchronous transport – Data Guard Maximum Performance


– Least cost with fast, single step role transition
 Failover means data loss
 Data loss poses a dilemma that increases downtime:
– What data will I lose if I failover?
– How will lost data impact the business?
– Instead of failing over, can I repair the problem and avoid data loss?

13 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Data Guard 12c Far Sync

Putting an End to
Compromise

14 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Data Guard Far Sync
Transformation: From Compromise to Zero Data Loss Protection

ASYNC
Primary Remote
Standby

 Start with any existing Data Guard configuration


– In this example Data Guard Maximum Performance/ASYNC with remote standby

15 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Data Guard Far Sync
Transformation: From Compromise to Zero Data Loss Protection
Far Sync

ASYNC
Primary Remote
Standby

 Deploy a light-weight Far Sync instance on a separate server


– Oracle instance, standby control file, redo and archived redo log files
– No user data files, no media recovery
– Locate the Far Sync instance at the maximum distance from the primary where
performance SLAs can tolerate the impact of synchronous redo transport

16 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Data Guard Far Sync
Transformation: From Compromise to Zero Data Loss Protection

Far Sync
SYNC ASYNC
Primary Remote
Standby

 Configure the primary to ship redo synchronously to the Far Sync instance
 Configure Far Sync to forward redo asynchronously to the remote standby
– Supports up to 29 remote destinations
– Can also compress redo to conserve WAN bandwidth (requires ACO license)
– Standard RMAN deletion policies automate archive log management
– An alternate Far Sync instance on a separate server can be used for HA (not shown)

17 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Data Guard Far Sync
Primary Failure – No Problem

Far Sync
ASYNC
Primary Remote
Standby

 Far Sync completes sending redo for all committed transactions

18 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Data Guard Far Sync
Zero Data Loss Failover

Far Sync
Single-Step Role Transition
New
Primary Primary

 Far Sync confirms that the configuration is in zero data loss state
 Fast, single-step, zero data loss failover to remote standby
– Same failover command as for any Data Guard configuration
– Manual or automatic using Data Guard Fast-Start Failover

 Same transparency during planned switchovers for testing or maintenance

19 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Far Sync Pre-reqs

 Compatibility with other platforms in the Data Guard configuration


– My Oracle Support Note 413484.1
 e.g. Far Sync for an Exadata configuration can be deployed on any
Linux platform, or even on Windows
 Minimal storage requirements
– You decide how much storage to allocate for archive logs should
transmission be interrupted – resolve gaps without impacting primary
 Minimal CPU, memory, or I/O
– No recovery, no data files, production never runs on the Far Sync instance

20 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Far Sync Instance Creation
Simple and Lightweight

 Create a control file using a mounted primary


SQL> ALTER DATABASE CREATE FAR SYNC INSTANCE CONTROLFILE AS '/tmp/FS1.ctl';

 Copy the server parameter file (SPFILE) and password file used by
the primary database
– Several initialization parameters are also modified for Far Sync
 Copy the control file to the Far Sync instance
– Create standby redo log files at the Far Sync instance
 Start the Far Sync instance
DATABASE_ROLE column in V$DATABASE will show FAR SYNC

21 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Redo Transport Details – Without Far Sync
Maximum Performance, all Failovers Result in Data Loss

LOG_ARCHIVE_CONFIG='DG_CONFIG=(PROD, DR)'
LOG_ARCHIVE_DEST_2='SERVICE=DR DB_UNIQUE_NAME=DR
PROD VALID_FOR=(PRIMARY_ROLE,ONLINE_LOGFILE)'
LOG_ARCHIVE_DEST_STATE_2=ENABLE

LOG_ARCHIVE_CONFIG='DG_CONFIG=(PROD, DR)'
LOG_ARCHIVE_DEST_2='SERVICE=PROD DB_UNIQUE_NAME=PROD
DR VALID_FOR=(PRIMARY_ROLE,ONLINE_LOGFILE)'
LOG_ARCHIVE_DEST_STATE_2=ENABLE

22 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Add Far Sync and Designate DR as Alternate
Maximum Availability – Zero Data Loss

LOG_ARCHIVE_CONFIG='DG_CONFIG=(FS1, PROD, DR)'


FS1 LOG_ARCHIVE_DEST_2='SERVICE=DR DB_UNIQUE_NAME=DR
Ship to DR VALID_FOR=(STANDBY_ROLE,STANDBY_LOGFILE)'
LOG_ARCHIVE_DEST_STATE_2=ENABLE

DR LOG_ARCHIVE_CONFIG='DG_CONFIG=(FS1, PROD, DR)‘

LOG_ARCHIVE_CONFIG='DG_CONFIG=(FS1, PROD, DR)'


LOG_ARCHIVE_DEST_STATE_2=ALTERNATE
PROD LOG_ARCHIVE_DEST_3='SERVICE=FS1 SYNC AFFIRM MAX_FAILURE=1
SYNC to FS1 ALTERNATE=LOG_ARCHIVE_DEST_2 DB_UNIQUE_NAME=FS1
DR is Alternate VALID_FOR=(PRIMARY_ROLE,ONLINE_LOGFILE)'
LOG_ARCHIVE_DEST_STATE_3=ENABLE

23 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Add Second Far Sync Destination for HA
Maintain Zero Data Loss if Far Sync Server Outage

LOG_ARCHIVE_CONFIG='DG_CONFIG=(FS2, PROD, DR)'


FS2 LOG_ARCHIVE_DEST_2='SERVICE=DR DB_UNIQUE_NAME=DR
Ship to DR VALID_FOR=(STANDBY_ROLE,STANDBY_LOGFILE)'
LOG_ARCHIVE_DEST_STATE_2=ENABLE

DR LOG_ARCHIVE_CONFIG='DG_CONFIG=(FS1, FS2, PROD, DR)'

LOG_ARCHIVE_CONFIG='DG_CONFIG=(FS1, FS2, PROD, DR)'


PROD LOG_ARCHIVE_DEST_2='SERVICE=FS2 SYNC AFFIRM
FS2 is alternate DB_UNIQUE_NAME=FS2 VALID_FOR=(PRIMARY_ROLE,ONLINE_LOGFILE)‘
in place of DR LOG_ARCHIVE_DEST_STATE_2=ALTERNATE

24 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Data Guard Broker and Far Sync

 Automatically configures ASYNC redo transport from PROD to FS1


DGMGRL> ADD FAR_SYNC_INSTANCE FS1 AS CONNECT IDENTIFIER is FS1;

 Manually configure DR to receive from FS1 using RedoRoutes


DGMGRL> EDIT FAR_SYNC_INSTANCE FS1 SET PROPERTY RedoRoutes=‘(PROD:DR ASYNC)’;

 Manually configure primary to only ship to FS1 and modify to SYNC


DGMGRL> EDIT DATABASE PROD SET PROPERTY RedoRoutes=‘(LOCAL:FS1 SYNC)’;

25 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Distance Between Far Sync & Primary?

 Impossible to completely escape the impact of RTT network latency on


performance

 For best protection, locate the Far Sync instance at the maximum
distance an application can tolerate synchronous transport
 Different applications will have different tolerance to RTT latency

 New Data Guard 12c Fast Sync will increase the practical distance
– Near-zero performance impact if network RTT is less than local I/O time

26 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Data Guard 12c Synchronous Transport
Process Architecture same as Data Guard 11g Release 2

User Transactions Queries


Queries, Updates, DDL Reports
Testing
Commit

Backups
Primary
Online
Redo Logs

SGA LGWR Standby


Redo
Redo Logs
Buffer
NSS RFS MRP
Oracle Net

Primary Database Active Standby

27 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Introducing Data Guard 12c Fast Sync
Net Reduction in Round-Trip Time Improves Performance

User Transactions Queries


Queries, Updates, DDL Reports
Testing
Commit

Backups
Primary
Online
Redo Logs

SGA LGWR Standby


Redo
Redo Logs
Buffer
NSS RFS MRP
Oracle Net
Primary Database Active Standby
LOG_ARCHIVE_DEST_3='SERVICE=stby1 SYNC NOAFFIRM'

28 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Data Guard 12c – The Evolution Continues

Production Offload, HA, Data Protection Performance, Manageability, Feature Support


 Far Sync – zero data loss and production offload  Fast Sync
 WAN zero data loss failover to remote standby  Data Guard Broker
 Off-host redo transport compression – requires ACO  Validate database - role change readiness
 Gap resolution  Resumable switchover
 Serve up to 29 remote destinations  Automatic lag monitoring based on user configurable
 Expand reporting offload to Active Standby thresholds

 DML to global temp tables  Support for cascaded standby and real-time cascade

 Sequence support  Configurable Broker tracing

 Use cascaded destination for up-to-date reporting  Support for Container Databases

 Real-Time Cascade  Separation of Duties - Data Guard Administrative


Privilege
 HA Upgrade - automation for database rolling upgrades

29 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


ASYNC
transport mode
Data Guard Far Sync
Putting an End to Compromise

Zero Data Loss High


at any distance Performance

Simple Low Cost

41 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Resources
 OTN Data Guard Portal:
www.oracle.com/goto/dataguard
 OTN HA Portal:
www.oracle.com/goto/availability
 Maximum Availability Architecture (MAA):
www.oracle.com/goto/maa
 MAA Blogs:
http://blogs.oracle.com/maa
 Oracle HA Customer Success Stories on OTN:
www.oracle.com/technetwork/database/features/ha-casestudies-098033.html

42 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Key HA Sessions and Demos by Oracle Development
Monday, 1 October – Moscone South Wednesday, 3 October – Moscone South
12:30p Oracle Data Guard Zero-Data-Loss Protection at Any Distance, 300 10:15a Operational Best Practices for Oracle Exadata, 102
12:30p Future of Exadata: OLTP, Warehousing, and Consolidation, 104 10:15a Maximize Availability by Minimizing Disruption for End Users
1:45p Automating ILM with the Latest Database Technology, 300 and Application, 301
1:45p Extracting Data in Oracle GoldenGate Integrated Capture Mode, 102 11:45a What’s New in the Latest Generation of Oracle RAC, 301
3:15p Maximize Availability with the Latest Database Technology, 303 11:45a Best Practices for HA w/ GoldenGate on Oracle Exadata, 102
3:15p Maximize Enterprise Availability with the Latest DB Technology, 303 1:15p Oracle Secure Backup: Integration Best Practices with
4:45p Mission-Critical Oracle Exadata OLTP Deployment at PayPal, 300 Engineered Systems, 300
4:45p Temporal Database Capabilities with the Latest DB Technology, 300 1:15p Application MAA Best Practices on Oracle Private Clouds, 200
Tuesday, 2 October – Moscone South 5:00p Tuning &Troubleshooting Oracle GoldenGate on Oracle, 102
10:15a Database Tables to Storage Bits: Data Protection Best Practices, 300 Thursday, 4 October – Moscone South
10:15a GoldenGate & Data Guard: Working Together Seamlessly, 305 11:15a Integrate Your Globally Distributed Databases for Key
11:45a Active Data Guard Zero-Downtime Database Maintenance, 300 Cloud Computing Benefits, 300
11:45a Using Automatic Storage Mgmt with the Latest DB Technology, 301 12:45p Backup and Recovery of Oracle Exadata: Experiences
1:15p The Four Ts of RMAN: Tips, Tuning, Troubleshooting, and … ?, 102 and Best Practices, 300
5:00p Maximum Availability Architecture Best Practices for Exadata, 303
Demos – Mon 10:00a-6:00p - Tue 9:45a-6:00p - Wed 9:45a-4:00p Oracle Secure Backup, S-014
Oracle Maximum Availability Architecture, S-011 Oracle Active Data Guard, S-007
GoldenGate 11gR2: Real-Time, Transactional DB Replication, S-027 Oracle Recovery Manager and Oracle Flashback Technologies, S-019
Oracle Database 12c: Global Data Services, S-010 Oracle Real Application Clusters and Oracle RAC One Node - S-008
Oracle Database 12c Application Continuity - S-009 Oracle Database 12c Xstream, Streams, Advanced Queing, S-018

43 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. After OpenWorld, visit oracle.com/goto/availability
The preceding is intended to outline our general product direction. It is
intended for information purposes only, and may not be incorporated into
any contract. It is not a commitment to deliver any material, code, or
functionality, and should not be relied upon in making purchasing
decisions. The development, release, and timing of any features or
functionality described for Oracle’s products remains at the sole
discretion of Oracle.

44 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Graphic Section Divider

45 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


46 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Вам также может понравиться