+ All Categories
Home > Documents > BG Garin , Stephan Haisley E nterprise Replication Server Technologies Oracle Corporation

BG Garin , Stephan Haisley E nterprise Replication Server Technologies Oracle Corporation

Date post: 04-Jan-2016
Category:
Upload: phyllis-petty
View: 37 times
Download: 1 times
Share this document with a friend
Description:
Oracle OpenWorld ‘14 Oracle Active Data Guard and Oracle GoldenGate High-Availability Best Practices. BG Garin , Stephan Haisley E nterprise Replication Server Technologies Oracle Corporation. Program Agenda. 1. Overview of Oracle GoldenGate - PowerPoint PPT Presentation
Popular Tags:
57
Transcript
Page 1: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation
Page 2: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted

Oracle OpenWorld ‘14

Oracle Active Data Guard and Oracle GoldenGate High-Availability Best PracticesBG Garin, Stephan HaisleyEnterprise Replication Server TechnologiesOracle Corporation

Page 3: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Safe Harbor StatementThe 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.

Oracle Confidential – Internal/Restricted/Highly Restricted 3

Page 4: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 4

Program Agenda

1

2

3

4

Overview of Oracle GoldenGate

Overview of Integrated Extract / Integrated Replicat

Overview of Oracle Active Data Guard /FSFO

Technical Challenges with Integration

Oracle’s Bundled Agent(XAG) extends HA for GoldenGate

Case Study with GoldenGate and Data Guard

Summary

5

6

7

Page 5: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Oracle Has You CoveredOracle Data Integration Solutions & Maximum Available Architecture (MAA)

Data Integrator

Dec

reas

ing

Late

ncy

Incr

easi

ng T

rans

form

ation Active Data Guard

GoldenGate

HE

TE

RO

GE

NE

OU

S

Disaster Recovery & Data Protection

Real Time Data Integration & High Availability

Data Integration for Data Warehouse & SOA

Redo in Memory

Buffer

Read On-Disk Logs

Fast SQL

SQL Query Set-based, Complex SQL

Direct Memory Access

Direct Write to Logs

Page 6: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 6

Program Agenda

1

2

3

4

Overview of Oracle GoldenGate

Overview of Integrated Extract / Integrated Replicat

Overview of Oracle Data Guard

Technical Challenges with Integration

Oracle’s Bundled Agent(XAG) Extends HA for GoldenGate

Case Study with GoldenGate and Data Guard

Summary

5

6

7

Page 7: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 7

How Oracle GoldenGate Works

SourceOracle & Non-OracleDatabase(s)

TargetOracle & Non-Oracle

Database(s)

Capture: committed transactions are captured (and can be filtered) by reading the transaction logs.

Trail: stages and queues data for routing.

Pump: distributes data for routing to target(s).

Route: data is compressed, encrypted for routing to target(s).

Delivery: applies data with transaction integrity, transforming the data as required.

Capture TrailFiles

Pump Delivery

LAN / WAN / InternetOver TCP/IP

TrailFiles

Page 8: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 8

How Oracle GoldenGate Works

SourceOracle & Non-OracleDatabase(s)

TargetOracle & Non-Oracle

Database(s)

Capture: committed transactions are captured (and can be filtered) by reading the transaction logs.

Trail: stages and queues data for routing.

Pump: distributes data for routing to target(s).

Route: data is compressed, encrypted for routing to target(s).

Delivery: applies data with transaction integrity, transforming the data as required.

Capture

Delivery

TrailFiles

Pump

TrailFiles

Pump

Delivery

Capture

Bi-directional

LAN / WAN / InternetOver TCP/IP

TrailFiles

TrailFiles

Page 9: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 9

Program Agenda

1

2

3

4

Overview of Oracle GoldenGate

Overview of Integrated Extract/ Integrated Replicat

Overview of Oracle Data Guard

Technical Challenges with Integration

Oracle’s Bundled Agent(XAG) Extends HA for GoldenGate

Case Study with GoldenGate and Data Guard

Summary

5

6

7

Page 10: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 10

Integrated Extract: Overview• Introduced in GoldenGate 11.2.1

• Integrated Extract for Oracle Source databases only– Database releases: 11.2.0.3 and beyond

• As of GoldenGate 12.1.2.0.0, it supports use of the Integrated Dictionary for DDL support (no more trigger)– Database release: 11.2.0.4 with 11.2.0.4 at the source system

Page 11: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 11

Integrated Extract: Overview• Supports multiple deployment configuration

