con8399 nascimento enok 1886065 odg ogg
TRANSCRIPT
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
1/57
Copyright 2012, Oracle and/or its affiliates. All rights reserved.1
Oracle Golden Gate and OracleData Guard: Working TogetherSeamlesslyMurilo Nascimento
Data Integration Solutions Specialist
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
2/57
Copyright 2012, Oracle and/or its affiliates. All rights reserved.2
The following is intended to outline our generalproduct direction. It is intended for information
purposes only, and may not be incorporated intocontract. It is not a commitment to deliver anymaterial, code, or functionality, and should not brelied upon in making purchasing decisions.
The development, release, and timing of any feaor functionality described for Oracles products
remains at the sole discretion of Oracle.
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
3/57
Copyright 2012, Oracle and/or its affiliates. All rights reserved.3
Program Agenda
Overview of Oracle GoldenGate
Overview of Oracle Data Guard
Technical Challenges in Capturing Data in Presence o
Guard Role Transitions
Overview of Integrated Capture
Different Deployment Options for Integrated Capture in
context of Data Guard FSFO
Summary
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
4/57
Copyright 2012, Oracle and/or its affiliates. All rights reserved.4
Log-based
Changed Data
Data Integrator
New DB/HW/OS/APP
Fully ActiveDistributedDB
ReportingDatabase
Data
Warehouse
ODS
Zero
Quer
Data S
Rea
Even
High
MessageBus
Oracle & Non-OracleDatabase(s)
Message Bus
Legacy Systems
Oracle GoldenGateLow-Impact, Real-Time Data Integration & Transactional R
GlobalDataCenters
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
5/57
5 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Oracle GoldenGateDifferentiators
FlexiblePerformance R
Low latency for datamovement
Low-impact capture,
routing, transformation,and delivery oftransactional data
Modern, open, modulararchitecture
Supports heterogeneous
sources and targets
Agile and adaptable tomodern data integrationarchitectures
Maintains integrity
Resilient a
interruptio
Fast Recoprocess in
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
6/57Copyright 2012, Oracle and/or its affiliates. All rights reserved.6
How Oracle GoldenGate Works
Oracle Database 10g
Oracle Enterprise Linux
Extract TrailFile
Pump TrailFile
TCP/IPRepli
ExtrTrail
File
PumpTrail
File TCP/IP
Replicat
Non-Oracle DB
HP-UX
TCP/IP
Trail
FileReplicat
MySQL
Oracle LinuxTrail
FileReplicat
Table / Colum
Row-Level Tra
Oracle GoldenGate Management Pack
Capture: committed transactions are captured (and can be filtered) as they occur by readinlogs. New with V.11.2.1, GoldenGate offers two options for capture for Oracle; Classic &
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 ttransforming the data as req
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
7/57
7 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Program Agenda
Overview of Oracle GoldenGate
Overview of Oracle Data Guard
Technical Challenges in Capturing Data in Presence o
Guard Role Transitions
Overview of Integrated Capture
Different Deployment Options for Integrated Capture in
context of Data Guard FSFO
Summary
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
8/57
8 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Oracle Data Guard
Turn-KeyRobust Data (Disast
Easy to setup
Supports everything
Automatic failover basedon declarative conditions
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
9/57
9 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Oracle Data Guard Concepts
Switchover: Planned role transition from a primary datab
of its standby database. DGMGRL> SWITCHOVER TO CHICAGO
Failover: Unplanned role transition based on primary failu DGMGRL> FAILOVER TO CHICAGO
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
10/57
10 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Oracle Data Guard
Turn-KeyRobust Data (Disast
Low-impact on primary
Uses media recoveryengine
Easy to setup
Supports everything
Automatic gap resolution
Automatic failoverbasedon declarative conditions
Zero-Data
Resilient ainterruptio
Fast Recoprocess in
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
11/57
11 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Oracle Data Guard Fast Start Failover (
Observer
Primary (BOSTON) Standby (CHICAGO)
Redo Transport
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
12/57
12 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Data Guard FSFO
Observer Process communicates with both Primary and
Will initiate failover to standby if certain triggering events Connectivity loss between the Primary and Standby or Primary andAND user specified threshold timeout has expired
Database health check detects any of the failures at the Primary Da
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 fi ARCHIVER cannot write because of I/O error
Dictionary corruption is detected
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
13/57
13 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Data Guard FSFO
Zero Data Loss Mode Redo transport set to SYNC with MAXIMUM AVAILABILITY
User-specified Data Loss Mode User can specify maximum amount of data loss
Redo transport set to ASYNC with MAXIMUM PERFORMANCE
Reinstatement of the Failed Primary Database Following the failover, Data Guard Broker will automatically try to re
failed primary as a new standby database
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
14/57
14 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Program Agenda
Overview of Oracle GoldenGate
Overview of Oracle Data Guard
Technical Challenges in Capturing Data in Presence o
Guard Role Transitions
Overview of Integrated Capture
Different Deployment Options for Integrated Capture in
context of Data Guard FSFO
Summary
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
15/57
15 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Technical Challenges inCapturing Data in Presence ofData Guard Role Transitions
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
16/57
16 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Challenge 1: Thread count Mismatch
Active Data Guard widely used for offloading read-intensapplications
A large percentage of deployments are RAC
Number of threads often do not match between Primary and Stand
Post Role Transition Thread counts likely different
Need capability to handle such mismatches transparently
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
17/57
17 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Challenge 2: Resetlogs Change on Failover
Fast Start Failover (FSFO) widely used FailoverALWAYS results in creation of a new database incarnation
Depending on situation, multiple fast start failovers can happen in aof time
Need to handle resetlogs operation transparently
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
18/57
18 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
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 receivedStandby
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 Capture
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
19/57
19 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Challenge 4: Standbys may Not be Co-
GoldenGate Files May Need to be Replicated Checkpoint file
Bounded Recovery file
Trail file
Parameter file
Use shared storage or DBFS
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
20/57
20 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Program Agenda
Overview of Oracle GoldenGate
Overview of Oracle Data Guard
Technical Challenges in Capturing Data in Presence o
Guard Role Transitions
Overview of Integrated Capture
Different Deployment Options for Integrated Capture in
context of Data Guard FSFO
Summary
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
21/57
21 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Integrated Capture:What is it?
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
22/57
22 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Classic Capture
Redo Parsing
Oracle GoldenGate: Classic Capture
Memory Manager
SQL Interface
FilteringFormattingTransformation and
Mapping
Checkpoint Manager
TransformationEngine
TGe
Messaging Subsystem
Database Access
Parser
Metadata
Manager
GoldenGateParameter File
DatabaseArchive/Redo Logs
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
23/57
23 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Oracle GoldenGate: Integrated Capture
Integrated Capture
Memory Manager
SQL Interface
FilteringFormattingTransformation and
Mapping
Checkpoint Manager
TransformationEngine
TGe
Messaging Subsystem
Database Access
Parser
Metadata
Manager
LCRProcessor
DatabaseLogMining
Server
GoldenGateParameter File
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
24/57
24 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Supports multiple deployment configuration
On-Source : Source database and IntegratedCapture are on the same machine
Downstream : Integrated Capture runs on differentdatabase typically on different machines
Easy transitions for existing GoldenGatecustomers Customers may choose which option they prefer
based on their requirements.
Integrated Capture: Overview
I t t d C t E i d f D t
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
25/57
25 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
RAC instance addition/removal Thread count change based on DG role transition handled without
Transparent support for RAC-One
Resetlogs Will automatically detect resetlogs operation in redo logs and take
of redo
Transparent handling of repositioning in presence of resetlogs ope
Redo fuzziness around failover In local mode, knows to avoid fuzziness (stays behind unacknowle
In downstream mode, can be configured to avoid redo fuzziness
Integrated Capture: Engineered for Dat
P A d
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
26/57
26 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Program Agenda
Overview of Oracle GoldenGate
Overview of Oracle Data Guard Technical Challenges in Capturing Data in Presence o
Guard Role Transitions
Overview of Integrated Capture
Different Deployment Options for Integrated Capture in
context of Data Guard FSFO
Summary
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
27/57
27 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Integrated Capture:Deploying On-Source ForData Guard
Integrated Capt re (Shared Storage) On So
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
28/57
28 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Integrated Capture (Shared Storage): On-Sou
Observer
Primary Database Standby Database
Redo Transport
Integrated
CaptureLogMining
Server
Trail and other OGG Files
In Shared Storage
Integrated Capture (Shared Storage): On Source (Post
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
29/57
29 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Integrated Capture (Shared Storage): On-Source (Post
Observer
(OLD) Primary Database (NEW) Primary Database
Redo Transport
Integrated
CaptureLogMiningServer
Trail/Checkpoint/BR Files
In Shared Storage
LogMining
Server
Redo Transport
OCI Connection
File I/O
Integrated Capture (Shared Storage): On-Source (Post
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
30/57
30 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Integrated Capture (Shared Storage): On-Source (Post
Observer
Standby Database Primary Database
Redo Transport
Integrated
CaptureLogMiningServer
Trail/Checkpoint/BR Files
In Shared Storage
LogMining
Server
Redo Transport
OCI Connection
File I/O
Integrated Capture (DBFS): On Source Deplo
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
31/57
31 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Integrated Capture (DBFS): On-Source Deplo
Observer
Primary Database Standby Database
Redo Transport
Integrated
Capture LogMiningServer
Trail and other OGG Files
In DBFS
Integrated Capture (DBFS): On Source Post F
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
32/57
32 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Integrated Capture (DBFS): On-Source Post-F
Observer
(OLD) Primary Database (NEW) Primary Database
Redo Transport
Integrated
CaptureLogMiningServer
Trail/Checkpoint/BR Files
In DBFS
LogMining
Server
Redo Transport
OCI Connection
File I/O
Integrated Capture (DBFS): On-Source Post-S
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
33/57
33 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Integrated Capture (DBFS): On-Source Post-S
Observer
Standby Database (NEW) Primary Database
Redo Transport
Integrated
CaptureLogMiningServer
Trail/Checkpoint/BR Files
In DBFS
LogMining
Server
Redo Transport
OCI Connection
File I/O
Integrated Capture: On-Source Deployment for Data G
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
34/57
37 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Connect to Database using Role-Based Services
Declarative way to specify a service should be published only when
a specific role Publish a service only when database has the PRIMARY role
Make all OGG components connect to the database using role-bas
Use Server-Side TAF and AQ-HA notifications
OCI client automatically inherits TAF attributes
AQ HA Notifications
Role Change Trigger
Fires when database role changes (Standby to Primary, Primary to
Write a role change trigger that will restart the GoldenGate process
Integrated Capture: On Source Deployment for Data G
On-Database Deployment for DG: Configure S
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
35/57
38 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Configure role-based service
srvctl add service dBOSTON soggservlPRIMARY e SESSIOw60 z20 PBASIC rt1,t2,t3
srvctl add service
dCHICAGO
soggserv
lPRIMARY
e SESSw60 z20 PBASIC rt4,t5
-d Unique name of the database
-s Service Name
-l Service Role
-e Type of failover (Session/Select/None)
-m Setting for fast failover from Primary to Standby
-w Wait time between connect attempts
-z Number of times to attempt connect after failover
-P TAF policy specification
-r List of participating instances
On-Database Deployment for DG: Configure S
On-Database Deployment for DG: Net A
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
36/57
39 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
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.development.oracle.com)
(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.development.oracle.com)(FAILOVER_MODE = (TYPE=SESSION) (METHOD=BASIC) (RETRIES=20) (DELAY=6
On-Database Deployment for DG: Net A
On-Database Deployment: Param Files
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
37/57
40 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
mgr.prm USERID ggadm@ggcon PASSWORD ggadmpasswd
AUTOSTART EXTRACT *
AUTOSTART REPLICAT *
AUTORESTART EXTRACT *, RETRIES 3, WAITMINUTES 1, RESETMINUTES 60
AUTORESTART REPLICAT *, RETRIES 3, WAITMINUTES 1, RESETMINUTES 60
ext1.prm USERID ggadm@ggcon PASSWORD ggadmpasswd
On-Database Deployment: Param Files
On-Database Deployment for Data Guard: Ro
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
38/57
41 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Create Role Change Trigger at the Primary Database
Will Get Replicated at the Physical Standby
Trigger should submit a job that runs a shell script
Shell script must be accessible in both databases
On Database Deployment for Data Guard: Ro
Trigger
Role Change Trigger
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
39/57
42 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Role Change Trigger
create or replace triggerogg_failover_actionsafterdb_role_change on databasedeclare
role varchar(30) ;beginselect database_role into role from v$database ;if role = 'PRIMARY' thendbms_scheduler.create_job(job_name => 'failover_script',job_type => 'EXECUTABLE',job_action => '/ade/b/5568817/oracle/work/failover_action.sh',enabled => TRUE) ;
end if ;end ;
end;/
Shell Script
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
40/57
43 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Shell Script
#!/bin/sh#Set environment variables
# if DBFS, need to mount the file system at the standby
#Stop Manager/Replicat/Extract
# Start Manager
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
41/57
44 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Integrated Capture:Deploying Downstream ForData Guard
Integrated Capture: Downstream Deployment for Data
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
42/57
45 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Integrated
Capture
Observer
Primary Database Standby Database
Redo Transport (SYNC)
LogMining
Server
(ASYNC)
Redo Transport
OCI Connection
File I/O
Integrated Capture: Downstream Deployment Post-Fa
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
43/57
46Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Integrated
Capture
Observer
(Old) Primary Database (New) Primary Database
Redo Transport (SYNC)
LogMining
Server (ASYNC)
Redo Transport
OCI Connection
File I/O
Integrated Capture: Downstream Deployment Post-Sw
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
44/57
47 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Integrated
Capture
Observer
Standby Database (New) Primary Database
Redo Transport (SYNC)
LogMining
Server (ASYNC)
Redo Transport
OCI Connection
File I/O
Integrated Capture:
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
45/57
48 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Connect to Database using Role-Based Services Declarative way to specify a service should be published only when
a specific role
Publish a service only when database has the PRIMARY role
DBLOGIN uses role-based services to connect to the database
Used for meta data query and fetch
Use Server-Side TAF OCI client automatically inherits TAF attributes
g p
Downstream Deployment for Data Gua
Downstream Deployment for Data Guard:
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
46/57
49 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
srvctl add service dBOSTON soggservlPRIMARY e SELECw60 z20 PBASIC rt1,t2,t3
srvctl add service
dCHICAGO
soggserv
lPRIMARY
e SELECw60 z20 PBASIC rt4,t5
-d Unique name of the database
-s Service Name
-l Service Role
-e Type of failover (Session/Select/None)
-m Setting for fast failover from Primary to Standby
-w Wait time between connect attempts
-z Number of times to attempt connect after failover
-P TAF policy specification
-r List of participating instances
Configure Role Based Services
Downstream Deployment for Data Gua
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
47/57
50 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
tnsnames.ora:
ggcon =(DESCRIPTION =
(CONNECT_TIMEOUT=10)(RETRY_COUNT=3)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = BOSTON-SCAN)(PORT =
(ADDRESS = (PROTOCOL = TCP)(HOST = CHICAGO-SCAN)(PORT
(LOAD_BALANCE = off) (FAILOVER = on) )
(CONNECT_DATA=
(SERVICE_NAME=oggserv.development.oracle.com)
(FAILOVER_MODE =
(TYPE = SELECT)(METHOD = BASIC) (RETRIES = 20) (DELAY = 60
p y
Net Alias Set up
Downstream Deployment for Data Gua
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
48/57
51 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
mgr.prm
USERID ggadm@ggcon PASSWORD ggadmpasswd
AUTOSTART EXTRACT *
AUTOSTART REPLICAT *
AUTORESTART EXTRACT *, RETRIES 3, WAITMINUTES 1, RESETMINUTES 60
AUTORESTART REPLICAT *, RETRIES 3, WAITMINUTES 1, RESETMINUTES 60
ext1.prm
USERID ggadm@ggcon PASSWORD ggadmpasswd
p y
Parameter Files
Downstream Deployment for Data Gua
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
49/57
52 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Downstream deployment of Integrated Capture Set up MININGUSER and give privileges
Set up the downstream mining database to accept redo logs
Set up redo transport at the source (PRIMARY) database to send
Set up redo transport at the standby database to send redo logs
Standby will not send any redo to downstream database unless it become
Set up Integrated Capture at downstream mining database
p y
Setting Up Redo Transport
Downstream Deployment for Data Gua
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
50/57
53 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
p yReal Time Capture (Primary Database)
Prepare Primary Database to Send Redo
Set DG_CONFIG SQL> ALTER SYSTEM SET LOG_ARCHIVE_CONFIG
= ' DG_CONFIG=(BOSTON, CHICAGO, dbmscap)
Set up redo transport
SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_2 =
'SERVICE = DBMSCAP.EXAMPLE.COM ASYNC NOREGISTREOPEN=30
VALID_FOR=(ONLINE_LOGFILES, PRIMARY_ROLE)
DB_UNIQUE_NAME=dbmscap ';
Downstream Deployment for Data Gua
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
51/57
54 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
p yReal Time Capture (Standby Database)
Prepare Standby Database to Send Redo (when it beco
Set DG_CONFIG SQL> ALTER SYSTEM SET LOG_ARCHIVE_CONFIG
= ' DG_CONFIG=(BOSTON, CHICAGO, dbmscap)
Set up redo transport
SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_2 =
'SERVICE = DBMSCAP.EXAMPLE.COM ASYNC NOREGISTREOPEN=30
VALID_FOR=(ONLINE_LOGFILES, PRIMARY_ROLE)
DB_UNIQUE_NAME=dbmscap ';
Integrated Capture: Deployment Option
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
52/57
55 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
On-Database Deployment No need for another database
No additional configuration (like redo transport)
Needs database trigger
Needs shared storage or use of DBFS
GoldenGate processes see an outage as they have to be restarted
Downstream Deployment
Offloads processing from the primary TAF failover happens transparently. GoldenGate processes do not
GoldenGate files (trail/checkpoint/BR) can remain in local storage
Needs another database
Program Agenda
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
53/57
56 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Overview of Oracle GoldenGate
Overview of Oracle Data Guard
Technical Challenges in Capturing Data in Presence o
Guard Role Transitions
Overview of Integrated Capture
Different Deployment Options for Integrated Capture incontext of Data Guard FSFO
Summary
Summary
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
54/57
57 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Integrated Capture can be deployed in Zero Data Loss Fconfiguration (Works for switchover also)
Once configured via role-based services and role changadditional user intervention is required.
Try it out!
Important MOS Notes/White Papers ID#1322547.1----OGG Best Practice - GoldenGate Classic Capture
Guard ID#1436913.1----OGG Best Practice GoldenGate Integrated Cap
Data Guard
Client Failover Best Practices for Highly Available Oracle DatabaseDatabase 11g Release 2 (MAA White Paper, February 2011)
Join the Data Integration Community
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
55/57
58 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Twittertwitter.com/ORCLGoldenGate
Facebookfacebook.com/OracleDataIntegration
Oracles Data GoldenGate YouTube channel
youtube.com/oraclegoldengate
Oracle.com/goto/datain
LinkedInOracle Data Integra
Oracles Data Integblogs.oracle.com/da
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
56/57
Copyright 2012, Oracle and/or its affiliates. All rights reserved.59
Graphic Section Divider
-
7/29/2019 Con8399 Nascimento Enok 1886065 ODG OGG
57/57
Copyright 2012, Oracle and/or its affiliates. All rights reserved.60