SlideShare a Scribd company logo
Application High Availability and
Upgrades Using Oracle GoldenGate
March 2016
We are a global systems integrator specializing on the Oracle platform
•  Specialized Group Within Accenture Operations
–  120 Consultants with an average of 15+ years of Oracle experience
–  Worldwide leader in Exadata implementations (500+ performed to date)
–  21 Oracle ACE members and directors
•  Numerous Oracle specializations
•  Accenture Engineered Systems Innovation Center
•  http://registration.accenture.com/ehome/e4/home
Accenture Enkitec Group
Copyright © 2015 Accenture All rights reserved. 2
•  Oracle Data Warehouse
•  Oracle Real Application Cluster
•  Oracle Performance Tuning
•  Oracle Database Security
•  Oracle Database
•  Oracle Exadata
•  Oracle GoldenGate
•  Oracle Data Integrator
Infrastructure Principal
•  17 years of Oracle Experience
•  Completed multiple Sybase to Oracle RAC conversions
•  Migrated numerous systems using Oracle GoldenGate to Oracle Engineered Systems
•  Designed and deployed an Active / Active database solution for a shipment tracking system
•  Architected a solution to process xml messages using Oracle XMLDB
•  Visit my blog @ stborden.wordpress.com
Shane Borden
Copyright © 2015 Accenture All rights reserved. 3
4
Agenda
•  Planning for an Active / Active Solution
•  GoldenGate Architecture
•  Replication Topology
•  GoldenGate Conflict Detection and Resolution
•  Demonstration
•  Monitoring
•  Summary
•  Questions
Copyright © 2015 Accenture All rights reserved.
Planning for an Active / Active Database Solution
5Copyright © 2015 Accenture All rights reserved.
6
Planning for an Active / Active Database Solution
•  Why Active / Active
–  Elimination of planned downtime
–  Data locality
–  RPO vs. RTO
–  Use of all purchased capacity
–  Risk-free failover testing
–  Load balancing
•  Potential issues of Active / Active
–  Scenario or rule based approach for data collisions
–  Handling of a Switchover
–  Application Compatibility
–  Performance and Acceptable Transaction Latency
–  Cost
Copyright © 2015 Accenture All rights reserved.
7
Planning for an Active / Active Database Solution
•  What SMEs should be involved
•  Transaction Mapping
•  Main goal is to MINIMIZE DATA CONFLICTS
•  Discuss application behavior should LAG occur
•  Determine maximum tolerance for site downtime
•  GoldenGate vs. DataGuard
•  Consider introducing Data Guard to handle local failure
Copyright © 2015 Accenture All rights reserved.
GoldenGate Architecture
8Copyright © 2015 Accenture All rights reserved.
9
GoldenGate Architecture - Overview
Capture
–  Extracts committed
transactions by reading
transaction logs
–  Transactions written to a trail
file
–  Transaction filtering and
transformation available
–  Classic or Integrated mode (if
on Oracle)
Delivery
–  Applies trail records to target
while maintaining
transactional integrity
–  Transaction filtering and
transformation available
–  SQL Apply or Integrated mode
(if on Oracle)
Copyright © 2015 Accenture All rights reserved.
Pump
–  Routes and writes trails to
target location.
–  Transaction filtering and
transformation available
–  Encryption and compression
also available
10
GoldenGate Architecture - Topology
Copyright © 2015 Accenture All rights reserved.
11
GoldenGate Architecture - Topology
•  Understand and document where data flows
•  Stick to traditional topologies
•  Avoid Hub and Spoke
–  Unless your design specifically anticipates that from the start
Copyright © 2015 Accenture All rights reserved.
12
Front End Network Architecture - Topology
–  Imperative that your networking team is involved
–  Global Site Selector and Load Balancers are an important piece of the puzzle
–  Needed to isolate sites at time of upgrades
–  Also needed in order to ‘stick’ traffic to one site or another
Copyright © 2015 Accenture All rights reserved.
Prepare GoldenGate
13Copyright © 2015 Accenture All rights reserved.
14
Prepare GoldenGate
Conflict Detection and Resolution
•  Create, verify and document a CDR decision matrix
–  Rule based resolution
•  Decide which column is going to be used for decision process
–  Oftentimes inserted or last updated date is used
–  Other business rules
•  Ensure there is a process to periodically review conflicts
•  Excessive conflicts cause LAG
•  Additional Parameters Required for CDR
–  Integrated vs. Classic
Copyright © 2015 Accenture All rights reserved.
15
Hardware Preparations
•  Disk for trail files
–  ACFS / DBFS / NAS
•  Leverage Clusterware for failover management
–  Utilize a VIP address for delivery process
–  Use oraagent script or bundled XA Agents (Preferred) to manage manager / extract / replicat
–  Be aware that clusterware now controls GoldenGate
•  Proper supplemental logging
•  Consider other bottlenecks
–  I/O Performance
Copyright © 2015 Accenture All rights reserved.
Prepare GoldenGate
16
Prepare GoldenGate
Clusterware Preparations
•  Add a VIP:
–  srvctl add network -k 2 -S 192.168.56.0/255.255.255.0/eth3 –v
–  srvctl add vip -n orcl11g-rac1 -k 2 -A 192.168.56.0/255.255.255.0/eth3 -v
–  crsctl stat type ora.cluster_vip_net2.type
–  appvipcfg create -network=2 -ip=192.168.56.177 -vipname=orcl11g-ggvip -user=oracle
•  Add Clusterware Resource (deprecated):
–  crsctl add resource orcl11g-rac1-ggateapp -type cluster_resource -attr "ACTION_SCRIPT=
$CRS_HOME/crs/public/goldengate_action.sh, CHECK_INTERVAL=30,
START_DEPENDENCIES='hard(orcl11g-ggvip) pullup(orcl11g-ggvip)',
STOP_DEPENDENCIES='hard(orcl11g-ggvip)',ACL='owner:oracle:rwx,pgrp:dba:rwx,other::r--',
SCRIPT_TIMEOUT=360”
•  Additional Script Needed / Lots of Moving Parts
Copyright © 2015 Accenture All rights reserved.
17
Prepare GoldenGate
Clusterware Preparations
•  Bundled XA Agent is Preferred (MOS 1527310.1)
–  Separate Install
–  Get Latest Version
–  Pre-Create the VIP or let the Bundled Agent Create
–  agctl add goldengate gg_soe --gg_home /acfsmounts/acfsvol1/ogg --instance_type source 
--nodes orcl11g-rac1,orcl11g-rac2 --vip_name orcl11g-ggvip 
--filesystems ora.acfs.acfsvol1.acfs --databases ora.vboxrac.db 
--oracle_home /u01/app/oracle/product/11.2.0.4/db --monitor_extracts E_SOE_R1,P_SOE_R1
Copyright © 2015 Accenture All rights reserved.
18
Schema Preparations
•  Sequences
–  Avoid Even / Odd Strategy
–  N+10 Strategy
–  Sequence Rollover
•  Identity columns in 12c
•  Understand application changes necessary for CDR
–  Trigger based
–  Application Maintained
–  Mixture
Copyright © 2015 Accenture All rights reserved.
Prepare GoldenGate
19
Prepare GoldenGate
Table Preparation
•  Trandata
•  Understand columns for CDR
•  Keep it Simple by Using the Same Column for CDR
•  Determine method to instantiate data used for Conflict Detection / Resolution (CDR)
•  Instantiate CDR Column
–  Beware the NULL Value in Some Versions of GoldenGate
–  One Site or All Sites
Copyright © 2015 Accenture All rights reserved.
20
Prepare GoldenGate
Trail File Additional Data and Data Protection
•  Exception handling
•  Consider Metadata to Include in Trail
•  Useful in the Debugging / Error Handling Process
•  Can be Used in Rule Based Apply Within Replicat
•  Handle Potential Transaction Loopback
•  EXCLUDEUSER
•  Process Tags in a Trail Record
•  TRANLOGOPTIONS EXCLUDETAG (extract)
•  DBOPTIONS SETTAG (replicat)
Copyright © 2015 Accenture All rights reserved.
21
Target System CDR Parameters
•  Integrated and Classic Replicat:
–  COMPARECOLS
–  ON UPDATE KEYINCLUDING (LAST_UPDT_TMSTP)
–  ON DELETE KEYINCLUDING (LAST_UPDT_TMSTP))
–  UPDATEROWEXISTS, (DEFAULT, USEMAX
(LAST_UPDT_TMSTP))
–  INSERTROWEXISTS, (DEFAULT, USEMAX
(LAST_UPDT_TMSTP))
–  DELETEROWEXISTS, (DEFAULT, OVERWRITE)
–  UPDATEROWMISSING, (DEFAULT, OVERWRITE)
–  DELETEROWMISSING, (DEFAULT, DISCARD)
–  REPERROR (DEFAULT, EXCEPTION);
•  Classic Replicat or Mixed Extract / Replicat Requires
Additional Parameters
GETUPDATEBEFORES
Copyright © 2015 Accenture All rights reserved.
Prepare GoldenGate
Source System CDR Parameters
•  Supplemental logging ALLCOLS always required
•  Integrated Extract:
TRANLOGOPTIONS INTEGRATEDPARAMS (...)
LOGALLSUPCOLS
UPDATERECORDFORMAT COMPACT
•  Classic Extract or Mixed Integrated / Classic:
GETUPDATEBEFORES
NOCOMPRESSDELETES
NOCOMPRESSUPDATES
•  Don’t Forget Token Data
22
Prepare GoldenGate
Exception Handling
–  Log All Occurrences of CDR Actions
–  Triggered by Exception Handling of Prior Map Statement
–  Decide Which Metadata to Include
•  @DATE ('YYYY-MM-DD HH:MI:SS.FFFFFF', 'JTS', @GETENV ('JULIANTIMESTAMP'))
•  @GETENV
–  RECORD
–  GGENVIRONMENT
–  GGHEADER
–  LASTERR
–  TRANSACTION
–  STATS
•  @BEFORE
Copyright © 2015 Accenture All rights reserved.
Application Changes / Database Maintenance
23Copyright © 2015 Accenture All rights reserved.
24
Application Changes / Database Maintenance
•  Decide / Document / Test allowable Changes
•  Make sure Everything is Still Backward Compatible with Existing Trail Data
–  Not null to null
–  Column expansion
–  Addition of Indexes
–  Column addition
•  Methodology also Useful for Database Maintenance
–  Index Maintenance
–  Table Shrink / HWM Modification
–  Partitioning Changes
Copyright © 2015 Accenture All rights reserved.
25
Application Changes / Database Maintenance
Example Implementation Steps
•  Modify GSS to Failover Traffic From One Site to Another
•  Implement Schema Changes / Database Maintenance
•  Modify GSS to Failover Traffic to Upgraded Site
•  Complete Schema Changes / Database Maintenance on Other Site
•  Modify GSS to Allow Traffic at Both Sites
Copyright © 2015 Accenture All rights reserved.
CDR Monitoring
26Copyright © 2015 Accenture All rights reserved.
27
CDR Monitoring
–  Report CDR stats via ggsci interface
•  stats replicat [replicat name] report cdr
Cumulative totals for specified table(s):
*** Total statistics since 2016-02-24 19:19:32 ***
Total inserts 0.00
Total updates 1815508.00
Total deletes 0.00
Total discards 0.00
Total operations 1815508.00
Total CDR conflicts 900204.00
CDR resolutions succeeded 900204.00
CDR UPDATEROWEXISTS conflicts 866829.00
CDR UPDATEROWMISSING conflicts 33375.00
Copyright © 2015 Accenture All rights reserved.
28
CDR Monitoring
–  Report CDR stats to the report file
•  send replicat [replicat name] report
From Table SOE.INVENTORIES to SOE.INVENTORIES:
# inserts: 0
# updates: 915304
# deletes: 0
# discards: 0
# CDR conflicts : 900204
# CDR resolutions succeeded : 900204
# CDR UPDATEROWEXISTS conflicts : 866829
# CDR UPDATEROWMISSING conflicts: 33375
From Table SOE.INVENTORIES to SOE.CONFLICT_LOG:
# inserts: 0
# updates: 900204
# deletes: 0
# discards: 0
Copyright © 2015 Accenture All rights reserved.
29
CDR Monitoring
–  Report CDR stats to a table (enabled in replicat parameter file)
•  @GETENV ('STATS','CDR_CONFLICTS')
•  @GETENV ('STATS','CDR_RESOLUTIONS_SUCCEEDED')
•  @GETENV ('STATS','CDR_RESOLUTIONS_FAILED’)
Copyright © 2015 Accenture All rights reserved.
30
CDR Monitoring
Why is There a Performance Difference?
*** Total statistics since 2016-02-24 19:19:32 ***
Total inserts/second: 0.00
Total updates/second: 596.70
Total deletes/second: 0.00
Total discards/second: 0.00
Total operations/second: 596.70
*** Total statistics since 2016-02-24 20:24:04 ***
Total inserts/second: 0.00
Total updates/second: 1572.29
Total deletes/second: 0.00
Total discards/second: 0.00
Total operations/second: 1572.29
Copyright © 2015 Accenture All rights reserved.
Questions?
31Copyright © 2015 Accenture All rights reserved.

More Related Content

What's hot

Oracle GoldenGate on Docker
Oracle GoldenGate on DockerOracle GoldenGate on Docker
Oracle GoldenGate on Docker
Bobby Curtis
 
Oem12c patching -OOW13
Oem12c patching -OOW13Oem12c patching -OOW13
Oem12c patching -OOW13
Bobby Curtis
 
Hitchhiker's Guide to free Oracle tuning tools
Hitchhiker's Guide to free Oracle tuning toolsHitchhiker's Guide to free Oracle tuning tools
Hitchhiker's Guide to free Oracle tuning tools
Bjoern Rost
 
Meetup Oracle Database MAD_BCN: 1.3 Gestión del ciclo de vida de Oracle Datab...
Meetup Oracle Database MAD_BCN: 1.3 Gestión del ciclo de vida de Oracle Datab...Meetup Oracle Database MAD_BCN: 1.3 Gestión del ciclo de vida de Oracle Datab...
Meetup Oracle Database MAD_BCN: 1.3 Gestión del ciclo de vida de Oracle Datab...
avanttic Consultoría Tecnológica
 
Oracle GoldenGate 21c New Features and Best Practices
Oracle GoldenGate 21c New Features and Best PracticesOracle GoldenGate 21c New Features and Best Practices
Oracle GoldenGate 21c New Features and Best Practices
Bobby Curtis
 
Hive 3 - a new horizon
Hive 3 - a new horizonHive 3 - a new horizon
Hive 3 - a new horizon
Thejas Nair
 
Managing Apache HAWQ with Apache AMBARI
Managing Apache HAWQ with Apache AMBARIManaging Apache HAWQ with Apache AMBARI
Managing Apache HAWQ with Apache AMBARI
Mithun (Matt) Mathew
 
Integrating Apache NiFi and Apache Apex
Integrating Apache NiFi and Apache Apex Integrating Apache NiFi and Apache Apex
Integrating Apache NiFi and Apache Apex
Apache Apex
 
Hive 3 a new horizon
Hive 3  a new horizonHive 3  a new horizon
Hive 3 a new horizon
Artem Ervits
 
How many ways to monitor oracle golden gate - OOW14
How many ways to monitor oracle golden gate - OOW14How many ways to monitor oracle golden gate - OOW14
How many ways to monitor oracle golden gate - OOW14
Bobby Curtis
 
Apache Geode Meetup, Cork, Ireland at CIT
Apache Geode Meetup, Cork, Ireland at CITApache Geode Meetup, Cork, Ireland at CIT
Apache Geode Meetup, Cork, Ireland at CIT
Apache Geode
 
Multitenancy At Bloomberg - HBase and Oozie
Multitenancy At Bloomberg - HBase and OozieMultitenancy At Bloomberg - HBase and Oozie
Multitenancy At Bloomberg - HBase and Oozie
DataWorks Summit
 
ApexMeetup Geode - Talk1 2016-03-17
ApexMeetup Geode - Talk1 2016-03-17ApexMeetup Geode - Talk1 2016-03-17
ApexMeetup Geode - Talk1 2016-03-17
Apache Apex Organizer
 
Exachk and oem12c
Exachk and oem12cExachk and oem12c
Exachk and oem12c
Bobby Curtis
 
Hive acid and_2.x new_features
Hive acid and_2.x new_featuresHive acid and_2.x new_features
Hive acid and_2.x new_features
Alberto Romero
 
Insync10 goldengate
Insync10 goldengateInsync10 goldengate
Insync10 goldengate
InSync Conference
 
HDF: Hortonworks DataFlow: Technical Workshop
HDF: Hortonworks DataFlow: Technical WorkshopHDF: Hortonworks DataFlow: Technical Workshop
HDF: Hortonworks DataFlow: Technical Workshop
Hortonworks
 
Winning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenantWinning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenant
Pini Dibask
 
Geode Meetup Apachecon
Geode Meetup ApacheconGeode Meetup Apachecon
Geode Meetup Apachecon
upthewaterspout
 
Hive LLAP: A High Performance, Cost-effective Alternative to Traditional MPP ...
Hive LLAP: A High Performance, Cost-effective Alternative to Traditional MPP ...Hive LLAP: A High Performance, Cost-effective Alternative to Traditional MPP ...
Hive LLAP: A High Performance, Cost-effective Alternative to Traditional MPP ...
DataWorks Summit
 

What's hot (20)

Oracle GoldenGate on Docker
Oracle GoldenGate on DockerOracle GoldenGate on Docker
Oracle GoldenGate on Docker
 
Oem12c patching -OOW13
Oem12c patching -OOW13Oem12c patching -OOW13
Oem12c patching -OOW13
 
Hitchhiker's Guide to free Oracle tuning tools
Hitchhiker's Guide to free Oracle tuning toolsHitchhiker's Guide to free Oracle tuning tools
Hitchhiker's Guide to free Oracle tuning tools
 
Meetup Oracle Database MAD_BCN: 1.3 Gestión del ciclo de vida de Oracle Datab...
Meetup Oracle Database MAD_BCN: 1.3 Gestión del ciclo de vida de Oracle Datab...Meetup Oracle Database MAD_BCN: 1.3 Gestión del ciclo de vida de Oracle Datab...
Meetup Oracle Database MAD_BCN: 1.3 Gestión del ciclo de vida de Oracle Datab...
 
Oracle GoldenGate 21c New Features and Best Practices
Oracle GoldenGate 21c New Features and Best PracticesOracle GoldenGate 21c New Features and Best Practices
Oracle GoldenGate 21c New Features and Best Practices
 
Hive 3 - a new horizon
Hive 3 - a new horizonHive 3 - a new horizon
Hive 3 - a new horizon
 
Managing Apache HAWQ with Apache AMBARI
Managing Apache HAWQ with Apache AMBARIManaging Apache HAWQ with Apache AMBARI
Managing Apache HAWQ with Apache AMBARI
 
Integrating Apache NiFi and Apache Apex
Integrating Apache NiFi and Apache Apex Integrating Apache NiFi and Apache Apex
Integrating Apache NiFi and Apache Apex
 
Hive 3 a new horizon
Hive 3  a new horizonHive 3  a new horizon
Hive 3 a new horizon
 
How many ways to monitor oracle golden gate - OOW14
How many ways to monitor oracle golden gate - OOW14How many ways to monitor oracle golden gate - OOW14
How many ways to monitor oracle golden gate - OOW14
 
Apache Geode Meetup, Cork, Ireland at CIT
Apache Geode Meetup, Cork, Ireland at CITApache Geode Meetup, Cork, Ireland at CIT
Apache Geode Meetup, Cork, Ireland at CIT
 
Multitenancy At Bloomberg - HBase and Oozie
Multitenancy At Bloomberg - HBase and OozieMultitenancy At Bloomberg - HBase and Oozie
Multitenancy At Bloomberg - HBase and Oozie
 
ApexMeetup Geode - Talk1 2016-03-17
ApexMeetup Geode - Talk1 2016-03-17ApexMeetup Geode - Talk1 2016-03-17
ApexMeetup Geode - Talk1 2016-03-17
 
Exachk and oem12c
Exachk and oem12cExachk and oem12c
Exachk and oem12c
 
Hive acid and_2.x new_features
Hive acid and_2.x new_featuresHive acid and_2.x new_features
Hive acid and_2.x new_features
 
Insync10 goldengate
Insync10 goldengateInsync10 goldengate
Insync10 goldengate
 
HDF: Hortonworks DataFlow: Technical Workshop
HDF: Hortonworks DataFlow: Technical WorkshopHDF: Hortonworks DataFlow: Technical Workshop
HDF: Hortonworks DataFlow: Technical Workshop
 
Winning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenantWinning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenant
 
Geode Meetup Apachecon
Geode Meetup ApacheconGeode Meetup Apachecon
Geode Meetup Apachecon
 
Hive LLAP: A High Performance, Cost-effective Alternative to Traditional MPP ...
Hive LLAP: A High Performance, Cost-effective Alternative to Traditional MPP ...Hive LLAP: A High Performance, Cost-effective Alternative to Traditional MPP ...
Hive LLAP: A High Performance, Cost-effective Alternative to Traditional MPP ...
 

Similar to Application High Availability and Upgrades Using Oracle GoldenGate

Extreme replication at IOUG Collaborate 15
Extreme replication at IOUG Collaborate 15Extreme replication at IOUG Collaborate 15
Extreme replication at IOUG Collaborate 15
Bobby Curtis
 
OGG Architecture Performance
OGG Architecture PerformanceOGG Architecture Performance
OGG Architecture Performance
Enkitec
 
MySql's NoSQL -- best of both worlds on the same disks
MySql's NoSQL -- best of both worlds on the same disksMySql's NoSQL -- best of both worlds on the same disks
MySql's NoSQL -- best of both worlds on the same disks
Dave Stokes
 
Best practices in Deploying SUSE CaaS Platform v3
Best practices in Deploying SUSE CaaS Platform v3Best practices in Deploying SUSE CaaS Platform v3
Best practices in Deploying SUSE CaaS Platform v3
Juan Herrera Utande
 
9.6_Course Material-Postgresql_002.pdf
9.6_Course Material-Postgresql_002.pdf9.6_Course Material-Postgresql_002.pdf
9.6_Course Material-Postgresql_002.pdf
sreedb2
 
GoldenGate and Oracle Data Integrator - A Perfect Match- Upgrade to 12c
GoldenGate and Oracle Data Integrator - A Perfect Match- Upgrade to 12cGoldenGate and Oracle Data Integrator - A Perfect Match- Upgrade to 12c
GoldenGate and Oracle Data Integrator - A Perfect Match- Upgrade to 12c
Michael Rainey
 
Oracle GoldenGate Performance Tuning
Oracle GoldenGate Performance TuningOracle GoldenGate Performance Tuning
Oracle GoldenGate Performance Tuning
Bobby Curtis
 
Golden Gate - How to start such a project?
Golden Gate  - How to start such a project?Golden Gate  - How to start such a project?
Golden Gate - How to start such a project?
Trivadis
 
Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster
Fran Navarro
 
Simplifying Hadoop with RecordService, A Secure and Unified Data Access Path ...
Simplifying Hadoop with RecordService, A Secure and Unified Data Access Path ...Simplifying Hadoop with RecordService, A Secure and Unified Data Access Path ...
Simplifying Hadoop with RecordService, A Secure and Unified Data Access Path ...
Cloudera, Inc.
 
StackVelocity Overview
StackVelocity OverviewStackVelocity Overview
StackVelocity Overview
StackVelocity
 
Oracle golden gate 12c New Features
Oracle golden gate 12c New FeaturesOracle golden gate 12c New Features
Oracle golden gate 12c New Features
Satishbabu Gunukula
 
ChaitanyaPrati
ChaitanyaPratiChaitanyaPrati
ChaitanyaPrati
Chaitanya Prati
 
Coherence RoadMap 2018
Coherence RoadMap 2018Coherence RoadMap 2018
Coherence RoadMap 2018
harvraja
 
AIOUG-GroundBreakers-Jul 2019 - 19c RAC
AIOUG-GroundBreakers-Jul 2019 - 19c RACAIOUG-GroundBreakers-Jul 2019 - 19c RAC
AIOUG-GroundBreakers-Jul 2019 - 19c RAC
Sandesh Rao
 
Apache Kudu Fast Analytics on Fast Data (Hadoop / Spark Conference Japan 2016...
Apache Kudu Fast Analytics on Fast Data (Hadoop / Spark Conference Japan 2016...Apache Kudu Fast Analytics on Fast Data (Hadoop / Spark Conference Japan 2016...
Apache Kudu Fast Analytics on Fast Data (Hadoop / Spark Conference Japan 2016...
Hadoop / Spark Conference Japan
 
Designing for operability and managability
Designing for operability and managabilityDesigning for operability and managability
Designing for operability and managability
Gaurav Bahrani
 
Partner webinar featuring CatDV
Partner webinar featuring CatDVPartner webinar featuring CatDV
Partner webinar featuring CatDV
FileCatalyst
 
Design and Deploy Secure Clouds for Financial Services Use Cases
Design and Deploy Secure Clouds for Financial Services Use CasesDesign and Deploy Secure Clouds for Financial Services Use Cases
Design and Deploy Secure Clouds for Financial Services Use Cases
PLUMgrid
 
MySQL as a Document Store
MySQL as a Document StoreMySQL as a Document Store
MySQL as a Document Store
Ted Wennmark
 

Similar to Application High Availability and Upgrades Using Oracle GoldenGate (20)

Extreme replication at IOUG Collaborate 15
Extreme replication at IOUG Collaborate 15Extreme replication at IOUG Collaborate 15
Extreme replication at IOUG Collaborate 15
 
OGG Architecture Performance
OGG Architecture PerformanceOGG Architecture Performance
OGG Architecture Performance
 
MySql's NoSQL -- best of both worlds on the same disks
MySql's NoSQL -- best of both worlds on the same disksMySql's NoSQL -- best of both worlds on the same disks
MySql's NoSQL -- best of both worlds on the same disks
 
Best practices in Deploying SUSE CaaS Platform v3
Best practices in Deploying SUSE CaaS Platform v3Best practices in Deploying SUSE CaaS Platform v3
Best practices in Deploying SUSE CaaS Platform v3
 
9.6_Course Material-Postgresql_002.pdf
9.6_Course Material-Postgresql_002.pdf9.6_Course Material-Postgresql_002.pdf
9.6_Course Material-Postgresql_002.pdf
 
GoldenGate and Oracle Data Integrator - A Perfect Match- Upgrade to 12c
GoldenGate and Oracle Data Integrator - A Perfect Match- Upgrade to 12cGoldenGate and Oracle Data Integrator - A Perfect Match- Upgrade to 12c
GoldenGate and Oracle Data Integrator - A Perfect Match- Upgrade to 12c
 
Oracle GoldenGate Performance Tuning
Oracle GoldenGate Performance TuningOracle GoldenGate Performance Tuning
Oracle GoldenGate Performance Tuning
 
Golden Gate - How to start such a project?
Golden Gate  - How to start such a project?Golden Gate  - How to start such a project?
Golden Gate - How to start such a project?
 
Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster
 
Simplifying Hadoop with RecordService, A Secure and Unified Data Access Path ...
Simplifying Hadoop with RecordService, A Secure and Unified Data Access Path ...Simplifying Hadoop with RecordService, A Secure and Unified Data Access Path ...
Simplifying Hadoop with RecordService, A Secure and Unified Data Access Path ...
 
StackVelocity Overview
StackVelocity OverviewStackVelocity Overview
StackVelocity Overview
 
Oracle golden gate 12c New Features
Oracle golden gate 12c New FeaturesOracle golden gate 12c New Features
Oracle golden gate 12c New Features
 
ChaitanyaPrati
ChaitanyaPratiChaitanyaPrati
ChaitanyaPrati
 
Coherence RoadMap 2018
Coherence RoadMap 2018Coherence RoadMap 2018
Coherence RoadMap 2018
 
AIOUG-GroundBreakers-Jul 2019 - 19c RAC
AIOUG-GroundBreakers-Jul 2019 - 19c RACAIOUG-GroundBreakers-Jul 2019 - 19c RAC
AIOUG-GroundBreakers-Jul 2019 - 19c RAC
 
Apache Kudu Fast Analytics on Fast Data (Hadoop / Spark Conference Japan 2016...
Apache Kudu Fast Analytics on Fast Data (Hadoop / Spark Conference Japan 2016...Apache Kudu Fast Analytics on Fast Data (Hadoop / Spark Conference Japan 2016...
Apache Kudu Fast Analytics on Fast Data (Hadoop / Spark Conference Japan 2016...
 
Designing for operability and managability
Designing for operability and managabilityDesigning for operability and managability
Designing for operability and managability
 
Partner webinar featuring CatDV
Partner webinar featuring CatDVPartner webinar featuring CatDV
Partner webinar featuring CatDV
 
Design and Deploy Secure Clouds for Financial Services Use Cases
Design and Deploy Secure Clouds for Financial Services Use CasesDesign and Deploy Secure Clouds for Financial Services Use Cases
Design and Deploy Secure Clouds for Financial Services Use Cases
 
MySQL as a Document Store
MySQL as a Document StoreMySQL as a Document Store
MySQL as a Document Store
 

Recently uploaded

哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样
哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样
哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样
qo1as76n
 
一比一原版(UoN毕业证书)纽卡斯尔大学毕业证如何办理
一比一原版(UoN毕业证书)纽卡斯尔大学毕业证如何办理一比一原版(UoN毕业证书)纽卡斯尔大学毕业证如何办理
一比一原版(UoN毕业证书)纽卡斯尔大学毕业证如何办理
f22b6g9c
 
Graphic Design Tools and Software .pptx
Graphic Design Tools and Software   .pptxGraphic Design Tools and Software   .pptx
Graphic Design Tools and Software .pptx
Virtual Real Design
 
AHMED TALAAT ARCHITECTURE PORTFOLIO .pdf
AHMED TALAAT ARCHITECTURE PORTFOLIO .pdfAHMED TALAAT ARCHITECTURE PORTFOLIO .pdf
AHMED TALAAT ARCHITECTURE PORTFOLIO .pdf
talaatahm
 
一比一原版马里兰大学毕业证(UMD毕业证书)如何办理
一比一原版马里兰大学毕业证(UMD毕业证书)如何办理一比一原版马里兰大学毕业证(UMD毕业证书)如何办理
一比一原版马里兰大学毕业证(UMD毕业证书)如何办理
9lq7ultg
 
一比一原版美国哥伦比亚大学毕业证Columbia成绩单一模一样
一比一原版美国哥伦比亚大学毕业证Columbia成绩单一模一样一比一原版美国哥伦比亚大学毕业证Columbia成绩单一模一样
一比一原版美国哥伦比亚大学毕业证Columbia成绩单一模一样
881evgn0
 
一比一原版布兰登大学毕业证(BU毕业证书)如何办理
一比一原版布兰登大学毕业证(BU毕业证书)如何办理一比一原版布兰登大学毕业证(BU毕业证书)如何办理
一比一原版布兰登大学毕业证(BU毕业证书)如何办理
wkip62b
 
定制美国西雅图城市大学毕业证学历证书原版一模一样
定制美国西雅图城市大学毕业证学历证书原版一模一样定制美国西雅图城市大学毕业证学历证书原版一模一样
定制美国西雅图城市大学毕业证学历证书原版一模一样
qo1as76n
 
NHR Engineers Portfolio 2023 2024 NISHANT RATHI
NHR Engineers Portfolio 2023 2024 NISHANT RATHINHR Engineers Portfolio 2023 2024 NISHANT RATHI
NHR Engineers Portfolio 2023 2024 NISHANT RATHI
NishantRathi18
 
一比一原版(LaTrobe毕业证书)拉筹伯大学毕业证如何办理
一比一原版(LaTrobe毕业证书)拉筹伯大学毕业证如何办理一比一原版(LaTrobe毕业证书)拉筹伯大学毕业证如何办理
一比一原版(LaTrobe毕业证书)拉筹伯大学毕业证如何办理
67n7f53
 
一比一原版肯特大学毕业证UKC成绩单一模一样
一比一原版肯特大学毕业证UKC成绩单一模一样一比一原版肯特大学毕业证UKC成绩单一模一样
一比一原版肯特大学毕业证UKC成绩单一模一样
tobbk6s8
 
International Upcycling Research Network advisory board meeting 4
International Upcycling Research Network advisory board meeting 4International Upcycling Research Network advisory board meeting 4
International Upcycling Research Network advisory board meeting 4
Kyungeun Sung
 
按照学校原版(UIUC文凭证书)伊利诺伊大学|厄巴纳-香槟分校毕业证快速办理
按照学校原版(UIUC文凭证书)伊利诺伊大学|厄巴纳-香槟分校毕业证快速办理按照学校原版(UIUC文凭证书)伊利诺伊大学|厄巴纳-香槟分校毕业证快速办理
按照学校原版(UIUC文凭证书)伊利诺伊大学|厄巴纳-香槟分校毕业证快速办理
kuapy
 
ADESGN3S_Case-Study-Municipal-Health-Center.pdf
ADESGN3S_Case-Study-Municipal-Health-Center.pdfADESGN3S_Case-Study-Municipal-Health-Center.pdf
ADESGN3S_Case-Study-Municipal-Health-Center.pdf
GregMichaelTapawan
 
Introduction to User experience design for beginner
Introduction to User experience design for beginnerIntroduction to User experience design for beginner
Introduction to User experience design for beginner
ellemjani
 
LGBTQIA Pride Month presentation Template
LGBTQIA Pride Month presentation TemplateLGBTQIA Pride Month presentation Template
LGBTQIA Pride Month presentation Template
DakshGudwani
 
一比一原版(CSU毕业证书)查尔斯特大学毕业证如何办理
一比一原版(CSU毕业证书)查尔斯特大学毕业证如何办理一比一原版(CSU毕业证书)查尔斯特大学毕业证如何办理
一比一原版(CSU毕业证书)查尔斯特大学毕业证如何办理
67n7f53
 
NHL Stenden University of Applied Sciences Diploma Degree Transcript
NHL Stenden University of Applied Sciences Diploma Degree TranscriptNHL Stenden University of Applied Sciences Diploma Degree Transcript
NHL Stenden University of Applied Sciences Diploma Degree Transcript
lhtvqoag
 
一比一原版(soton毕业证书)英国南安普顿大学毕业证在读证明如何办理
一比一原版(soton毕业证书)英国南安普顿大学毕业证在读证明如何办理一比一原版(soton毕业证书)英国南安普顿大学毕业证在读证明如何办理
一比一原版(soton毕业证书)英国南安普顿大学毕业证在读证明如何办理
yufen5
 
modular-kitchen home plan civil engineering.pdf
modular-kitchen home plan civil engineering.pdfmodular-kitchen home plan civil engineering.pdf
modular-kitchen home plan civil engineering.pdf
RashmitaSwain3
 

Recently uploaded (20)

哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样
哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样
哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样
 
一比一原版(UoN毕业证书)纽卡斯尔大学毕业证如何办理
一比一原版(UoN毕业证书)纽卡斯尔大学毕业证如何办理一比一原版(UoN毕业证书)纽卡斯尔大学毕业证如何办理
一比一原版(UoN毕业证书)纽卡斯尔大学毕业证如何办理
 
Graphic Design Tools and Software .pptx
Graphic Design Tools and Software   .pptxGraphic Design Tools and Software   .pptx
Graphic Design Tools and Software .pptx
 
AHMED TALAAT ARCHITECTURE PORTFOLIO .pdf
AHMED TALAAT ARCHITECTURE PORTFOLIO .pdfAHMED TALAAT ARCHITECTURE PORTFOLIO .pdf
AHMED TALAAT ARCHITECTURE PORTFOLIO .pdf
 
一比一原版马里兰大学毕业证(UMD毕业证书)如何办理
一比一原版马里兰大学毕业证(UMD毕业证书)如何办理一比一原版马里兰大学毕业证(UMD毕业证书)如何办理
一比一原版马里兰大学毕业证(UMD毕业证书)如何办理
 
一比一原版美国哥伦比亚大学毕业证Columbia成绩单一模一样
一比一原版美国哥伦比亚大学毕业证Columbia成绩单一模一样一比一原版美国哥伦比亚大学毕业证Columbia成绩单一模一样
一比一原版美国哥伦比亚大学毕业证Columbia成绩单一模一样
 
一比一原版布兰登大学毕业证(BU毕业证书)如何办理
一比一原版布兰登大学毕业证(BU毕业证书)如何办理一比一原版布兰登大学毕业证(BU毕业证书)如何办理
一比一原版布兰登大学毕业证(BU毕业证书)如何办理
 
定制美国西雅图城市大学毕业证学历证书原版一模一样
定制美国西雅图城市大学毕业证学历证书原版一模一样定制美国西雅图城市大学毕业证学历证书原版一模一样
定制美国西雅图城市大学毕业证学历证书原版一模一样
 
NHR Engineers Portfolio 2023 2024 NISHANT RATHI
NHR Engineers Portfolio 2023 2024 NISHANT RATHINHR Engineers Portfolio 2023 2024 NISHANT RATHI
NHR Engineers Portfolio 2023 2024 NISHANT RATHI
 
一比一原版(LaTrobe毕业证书)拉筹伯大学毕业证如何办理
一比一原版(LaTrobe毕业证书)拉筹伯大学毕业证如何办理一比一原版(LaTrobe毕业证书)拉筹伯大学毕业证如何办理
一比一原版(LaTrobe毕业证书)拉筹伯大学毕业证如何办理
 
一比一原版肯特大学毕业证UKC成绩单一模一样
一比一原版肯特大学毕业证UKC成绩单一模一样一比一原版肯特大学毕业证UKC成绩单一模一样
一比一原版肯特大学毕业证UKC成绩单一模一样
 
International Upcycling Research Network advisory board meeting 4
International Upcycling Research Network advisory board meeting 4International Upcycling Research Network advisory board meeting 4
International Upcycling Research Network advisory board meeting 4
 
按照学校原版(UIUC文凭证书)伊利诺伊大学|厄巴纳-香槟分校毕业证快速办理
按照学校原版(UIUC文凭证书)伊利诺伊大学|厄巴纳-香槟分校毕业证快速办理按照学校原版(UIUC文凭证书)伊利诺伊大学|厄巴纳-香槟分校毕业证快速办理
按照学校原版(UIUC文凭证书)伊利诺伊大学|厄巴纳-香槟分校毕业证快速办理
 
ADESGN3S_Case-Study-Municipal-Health-Center.pdf
ADESGN3S_Case-Study-Municipal-Health-Center.pdfADESGN3S_Case-Study-Municipal-Health-Center.pdf
ADESGN3S_Case-Study-Municipal-Health-Center.pdf
 
Introduction to User experience design for beginner
Introduction to User experience design for beginnerIntroduction to User experience design for beginner
Introduction to User experience design for beginner
 
LGBTQIA Pride Month presentation Template
LGBTQIA Pride Month presentation TemplateLGBTQIA Pride Month presentation Template
LGBTQIA Pride Month presentation Template
 
一比一原版(CSU毕业证书)查尔斯特大学毕业证如何办理
一比一原版(CSU毕业证书)查尔斯特大学毕业证如何办理一比一原版(CSU毕业证书)查尔斯特大学毕业证如何办理
一比一原版(CSU毕业证书)查尔斯特大学毕业证如何办理
 
NHL Stenden University of Applied Sciences Diploma Degree Transcript
NHL Stenden University of Applied Sciences Diploma Degree TranscriptNHL Stenden University of Applied Sciences Diploma Degree Transcript
NHL Stenden University of Applied Sciences Diploma Degree Transcript
 
一比一原版(soton毕业证书)英国南安普顿大学毕业证在读证明如何办理
一比一原版(soton毕业证书)英国南安普顿大学毕业证在读证明如何办理一比一原版(soton毕业证书)英国南安普顿大学毕业证在读证明如何办理
一比一原版(soton毕业证书)英国南安普顿大学毕业证在读证明如何办理
 
modular-kitchen home plan civil engineering.pdf
modular-kitchen home plan civil engineering.pdfmodular-kitchen home plan civil engineering.pdf
modular-kitchen home plan civil engineering.pdf
 

Application High Availability and Upgrades Using Oracle GoldenGate

  • 1. Application High Availability and Upgrades Using Oracle GoldenGate March 2016
  • 2. We are a global systems integrator specializing on the Oracle platform •  Specialized Group Within Accenture Operations –  120 Consultants with an average of 15+ years of Oracle experience –  Worldwide leader in Exadata implementations (500+ performed to date) –  21 Oracle ACE members and directors •  Numerous Oracle specializations •  Accenture Engineered Systems Innovation Center •  http://registration.accenture.com/ehome/e4/home Accenture Enkitec Group Copyright © 2015 Accenture All rights reserved. 2 •  Oracle Data Warehouse •  Oracle Real Application Cluster •  Oracle Performance Tuning •  Oracle Database Security •  Oracle Database •  Oracle Exadata •  Oracle GoldenGate •  Oracle Data Integrator
  • 3. Infrastructure Principal •  17 years of Oracle Experience •  Completed multiple Sybase to Oracle RAC conversions •  Migrated numerous systems using Oracle GoldenGate to Oracle Engineered Systems •  Designed and deployed an Active / Active database solution for a shipment tracking system •  Architected a solution to process xml messages using Oracle XMLDB •  Visit my blog @ stborden.wordpress.com Shane Borden Copyright © 2015 Accenture All rights reserved. 3
  • 4. 4 Agenda •  Planning for an Active / Active Solution •  GoldenGate Architecture •  Replication Topology •  GoldenGate Conflict Detection and Resolution •  Demonstration •  Monitoring •  Summary •  Questions Copyright © 2015 Accenture All rights reserved.
  • 5. Planning for an Active / Active Database Solution 5Copyright © 2015 Accenture All rights reserved.
  • 6. 6 Planning for an Active / Active Database Solution •  Why Active / Active –  Elimination of planned downtime –  Data locality –  RPO vs. RTO –  Use of all purchased capacity –  Risk-free failover testing –  Load balancing •  Potential issues of Active / Active –  Scenario or rule based approach for data collisions –  Handling of a Switchover –  Application Compatibility –  Performance and Acceptable Transaction Latency –  Cost Copyright © 2015 Accenture All rights reserved.
  • 7. 7 Planning for an Active / Active Database Solution •  What SMEs should be involved •  Transaction Mapping •  Main goal is to MINIMIZE DATA CONFLICTS •  Discuss application behavior should LAG occur •  Determine maximum tolerance for site downtime •  GoldenGate vs. DataGuard •  Consider introducing Data Guard to handle local failure Copyright © 2015 Accenture All rights reserved.
  • 8. GoldenGate Architecture 8Copyright © 2015 Accenture All rights reserved.
  • 9. 9 GoldenGate Architecture - Overview Capture –  Extracts committed transactions by reading transaction logs –  Transactions written to a trail file –  Transaction filtering and transformation available –  Classic or Integrated mode (if on Oracle) Delivery –  Applies trail records to target while maintaining transactional integrity –  Transaction filtering and transformation available –  SQL Apply or Integrated mode (if on Oracle) Copyright © 2015 Accenture All rights reserved. Pump –  Routes and writes trails to target location. –  Transaction filtering and transformation available –  Encryption and compression also available
  • 10. 10 GoldenGate Architecture - Topology Copyright © 2015 Accenture All rights reserved.
  • 11. 11 GoldenGate Architecture - Topology •  Understand and document where data flows •  Stick to traditional topologies •  Avoid Hub and Spoke –  Unless your design specifically anticipates that from the start Copyright © 2015 Accenture All rights reserved.
  • 12. 12 Front End Network Architecture - Topology –  Imperative that your networking team is involved –  Global Site Selector and Load Balancers are an important piece of the puzzle –  Needed to isolate sites at time of upgrades –  Also needed in order to ‘stick’ traffic to one site or another Copyright © 2015 Accenture All rights reserved.
  • 13. Prepare GoldenGate 13Copyright © 2015 Accenture All rights reserved.
  • 14. 14 Prepare GoldenGate Conflict Detection and Resolution •  Create, verify and document a CDR decision matrix –  Rule based resolution •  Decide which column is going to be used for decision process –  Oftentimes inserted or last updated date is used –  Other business rules •  Ensure there is a process to periodically review conflicts •  Excessive conflicts cause LAG •  Additional Parameters Required for CDR –  Integrated vs. Classic Copyright © 2015 Accenture All rights reserved.
  • 15. 15 Hardware Preparations •  Disk for trail files –  ACFS / DBFS / NAS •  Leverage Clusterware for failover management –  Utilize a VIP address for delivery process –  Use oraagent script or bundled XA Agents (Preferred) to manage manager / extract / replicat –  Be aware that clusterware now controls GoldenGate •  Proper supplemental logging •  Consider other bottlenecks –  I/O Performance Copyright © 2015 Accenture All rights reserved. Prepare GoldenGate
  • 16. 16 Prepare GoldenGate Clusterware Preparations •  Add a VIP: –  srvctl add network -k 2 -S 192.168.56.0/255.255.255.0/eth3 –v –  srvctl add vip -n orcl11g-rac1 -k 2 -A 192.168.56.0/255.255.255.0/eth3 -v –  crsctl stat type ora.cluster_vip_net2.type –  appvipcfg create -network=2 -ip=192.168.56.177 -vipname=orcl11g-ggvip -user=oracle •  Add Clusterware Resource (deprecated): –  crsctl add resource orcl11g-rac1-ggateapp -type cluster_resource -attr "ACTION_SCRIPT= $CRS_HOME/crs/public/goldengate_action.sh, CHECK_INTERVAL=30, START_DEPENDENCIES='hard(orcl11g-ggvip) pullup(orcl11g-ggvip)', STOP_DEPENDENCIES='hard(orcl11g-ggvip)',ACL='owner:oracle:rwx,pgrp:dba:rwx,other::r--', SCRIPT_TIMEOUT=360” •  Additional Script Needed / Lots of Moving Parts Copyright © 2015 Accenture All rights reserved.
  • 17. 17 Prepare GoldenGate Clusterware Preparations •  Bundled XA Agent is Preferred (MOS 1527310.1) –  Separate Install –  Get Latest Version –  Pre-Create the VIP or let the Bundled Agent Create –  agctl add goldengate gg_soe --gg_home /acfsmounts/acfsvol1/ogg --instance_type source --nodes orcl11g-rac1,orcl11g-rac2 --vip_name orcl11g-ggvip --filesystems ora.acfs.acfsvol1.acfs --databases ora.vboxrac.db --oracle_home /u01/app/oracle/product/11.2.0.4/db --monitor_extracts E_SOE_R1,P_SOE_R1 Copyright © 2015 Accenture All rights reserved.
  • 18. 18 Schema Preparations •  Sequences –  Avoid Even / Odd Strategy –  N+10 Strategy –  Sequence Rollover •  Identity columns in 12c •  Understand application changes necessary for CDR –  Trigger based –  Application Maintained –  Mixture Copyright © 2015 Accenture All rights reserved. Prepare GoldenGate
  • 19. 19 Prepare GoldenGate Table Preparation •  Trandata •  Understand columns for CDR •  Keep it Simple by Using the Same Column for CDR •  Determine method to instantiate data used for Conflict Detection / Resolution (CDR) •  Instantiate CDR Column –  Beware the NULL Value in Some Versions of GoldenGate –  One Site or All Sites Copyright © 2015 Accenture All rights reserved.
  • 20. 20 Prepare GoldenGate Trail File Additional Data and Data Protection •  Exception handling •  Consider Metadata to Include in Trail •  Useful in the Debugging / Error Handling Process •  Can be Used in Rule Based Apply Within Replicat •  Handle Potential Transaction Loopback •  EXCLUDEUSER •  Process Tags in a Trail Record •  TRANLOGOPTIONS EXCLUDETAG (extract) •  DBOPTIONS SETTAG (replicat) Copyright © 2015 Accenture All rights reserved.
  • 21. 21 Target System CDR Parameters •  Integrated and Classic Replicat: –  COMPARECOLS –  ON UPDATE KEYINCLUDING (LAST_UPDT_TMSTP) –  ON DELETE KEYINCLUDING (LAST_UPDT_TMSTP)) –  UPDATEROWEXISTS, (DEFAULT, USEMAX (LAST_UPDT_TMSTP)) –  INSERTROWEXISTS, (DEFAULT, USEMAX (LAST_UPDT_TMSTP)) –  DELETEROWEXISTS, (DEFAULT, OVERWRITE) –  UPDATEROWMISSING, (DEFAULT, OVERWRITE) –  DELETEROWMISSING, (DEFAULT, DISCARD) –  REPERROR (DEFAULT, EXCEPTION); •  Classic Replicat or Mixed Extract / Replicat Requires Additional Parameters GETUPDATEBEFORES Copyright © 2015 Accenture All rights reserved. Prepare GoldenGate Source System CDR Parameters •  Supplemental logging ALLCOLS always required •  Integrated Extract: TRANLOGOPTIONS INTEGRATEDPARAMS (...) LOGALLSUPCOLS UPDATERECORDFORMAT COMPACT •  Classic Extract or Mixed Integrated / Classic: GETUPDATEBEFORES NOCOMPRESSDELETES NOCOMPRESSUPDATES •  Don’t Forget Token Data
  • 22. 22 Prepare GoldenGate Exception Handling –  Log All Occurrences of CDR Actions –  Triggered by Exception Handling of Prior Map Statement –  Decide Which Metadata to Include •  @DATE ('YYYY-MM-DD HH:MI:SS.FFFFFF', 'JTS', @GETENV ('JULIANTIMESTAMP')) •  @GETENV –  RECORD –  GGENVIRONMENT –  GGHEADER –  LASTERR –  TRANSACTION –  STATS •  @BEFORE Copyright © 2015 Accenture All rights reserved.
  • 23. Application Changes / Database Maintenance 23Copyright © 2015 Accenture All rights reserved.
  • 24. 24 Application Changes / Database Maintenance •  Decide / Document / Test allowable Changes •  Make sure Everything is Still Backward Compatible with Existing Trail Data –  Not null to null –  Column expansion –  Addition of Indexes –  Column addition •  Methodology also Useful for Database Maintenance –  Index Maintenance –  Table Shrink / HWM Modification –  Partitioning Changes Copyright © 2015 Accenture All rights reserved.
  • 25. 25 Application Changes / Database Maintenance Example Implementation Steps •  Modify GSS to Failover Traffic From One Site to Another •  Implement Schema Changes / Database Maintenance •  Modify GSS to Failover Traffic to Upgraded Site •  Complete Schema Changes / Database Maintenance on Other Site •  Modify GSS to Allow Traffic at Both Sites Copyright © 2015 Accenture All rights reserved.
  • 26. CDR Monitoring 26Copyright © 2015 Accenture All rights reserved.
  • 27. 27 CDR Monitoring –  Report CDR stats via ggsci interface •  stats replicat [replicat name] report cdr Cumulative totals for specified table(s): *** Total statistics since 2016-02-24 19:19:32 *** Total inserts 0.00 Total updates 1815508.00 Total deletes 0.00 Total discards 0.00 Total operations 1815508.00 Total CDR conflicts 900204.00 CDR resolutions succeeded 900204.00 CDR UPDATEROWEXISTS conflicts 866829.00 CDR UPDATEROWMISSING conflicts 33375.00 Copyright © 2015 Accenture All rights reserved.
  • 28. 28 CDR Monitoring –  Report CDR stats to the report file •  send replicat [replicat name] report From Table SOE.INVENTORIES to SOE.INVENTORIES: # inserts: 0 # updates: 915304 # deletes: 0 # discards: 0 # CDR conflicts : 900204 # CDR resolutions succeeded : 900204 # CDR UPDATEROWEXISTS conflicts : 866829 # CDR UPDATEROWMISSING conflicts: 33375 From Table SOE.INVENTORIES to SOE.CONFLICT_LOG: # inserts: 0 # updates: 900204 # deletes: 0 # discards: 0 Copyright © 2015 Accenture All rights reserved.
  • 29. 29 CDR Monitoring –  Report CDR stats to a table (enabled in replicat parameter file) •  @GETENV ('STATS','CDR_CONFLICTS') •  @GETENV ('STATS','CDR_RESOLUTIONS_SUCCEEDED') •  @GETENV ('STATS','CDR_RESOLUTIONS_FAILED’) Copyright © 2015 Accenture All rights reserved.
  • 30. 30 CDR Monitoring Why is There a Performance Difference? *** Total statistics since 2016-02-24 19:19:32 *** Total inserts/second: 0.00 Total updates/second: 596.70 Total deletes/second: 0.00 Total discards/second: 0.00 Total operations/second: 596.70 *** Total statistics since 2016-02-24 20:24:04 *** Total inserts/second: 0.00 Total updates/second: 1572.29 Total deletes/second: 0.00 Total discards/second: 0.00 Total operations/second: 1572.29 Copyright © 2015 Accenture All rights reserved.
  • 31. Questions? 31Copyright © 2015 Accenture All rights reserved.