– On-Source : Source database and Integrated Extract are on the same machine

– Downstream : Integrated Extract runs on different database – typically on different machines

• Easy transitions for existing GoldenGate customers– Customers may choose which option they prefer based on their requirements

“On Source”

“Downstream”

Page 12: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 12

Integrated Replicat• Introduced in GoldenGate 12.1.2.0.0

• Integrated Replicat for Oracle target databases only– Database releases: 12c and 11.2.0.4

• Leverages database parallel apply servers via inbound server for automatic dependency aware parallel apply

• Minimal changes to Replicat configuration

• Single replicat, no need to use @RANGE or THREAD or other manual partitioning

Page 13: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 13

Integrated ReplicatKey Features

• Streaming Protocol with asynchronous processing

• Applies source transactions in parallel based on dependencies between transactions

• Automatic tuning of parallelism based on workload

• Conflict detection and resolution– GoldenGate CDR, REPERROR, and HANDLECOLLISIONS– DML, DDL and error handlers– Unhandled errors redirected to Replicat for retry and failure processing

• Session redo tags provide fine-grained filtering, such as cycle prevention in bidirectional replication

Page 14: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 14

Program Agenda

1

2

3

4

Overview of Oracle GoldenGate

Overview of Integrated Extract / Integrated Replicat

Overview of Oracle Active Data Guard

Technical Challenges with Integration

Oracle’s Bundled Agent(XAG) Extends HA for GoldenGate

Case Study with GoldenGate and Data Guard

Summary

5

6

7

Page 15: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 15

Oracle Active Data GuardDisaster Recovery and Read-Only Offload to an Active Standby

Standby SitePrimary Site

Data Guard

SYNC / ASYNC

PrimaryDatabase

Active StandbyDatabase

Read-writeWorkload

Real-time Reporting

FastIncrementalBackupsObserver

Page 16: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 16

Oracle Data Guard Concepts• Switchover: Planned role transition from a primary database to one of its

standby database.– DGMGRL > SWITCHOVER TO CHICAGO

• Requires connectivity to both primary and standby database• Ensures all redo has shipped• Orderly transition (both databases agree on every thing)

• Failover: – DGMGRL > FAILOVER TO CHICAGO

• No connectivity with primary• New primary becomes the source of truth

Page 17: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 17

Data Guard FSFO• Observer Process communicates with both Primary and Standby• Will initiate failover to standby if certain triggering events happen

– Connectivity loss between the Primary and Standby or Primary and Observer AND user specified threshold timeout has expired

– Database health check detects any of the failures at the Primary Database• Datafile has gone offline because of an I/O error• Control file is deemed to be corrupt• Log Writer (LGWR) process gets an I/O error and cannot write to any log file• ARCHIVER cannot write because of I/O error• Dictionary corruption is detected

Page 18: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 18

Data Guard FSFO• Zero Data Loss Mode

– Redo transport set to SYNC with MaxAvailability protection mode

• User-specified Data Loss Mode– Redo transport set to ASYNC with MaxPerformance protection mode – User can specify maximum amount of data loss (FastStartFailoverLagLimit)

• Reinstatement of the Failed Primary Database– Following the failover, Data Guard Broker will automatically try to reinstate the failed

primary as a new standby database

Page 19: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 19

Program Agenda

1

2

3

4

Overview of Oracle GoldenGate

Overview of Integrated Extract / Integrated Replicat

Overview of Oracle Data Guard

Technical Challenges with Integration

Oracle’s Bundled Agent(XAG) Extends HA for GoldenGate

Case Study with GoldenGate and Data Guard

Summary

5

6

7

Page 20: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 20

Challenge 1: Thread count Mismatch• Active Data Guard widely used for offloading read-intensive applications

– A large percentage of deployments are RAC– Number of threads often do not match between Primary and Standby database

• Post Role Transition– Thread counts likely different– Need capability to handle such mismatches transparently

Page 21: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 21

Challenge 2: Resetlogs Change on Failover• Fast Start Failover (FSFO) widely used

– Failover ALWAYS results in creation of a new database incarnation– Depending on situation, multiple fast start failovers can happen in a short period of

time– Need to handle resetlogs operation transparently

Page 22: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 22

Challenge 3: Fuzziness in Redo Data• Zero Data Loss Guarantee

– SYNC Transport– Redo is written in parallel to standby and online redo logs– Commits are not acknowledged to the user until an ACK is received from Standby– Redo state is fuzzy until ACK is received

