Professional Documents
Culture Documents
The following 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.
Larry M. Carpenter
Master Product Manager
High Availability Systems Group
Introduction
Data Guard Broker Enhancements
Configuring for Long Distance Zero Data Loss
DML on an Active Data Guard Standby
In Conclusion
Data Guard
SYNC / ASYNC
Primary Standby
Database Database
Data Guard
SYNC / ASYNC
Multitenant Multitenant
Primary Standby
Database Database
Introduction
Data Guard Broker Enhancements
Configuring for Long Distance Zero Data Loss
DML on an Active Data Guard Standby
In Conclusion
– No more “_DGMGRL” Static Entries with Oracle Restart, RAC One Node or RAC!
• PrimaryLostWriteAction
• PrimaryLostWriteAction
– CONTINUE or SHUTDOWN if a Lost
write is discovered on the Primary
– Can also force automatic failover
if in a FSFO configuration using
FAILOVER or FORCEFAILOVER
• PrimaryLostWriteAction
– Continue or shutdown if a Lost
write is discovered on the Primary
– Can also force automatic failover
if in a FSFO configuration.
• ExternalDestination1 & 2
• PrimaryLostWriteAction
– Continue or shutdown if a Lost
write is discovered on the Primary
– Can also force automatic failover
if in a FSFO configuration.
• ExternalDestination1 & 2
– Configure up to two downstream
capture destinations for
Oracle GoldenGate or ZDLRA
• More Data Guard Broker Enhancements are discussed in the next section.
Introduction
Data Guard Broker Enhancements
Configuring for Long Distance Zero Data Loss
DML on an Active Data Guard Standby
In Conclusion
SYNC?
ASYNC
BOS SFO
• We want BOSFS1
BOS SFO
BOSFS1
BOS SFO
BOSFS1
(idle)
• Default RedoRoutes is blank
BOS SFO
BOSFS1
(idle)
BOS SFO
BOSFS1
BOS SFO
BOSFS1
• To
BOS SFO
BOSFS1
(active)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 55
Our New Configuration
• Boston sends redo to
the Boston Far Sync
who forwards the redo
to San Francisco
• Got that?
BOS SFO
BOSFS1 SFOFS1
(active) (idle)
BOS SFO
BOSFS1 SFOFS1
(idle) (active)
BOS SFO
BOSFS1 SFOFS1
(idle) (active)
BOS SFO
BOSFS1 SFOFS1
(idle) (down)
BOS SFO
BOSFS1 SFOFS1
(idle) (down)
BOS SFO
BOSFS1 SFOFS1
(idle) (down)
BOS SFO
BOSFS1 SFOFS1
(idle) (down)
• Nope!
• With 12.1.0.2 and support for ALTERNATE destinations you’re safe!
ASYNC
BOS SFO
SFOFS1
(down)
BOS SFO
BOSFS1 SFOFS1
(idle) (active)
• Causes the Alternate to be invoked at the first failure of the active Far Sync
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 79
Configure Far Sync for High Availability
• As before, Add in the two new Far Sync Instances
BOS SFO
BOSFS1 SFOFS1
(idle) (down)
BOS SFO
BOSFS1 SFOFS1
(idle) (down)
BOS SFO
BOSFS1 SFOFS1
(idle) (idle)
BOS SFO
BOSFS1 SFOFS1
(idle) (idle)
BOS SFO
BOSFS1 SFOFS1
(idle) (active)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 100
Finalizing True High Availability
• Add the FALLBACK qualifier to RedoRoutes
– To the Primary SFO
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 101
Achieving True High Availability!
• With FALLBACK we just keep on shipping that redo!
BOSFS2 SFOFS2
(idle) (down)
BOS SFO
BOSFS1 SFOFS1
(idle) (active)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 102
Validating your Far Sync Instances
• VALIDATE can also validate your Far Sync Instance Setup
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 103
Validating your Far Sync Instances
• VALIDATE can also validate your Far Sync Instance Setup
• Validate one Boston Far Sync
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 104
Validating your Far Sync Instances
• VALIDATE can also validate your Far Sync Instance Setup
• Validate one San Francisco Far Sync
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 105
Validating your Far Sync Instances
• VALIDATE can also validate future Far Sync Instance Setup
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 106
Validating your Far Sync Instances
• VALIDATE can also validate future Far Sync Instance Setup
• Validate a Boston Far Sync when San Francisco will be the Primary
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 107
Validating your Far Sync Instances
• VALIDATE can also validate future Far Sync Instance Setup
• Validate a San Francisco Far Sync when Boston will be the Primary
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 108
Endless Data Protection and Distribution Possibilities
• Dual Site Symmetrical Setup (Triple ZDL Failover possibilities)
BOSFS2 SFOFS2
(idle) (idle)
BOS SFO
ASYNC
BOSFS1 SFOFS1
(active) (active)
BOSADG SFOADG
• Of course all the standbys above can be Active Data Guard enabled
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 109
Endless Data Protection and Distribution Possibilities
• Multiple Remote Reader Farms
FS4 FS2
(idle) (idle)
ASYNC
FS3 FS1
(active) (active)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 110
A Final Note on RedoRoutes
• Remember a Local SYNC standby with a Remote ASYNC Standby?
ASYNC
SYNC
BOS SFO
SFOADG
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 111
A Final Note on RedoRoutes
• A Switchover between SFO and SFOADG, everything worked fine.
SYNC
BOS SFO
SFOADG
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 112
A Final Note on RedoRoutes
• But a move to the Remote ASYNC standby BOS wreaked havoc!
SYNC!
BOS SFO
SFOADG
• SYNC + WAN is not good for performance, you had to reset LogXptMode.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 113
A Final Note on RedoRoutes
• With RedoRoutes it’s all Automatic now!
ASYNC
BOS SFO
SFOADG
Introduction
Data Guard Broker Enhancements
Configuring for Long Distance Zero Data Loss
DML on an Active Data Guard Standby
In Conclusion
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 115
Writing to Global Temporary Tables (GTT)
Active Data Guard DML
– Separates undo for temporary tables from undo for persistent tables
• Hence any temporary undo is not logged in redo logs
– Set by default on an Active Data Guard standby database
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 116
Sequences
Extending GTT Usefulness
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 117
Global Sequences
Active Data Guard
• Sequences created using the default CACHE and NOORDER options can be
accessed from an Active Data Guard standby database
• When first accessed by the standby, the primary allocates a unique range of
sequence numbers
• When all sequences within a range have been used, the standby requests
another range of numbers
• Each range assigned to a standby is unique – thus there is a unique stream
of identifiers across the entire Data Guard configuration
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 118
Session Sequences
Active Data Guard
• A sequence specifically designed for use with global temporary tables that
have session visibility
– A unique range of sequence numbers only within a session
– Session sequences are not persistent - the state of the session sequences accessed
during a session is lost when the session terminates
• To create a session sequence:
SQL> CREATE SEQUENCE … SESSION;
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 119
Benefits: Temporary Undo and Sequences
Increase Return on Investment in Standby Databases
• Reporting and other applications that are generally read-only but require
non-persistent write access to the database can be run on an Active Data
Guard standby using global temporary tables
• Reduces redo volume if also enabled on the primary database
– Temporary undo is not logged in redo
– Improves primary database performance
– Reduce network bandwidth consumption - less redo for Data Guard to ship
– Less standby I/O
• Applications that are read-only and require generation of unique
sequences can be offloaded to Active Data Guard standby
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Program Agenda
Introduction
Data Guard Broker Enhancements
Configuring for Long Distance Zero Data Loss
DML on an Active Data Guard Standby
In Conclusion
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 121
Data Guard 12c New Features Summary
• Data Guard • Active Data Guard
– SYSDG Role for Data Guard specific operations – Real Time Cascading Redo destinations
– Multitenent Database Standbys – Wan Distance Zero Data Loss with Far Sync
– Default Real Time Apply – Global Temporary Table DML on a standby
– Transparent Online Data file movement – Sequences (global and session) on a standby
– Single SQL*Plus Switchover command – DBMS_ROLLING automated rolling upgrades
– No Primary instance shutdown for switchover – Support for Oracle Application Continuity
– FastSync (SYNC NOAFFIRM) – Support for Oracle Global Data Services
– Enhanced Extended Datatype Support for upgrades
– Logical Standby support for additional data types
– DBMS_SCHEDULER support for Rolling Upgrades
– Broker VALIDATE DATABASE capability
– Enhanced Broker configuring with RedoRoutes
– Broker Resumable switchover
– New Broker Observer properties and capabilities
– Broker support of Cascading Redo destinations
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 122
Resources
• Oracle Data Guard
– http://www.oracle.com/goto/dataguard
• Maximum Availability Architecture (MAA)
– http://www.oracle.com/goto/maa
• MAA Blogs
– http://blogs.oracle.com/maa
• Oracle Active Data Guard Far Sync - Zero Data Loss at Any Distance
– http://www.oracle.com/technetwork/database/availability/farsync-2267608.pdf
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 123
Safe Harbor Statement
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.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 124