Providing real-time data to its global customers is a necessity for IFPI (International Federation of the Phonographic Industry), a not-for-profit organization with a mission to safeguard the rights of record producers and promote the value of recorded music. Using Oracle Streams and Oracle Warehouse Builder (OWB) for real-time data replication and integration, meeting this goal was becoming a challenge. The solution was difficult to maintain and overall throughput was degrading as data volume increased. The need for greater stability and performance led IFPI to implement Oracle GoldenGate and Oracle Data Integrator. This session will describe the innovative approach taken to complete the migration from a Streams and OWB implementation to a more robust, maintainable, and performant GoldenGate and ODI integrated solution.
3. T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or āØ
+61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)
E : info@rittmanmead.com
W : www.rittmanmead.com
About Rittman Mead
ā¢ Oracle Gold partner with offices in US
(Atlanta), Europe, Australia, India and
South Africa
ā¢ World leading specialist partner for
technical excellence, solutions delivery
and innovation in Oracle BI
ā¢ Provide consulting, training, global
managed services for customers around
the world
ā¢ 120+ consultants including 1 Oracle
ACE Director, 3 Oracle ACEs and 1
Oracle ACE Associate
ā¢ All expert in Oracle BI, DW, EPM and
Analytics tech
ā¢ Skills in broad range of supporting
Oracle tools: OBIEE, OBIA, ODIEE,
Essbase, Oracle OLAP, GoldenGate,
Exadata, Endeca
ā¢ Blog : http://www.rittmanmead.com/blog/
ā¢ Twitter : @rittmanmead
4. www.rittmanmead.com inquiries@rittmanmead.com @rittmanmead
Introduction
ā¢Nick Hurt (IFPI)
ā£Solutions Developer at IFPI - using Oracle since 2002
@nicholas_hurt
ā¢IFPI = International Federation of Photographic Industries
ā£represents the interests of recording industry worldwide
ā£green light for OBIEE in 2010
ā£required ānearā real-time anti-piracy analytics
ā£joined in 2011 to work on delivery
5. www.rittmanmead.com inquiries@rittmanmead.com @rittmanmead
Agenda
ā¢IFPI data - the good, the challenging, the ugly
ā¢Pre-upgrade
ā£Environment
ā£Challenges
ā¢Overview of GoldenGate and Oracle Data Integrator
ā¢Upgrade - planning, migration steps
ā¢Post-upgrade results
ā¢Closing remarks on real-time warehousing
14. www.rittmanmead.com inquiries@rittmanmead.com @rittmanmead
Link Lifecycle
Time
Deleted /
Matching
t0+tn
Link Correction
Cease
& Desist
t1 = t0+tn
Link Actioned
Take-
down
t2 = t1+tn
Link Removed
Optional events
Infringing
URL Detected
t0
Link Found
Primary event
15. www.rittmanmead.com inquiries@rittmanmead.com @rittmanmead
Process Flow / Dataset
Event Detected
ETL
Cleansing
De-duping
Summaries
Dashboards
Fact table representation
Time Found Link New Unique File Unique Link Actioned Taken-down
4/10/14 2:50 PM www.4shared.com/rar/-6ebvl89/Justin_Bieber_-_All_Around_The.html 1 1 0 0
4/15/14 11:44 AM www.4shared.com/mp3/-2J4lahU/Nickel_Back_-_If_Everyone_Care.htm 1 1 0 0
4/15/14 2:50 PM www.4shared.com/rar/-6ebvl89 0 1 0 0
Time
16. www.rittmanmead.com inquiries@rittmanmead.com @rittmanmead
Process Flow / Dataset
Fact table representation
Time Found Link New Unique File Unique Link Actioned Taken-down
4/10/14 2:50 PM www.4shared.com/rar/-6ebvl89/Justin_Bieber_-_All_Around_The.html 1 1 1 1
4/15/14 11:44 AM www.4shared.com/mp3/-2J4lahU/Nickel_Back_-_If_Everyone_Care.htm 1 1 1 0
4/15/14 2:50 PM www.4shared.com/rar/-6ebvl89 0 1 1 1
4/15/14 11:01 PM www.4shared.com/mp3/-qXkFru8/Kanye_West__Jay-Z_Bingo_Player.html 1
Event Detected Summaries
Dashboards
Time
ETL upserts
22. www.rittmanmead.com inquiries@rittmanmead.com @rittmanmead
Oracle Data Integrator 11g
ā¢Oracleās strategic product for data integration
ā¢Uses ELT (Extract, Load, Transform) approach
ā£No middle ETL engine necessary
ā£Uses the power of the target database to āØ
perform transformations
ā¢Supports heterogeneous data sources
ā¢Declarative design - separation of business and āØ
technical integration
ā¢Data integrity controls create a ādata firewallā
ā¢Extensible through āKnowledge Modulesā
23. www.rittmanmead.com inquiries@rittmanmead.com @rittmanmead
ODI 11g Journalizing (CDC)
ā¢Oracle Data Integrator Change Data Capture (CDC) delivered via Journalizing
ā£Identify, capture, and deliver changes made to source data
ā£Journalizing Knowledge Module (JKM) performs setup and creates infrastructure
ā¢ODI CDC Framework
ā£Capture Process - mechanism for capturing changed data from the source
database (Ex. Oracle GoldenGate)
ā£Journals - tables (J$) hold references to changed records and the change type
(insert / update / delete)
ā£Journalizing Views - (JV$, JV$D) provides access to changed data, used by IKM /
LKM in mappings
ā£Subscribers - used to allow consumption of changed data at different intervals, for
multiple applications, etc.
24. www.rittmanmead.com inquiries@rittmanmead.com @rittmanmead
GoldenGate and ODI Integration
ā¢JKM Oracle to Oracle Consistent (OGG) Knowledge Module
ā£ODI Metadata used to generate GoldenGate parameter files āØ
(extract, pump, replicate) andāØ
configuration files
ā£Delivered with ODI
ā¢ODI CDC Framework generated
ā£Staging table - replicate of āØ
source
ā£J$ (journal) table - change rows
ā¢Journalized data used in āØ
transformations (via JV$ views)
25. www.rittmanmead.com inquiries@rittmanmead.com @rittmanmead
GoldenGate and ODI Integration
ā¢JKM Oracle to Oracle Consistent (OGG) Knowledge Module
ā£ODI Metadata used to generate GoldenGate parameter files āØ
(extract, pump, replicate) andāØ
configuration files
ā£Delivered with ODI
ā¢ODI CDC Framework generated
ā£Staging table - replicate of āØ
source
ā£J$ (journal) table - change rows
ā¢Journalized data used in āØ
transformations (via JV$ views)
26. www.rittmanmead.com inquiries@rittmanmead.com @rittmanmead
Migration Decisions / Upgrade Planning
ā¢ODI Master repository location
ā¢GoldenGate considerations
ā£Installation and configuration (RAC is trickier)
ā£Classic vs Integrated capture (requires EE for both source & target)
ā£How to use it? Product built for migration and/or replication
ā£Naming conventions
ā¢OWB mappings to ODI interfaces
ā£Various migration approaches
ā¢Control, Monitoring & Alerting (no free lunch)
ā¢Testing & Go-live approach
27. www.rittmanmead.com inquiries@rittmanmead.com @rittmanmead
Migration Steps
ā¢Migrate OLTP applications to RAC
ā£GoldenGate RAC target kept in-sync during application migration
ā¢Performance tuning & ODI KM Modifications
ā£Retain existing CDC framework objects when adding new tables
ā£Update column mapping in replicat
ā£Remove unnecessary code in Integration Knowledge Module
ā¢Generate GoldenGate extract, pump and replicat
ā£ODI Journalizing Knowledge Module
ā£Source definitions file recommended
ā¢Migrate OWB mappings to ODI interfaces
ā£3Rs: re-assess, replicate and refine existing mappings
ā¢Test the migration
ā£Run both systems in parallel and compare results
ā£Trends, aggregates, row counts
31. www.rittmanmead.com inquiries@rittmanmead.com @rittmanmead
Control, Alerting and Monitoring
ā¢GoldenGate status and lag
ā¢ODI Agent monitoring
ā¢ETL throughput / health: ODI session tables
ā¢Enterprise Manager job scheduler to control ETL process
ā¢Monitoring dashboard
!
!
40. www.rittmanmead.com inquiries@rittmanmead.com @rittmanmead
Upgrade Results
ā¢Reduced lag
ā£From 5-15 minutes to <1 minute
ā¢Stabilised fact mapping with equivalent load volumes
ā£Pre-upgrade 2 mins - hours
ā£Post-upgrade 10 - 25 seconds
ā¢Reduced ETL downtime
ā£2+ days p/m to minutes p/m
ā¢Simpler to extend tables under CDC
ā¢Purging audit information <1 hour rather than days
41. www.rittmanmead.com inquiries@rittmanmead.com @rittmanmead
Upgrade Effects
ā¢Faster troubleshooting & diagnosis times
ā¢Shorter maintenance & development times
ā¢Focus on performance and streamlining processes
ā¢Investigation into excessive redo volumes
ā£Understanding incremental statistics
ā¢MDM project kick-off
ā¢Contemplation of The Reference Architectureā¦
42. www.rittmanmead.com inquiries@rittmanmead.com @rittmanmead
Reference Architecture & Realtime DW
ā¢Staging Data Layer
ā£Buffers reception for right-time distribution
ā£Apply business rules to make the data clean, consistent and complete
ā£Retain rejected data for manual/automatic correction
43. www.rittmanmead.com inquiries@rittmanmead.com @rittmanmead
Reference Architecture & Realtime DW
ā¢Staging Data Layer
ā£Buffers reception for right-time distribution
ā£Apply business rules to make the data clean, consistent and complete
ā£Retain rejected data for manual/automatic correction
ā¢Performance Layer
ā£Dimensional model - star schema
ā£Permanent & non-volatile data (traditionally speaking)
44. www.rittmanmead.com inquiries@rittmanmead.com @rittmanmead
Reference Architecture & Realtime DW
ā¢Staging Data Layer
ā£Buffers reception for right-time distribution
ā£Apply business rules to make the data clean, consistent and complete
ā£Retain rejected data for manual/automatic correction
ā¢Performance Layer
ā£Dimensional model - star schema
ā£Permanent & non-volatile data (traditionally speaking)
ā¢Something in-betweenā¦
ā£Caters for deeply volatile data by persisting historic and real-time facts
ā£Combines elements of staging and performance layers
ā£Facilitates agile de-coupled ETL processes