• Commit in both ORL and SRL (Good case)• Commit in ORL but not in SRL• Commit in SRL but not in ORL• Commit in neither ORL nor SRL (Good Case)

– Need a way to avoid redo fuzziness during Extract

Page 23: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 23

Challenge 4: GoldenGate must stay in sync with a data loss failover• In an ASYNC FSFO configuration, the user can define an acceptable window

of dataloss. Transitions of this nature expect some amount of data loss so the replication must account for this.– GoldenGate must remain consistent with the failover target database

Page 24: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 24

Challenge 5: Migrating the GoldenGate Stack on Failures• After a RAC node fails GoldenGate must resume

– GoldenGate processes should not require manual intervention to restart on node failures if other nodes are available

• Similarly after role transitions, the GoldenGate processes must be cleaned up at the old primary and restored on the new primary– In earlier releases this was a cumbersome process that involved user scripting and

role transition triggers– GoldenGate must seamlessly follow the primary database

Page 25: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 25

Challenge 6: Consistency for GoldenGate data/metadata• Primary and Standby databases likely do not share storage• GoldenGate files must be available post role transition

– Checkpoint file– Bounded Recovery file– Trail file– Parameter file– GoldenGate must be kept consistent post role transition

• True for both no data loss and data loss transitions

Page 26: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 26

Challenge 7: Routing of trail data post role transition• After a Data Guard role transition of a TARGET database;

– Pump may need to send trail data to new primary– Replicat processes wait until new trail file data is received– Need mechanism to ensure proper routing of trail after transition events

Page 27: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 27

Why tell you this?• Understand the technical and procedural complexity around the role

transition events• Understand what Zero Data Loss means

– Database is the source of truth– Only the RDBMS can give you zero data loss– Must be integrated with the RDBMS software

Page 28: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 28

Program Agenda

1

2

3

4

Overview of Oracle GoldenGate

Overview of Integrated Extract / Integrated Replicat

Overview of Oracle Data Guard

Technical Challenges with Integration

Oracle’s Bundled Agent(XAG) extends HA for GoldenGate

Case Study with GoldenGate and Data Guard

Summary

5

6

7

Page 29: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 29

Oracle Bundled Agent (XAG)• Clusterware specific to managing GoldenGate resources

– XAG allows you to register a GoldenGate instance with CRS to improve HA

• Uses AGCTL for registering/starting and stopping resources• It solves the key process related issue of detecting and migrating a

GoldenGate instance, i.e. full failover support for GoldenGate– XAG provides increased availability in the face of failures:

• Loss of instance (RAC node failure)• Loss of primary database (Data Guard Failover integration)

Page 30: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 30

Program Agenda

1

2

3

4

Overview of Oracle GoldenGate

Overview of Integrated Extract / Integrated Replicat

Overview of Oracle Data Guard

Technical Challenges with Integration

Oracle’s Bundled Agent(XAG) Extends HA for GoldenGate

Case Study with GoldenGate and Data Guard

Summary

5

6

7

Page 31: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 31

Case Study with GoldenGate and Data Guard

Page 32: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 32

Sample DeploymentObserver

Primary Database Standby Database

Redo Transport(SYNC or ASYNC)

Integrated Extract LogMining

Server

Trail and other OGG FilesIn DBFS

Redo Transport

OCI Connection

File I/O Warehouse

BidirectionalGoldenGate Replication

Page 33: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 33

Sample Deployment – Post Role TransitionObserver

(OLD) Primary Database (NEW) Primary Database

Redo Transport(SYNC or ASYNC)

Integrated ExtractLogMining

Server

Trail/Checkpoint/BR FilesIn DBFS

LogMining Server

Redo Transport

OCI Connection

File I/O

Warehouse

BidirectionalGoldenGate Replication

Page 34: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 34

Database Connectivity• Make all OGG components connect to database using Role-Based Services

– Declarative way to specify a service should be published only when the database has a specific role

– Publish a service only when database has the PRIMARY role

• Create role-based service:srvctl add service -db GGS2PRMY -service oggserv -role PRIMARY

-notification TRUE -tafpolicy BASIC -failovermethod BASIC -failoverdelay 3 -failoverretry 60 -failovertype SELECT -preferred GGS21 -available GGS22

srvctl add service -db GGS2STBY -service oggserv -role PRIMARY -notification TRUE -tafpolicy BASIC -failovermethod BASIC -failoverdelay 3 -failoverretry 60 -failovertype SELECT -available GGS21

Page 35: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 35

Net Aliases• Net Alias in tnsnames.ora at Primary

– ggconn = (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=BOSTON-SCAN) (PORT=2140)) (FAILOVER=on)(LOAD_BALANCE=off)

(CONNECT_DATA= (SERVICE_NAME=oggserv) (FAILOVER_MODE=(TYPE=SESSION)(METHOD=BASIC)(RETRIES=20)(DELAY=60))))

• Net Alias in tnsnames.ora at Standby– ggconn = (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)

(HOST=CHICAGO-SCAN) (PORT=2140)) (FAILOVER=on)(LOAD_BALANCE=off) (CONNECT_DATA= (SERVICE_NAME=oggserv) (FAILOVER_MODE = (TYPE=SESSION) (METHOD=BASIC) (RETRIES=20) (DELAY=60))))

Page 36: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 36

Create DBFS CRS Resource• DBFS is mounted on RAC node that will run GoldenGate• Create CRS action script (MOS note 1054431.1)

– Must contain START, STOP, CHECK functions

• Create CRS resource:crsctl add resource dbfs_mount -type cluster_resource \

-attr "ACTION_SCRIPT=$ACTION_SCRIPT, CHECK_INTERVAL=30,RESTART_ATTEMPTS=10, \

START_DEPENDENCIES='hard(ora.$DBNAME.db)pullup(ora.$DBNAME.db)',\

STOP_DEPENDENCIES='hard(ora.$DBNAME.db)‘, SCRIPT_TIMEOUT=300"

• DBFS service will be managed from Bundled Agent

Page 37: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 37

Register GoldenGate with Bundled Agent (XAG)• Register with XAG at the primary

agctl add goldengate ggprmy --gghome /u01/oracle/goldengate --oracle_home $ORACLE_HOME --db_services ora.oggserv.svc –filesystems dbfs_mount --monitor_extracts ext1,dpump1 --monitor_replicats rep1--environment_vars ‘TNS_ADMIN=…’ --dataguard_autostart yes --nodes scac07adm05,scac07adm06 --vip_name gg_vip_source

• Register with XAG at the standby agctl add goldengate ggstby --gghome /u01/oracle/goldengate --oracle_home $ORACLE_HOME

--db_services ora.oggserv.svc –filesystems dbfs_mount --monitor_extracts ext1,dpump1 --monitor_replicats rep1 --environment_vars ‘TNS_ADMIN=…’ --dataguard_autostart yes --nodes scab02adm06

• Start Extract using Agent Control– agctl start goldengate ggprmy

--nodes scac07adm05,scac07adm06 --vip_name gg_vip_source

Page 38: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 38

Data Guard – Bounded Data Loss (ASYNC)• Data Guard in MaxPerformance(ASYNC) mode permits data loss on the

standby• Amount of data loss with FSFO controlled by FastStartFailoverLagLimit

(default is 30seconds)• Extract must only mine from redo already applied to Standby

– Prevents data being replicated to a target database and then missing from the source after a failover

• Add Integrated Extract parameter TRANLOGOPTIONS HANDLEDLFAILOVER

Page 39: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 39

Data Guard – Bounded Data Loss (ASYNC)

Oracle Confidential – Internal/Restricted/Highly Restricted 39

Observer

Primary Database Standby Database

Redo Transport(SYNC or ASYNC)

Integrated Extract LogMining

Server

Redo Transport

OCI Connection

File I/O Warehouse

GoldenGate Replication10:0009:5510:00

10:00

Page 40: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 40

Data Guard – Bounded Data Loss (ASYNC)

Oracle Confidential – Internal/Restricted/Highly Restricted 40

Observer

(OLD) Primary Database (NEW) Primary Database

Redo Transport(SYNC or ASYNC)

Integrated ExtractLogMining

ServerLogMining

Server

Redo Transport

OCI Connection

File I/O

Warehouse

GoldenGate Replication09:55

10:00

09:55

Page 41: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 41

Data Guard – Bounded Data Loss (ASYNC) tranlogoptions HANDLEDLFAILOVER

Oracle Confidential – Internal/Restricted/Highly Restricted 41

Observer

(OLD) Primary Database (NEW) Primary Database

Redo Transport(SYNC or ASYNC)

Integrated ExtractLogMining

ServerLogMining

Server

Redo Transport

OCI Connection

File I/O

Warehouse

GoldenGate Replication09:55

9:55

09:55

Page 42: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 42

Program Agenda

1

2

3

4

Overview of Oracle GoldenGate

Overview of Integrated Extract / Integrated Replicat

Overview of Oracle Data Guard

Technical Challenges with Integration

Oracle’s Bundled Agent(XAG) Extends HA for GoldenGate

Case Study with GoldenGate and Data Guard

Summary

5

6

7

Page 43: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 43

GoldenGate’s Integrated Stack is Engineered for Data Guard • RAC instance addition/removal

– Thread count change based on DG role transition handled without user intervention– Transparent support for RAC-One

• Resetlogs– Will automatically detect resetlogs operation in redo logs and take the correct branch of redo– Transparent handling of repositioning in presence of resetlogs operation

• Redo fuzziness around failover– In local mode, knows to avoid fuzziness (stays behind unacknowledged commit)– In downstream mode, can be configured to avoid redo fuzziness

• It handles dataloss role transitions– TRANLOGOPTIONS HANDLEDLFAILOVER

Page 44: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 44

GoldenGate extends HA with XAG and DBFS• XAG seamlessly relocates GoldenGate on instance or primary failure• Consistency of GoldenGate data and metadata ensured with DBFS

– Store trail and checkpoint data on DBFS to guarantee consistency on role transitions

• Provides flexible routing of trail data post role transition– Use a Virtual IP to identify the TARGET host machine

• Transferred between primary and standby on role transition

– Enable AUTOSTART of the Data Pump process on the SOURCE • After a role transition completes Data Pump will restart sending trails to new primary

Page 45: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 45

Summary• Important MOS Notes/White Papers

– Client Failover Best Practices for Highly Available Oracle Databases: Oracle Database 12c (MAA White Paper, September 2014)• http://www.oracle.com/technetwork/database/availability/client-failover-2280805.pdf

– Oracle GoldenGate with Real Application Clusters Configuration (MAA White Paper, August (2013)• http://www.oracle.com/technetwork/database/features/availability/maa-goldengate-rac-2007111.p

df

Page 46: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 46

Page 47: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation
Page 48: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 48

Questions and Answers

Page 49: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted

Resources

49

Oracle Data Integration OracleDataintegration OracleGoldenGateORCLGoldenGate blogs.oracle.com/dataintegration

Oracle Data Integrator

Oracle GoldenGate

Oracle EnterpriseData Quality

Oracle Enterprise Metadata Management

Oracle Data Services Integrator

http://www.oracle.com/us/products/middleware/data-integration/overview/index.html

Data Integration

Page 50: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 50

Page 51: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Integrated Extract (Shared Storage): On-SourceObserver

Primary Database Standby Database

Redo TransportSYNC or ASYNC

Integrated Extract

LogMining Server

Trail and other OGG FilesIn Shared Storage

Redo Transport

OCI Connection

File I/O

Page 52: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Integrated Extract (Shared Storage): On-Source (Post- Failover)Observer

(OLD) Primary Database (NEW) Primary Database

Redo TransportSYNC or ASYNC

Integrated ExtractLogMining

Server

Trail/Checkpoint/BR FilesIn Shared Storage

LogMining Server

Redo Transport

OCI Connection

File I/O

Page 53: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Integrated Extract (DBFS): On-Source DeploymentObserver

Primary Database Standby Database

Redo Transport(SYNC or ASYNC)

Integrated Extract LogMining

Server

Trail and other OGG FilesIn DBFS

Redo Transport

OCI Connection

File I/O

Page 54: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Integrated Extract (DBFS): On-Source Post-FailoverObserver

(OLD) Primary Database (NEW) Primary Database

Redo Transport(SYNC or ASYNC)

Integrated ExtractLogMining

Server

Trail/Checkpoint/BR FilesIn DBFS

LogMining Server

Redo Transport

OCI Connection

File I/O

Page 55: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 55

Integrated Extract: Downstream Deployment for Data Guard

Integrated Extract

Observer

Primary Database Standby Database

Redo Transport (SYNC or ASYNC)

LogMining Server

(ASYNC) Redo Transport

OCI Connection

File I/O

Page 56: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 56

Integrated Extract: Downstream Deployment Post-Failover

Integrated Extract

Observer

(Old) Primary Database (New) Primary Database

Redo Transport (SYNC or ASYNC)

LogMining Server (ASYNC)

Redo Transport

OCI Connection

File I/O

Page 57: BG  Garin , Stephan  Haisley E nterprise Replication Server Technologies Oracle Corporation

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 57

Integrated Extract: Downstream Deployment Cascaded Transport

Integrated Extract

Observer

Primary Database Standby Database

Redo Transport (SYNC or ASYNC)

LogMining Server (ASYNC)

Redo Transport

OCI Connection

File I/O


Recommended