SlideShare a Scribd company logo
1 of 26
SQL SERVER DAYS 2012
SSIS & CDC IN SQL SERVER 2012
the perfect marriage




koen verbeeck
BI consultant
WHO AM I?
OUTLINE
• introduction to change data capture + demo

• control flow tasks+ demo

• data flow components+ demo

• Oracle as a source

• conclusion
INTRODUCTION
• change data capture (CDC)
  • designed to capture insert/update/delete data
    o make it available in “easily consumed” relational format
    o pretty much DIY in TSQL


  • introduced in SQL Server 2008
    o technically hasn’t changed in SQL Server 2012


  • alternative for change tracking

  • typically used in data warehouse scenarios
    o speed up extraction by incremental loads


• why?
  • more data everyday
  • less time to process it
    o full load vs. incremental load
INTRODUCTION
• CDC versus change tracking



                       CDC                    change tracking
 which changes?        insert/update/delete   insert/update/delete
 shows type of DML?    yes                    yes
 methodology?          asynchronous           synchronous
 column changed?       yes                    yes
 historical data?      yes                    no
 editions?             Enterprise only        all
DEMO
• showcase “2008” CDC
OUTLINE
• introduction to change data capture + demo

• control flow tasks+ demo

• data flow components+ demo

• Oracle as a source

• conclusion
CONTROL FLOW TASKS
• CDC control task

  • controls lifecycle of CDC packages
    o handles initial load synchronization
    o management of LSN ranges
    o error scenarios and recovery


  • stores state in SSIS variable and
    in database table

  • two operations
    o initial load
    o incremental load
DEMO
• initial load package
CONTROL FLOW TASKS
• initial load package




• also possible from snapshot
OUTLINE
• introduction to change data capture + demo

• control flow tasks+ demo

• data flow components+ demo

• Oracle as a source

• conclusion
DATA FLOW COMPONENTS
• CDC source
  • reads a range of change data
  • all / net changes
    o and everything in between
DATA FLOW COMPONENTS
• CDC splitter
  • basically a conditional split on steroids
    o … but without a GUI
  • splits flow of changed data into
    inserts, updates and deletes
  • do not combine with ALL CDC processing mode
    o order between operations is lost
DEMO
• incremental load package
DATA FLOW COMPONENTS
• incremental load package




• remember to run it twice…
  • use the __$reprocessing column to identify rows in need of attention
OUTLINE
• introduction to change data capture + demo

• control flow tasks+ demo

• data flow components+ demo

• Oracle as a source

• conclusion
ORACLE AS A SOURCE
• Oracle CDC components by Attunity
  • not installed by default
  • can be found on installation media /Tools/AttunityCDCOracle


                      CDC Designer




                                     CDC Service                          mirror   cdc
          log miner




                         figure modeled after slide of Matt Masson [16]
ORACLE AS A SOURCE
• Oracle CDC Service
  • prepare SQL Server
    o creates MSXDBCDC database + objects
  • local system account
    o logon as a policy permission
  • CDC service master password
    o used to encrypt Oracle credentials
  • one service per Oracle DB
ORACLE AS A SOURCE
• Oracle CDC Designer
  • create and manage CDC instances
    o multiple instances per service possible
  • contains
    o Oracle DB info
    o tables and columns being tracked
    o mirroring info
OUTLINE
• introduction to change data capture + demo

• control flow tasks+ demo

• data flow components+ demo

• Oracle as a source

• conclusion
CONCLUSION
• no new technical enhancements
• enhancements are on manageability level
  • provided by Attunity
• new SSIS tasks/components
  • CDC control task
  • CDC source
  • CDC splitter
• two types of packages
  • initial load
  • incremental load
  • remember the __$reprocessing column
• possible to use Oracle as CDC source
  • CDC service & designer
RESOURCES
• CDC 2008 & Change Tracking
  • [1] MSDN - Change Data Capture
    http://msdn.microsoft.com/en-us/library/bb522489(v=sql.105).aspx
  • [2] MSDN - Comparing Change Data Capture and Change Tracking
    http://msdn.microsoft.com/en-us/library/cc280519(v=sql.105).aspx
  • [3] Kendra Little - Change Data Capture vs Change Tracking
    http://www.littlekendra.com/2010/06/23/cdcvsct/


• CDC & SSIS 2012
  • [4] MSDN - CDC Control Task
    http://msdn.microsoft.com/en-us/library/hh758674.aspx
  • [5] MSDN - CDC Source
    http://msdn.microsoft.com/en-us/library/hh758686.aspx
  • [6] MSDN - CDC Splitter
    http://msdn.microsoft.com/en-us/library/hh758656.aspx
  • [7] MSDN - CDC Flow Components
    http://msdn.microsoft.com/en-us/library/hh231087.aspx
  • [8] MSDN - Define a State Variable
    http://msdn.microsoft.com/en-us/library/hh758667
  • [9] Allan Mitchell - SSIS CDC Processing Mode Not Updating Flag Attributes
    http://copperblueblog.com/2012/06/06/ssis-cdc-processing-mode-not-updating-flag-attributes/
RESOURCES
• CDC & SSIS 2012 (continued)
  • [10] Allan Mitchell - CDC Package Needs Executing Twice
   http://copperblueblog.com/2012/06/06/ssis-change-data-capture-cdc-package-needs-executing-twice/
  • [11] Allan Mitchell - Changes Made To Source During Full Load
   http://copperblueblog.com/2012/06/07/ssis-cdc-changes-made-to-source-during-full-load/
  • [12] Allan Mitchell - Batch Sizes, Fast Load, Commit Size And The OLE
    DB Destination
   http://copperblueblog.com/2012/10/02/batch-sizes-fast-load-commit-size-and-the-ole-db-destination/
  • [13] Matt Masson - CDC in SSIS for SQL Server 2012
   http://www.mattmasson.com/index.php/2011/12/cdc-in-ssis-for-sql-server-2012-2/
  • [14] Matt Masson - CDC Control Task Operations
   http://www.mattmasson.com/index.php/2012/02/cdc-control-task-operations/
  • [15] Matt Masson - Processing Modes for the CDC Source
   http://www.mattmasson.com/index.php/2012/01/processing-modes-for-the-cdc-source/
  • [16] Channel9 - TechEd North America (Matt Masson) - Incremental ETL Using CDC
    for SQL and Oracle with SQL Server Integration Services (SSIS) 2012
   http://channel9.msdn.com/Events/TechEd/NorthAmerica/2012/DBI322
RESOURCES
• CDC & Oracle
  • [17] TechNet Wiki - Installing Microsoft SQL Server 2012 Change Data Capture
    for Oracle by Attunity
   http://social.technet.microsoft.com/wiki/contents/articles/7647.installing-microsoft-sql-server-
   2012-change-data-capture-for-oracle-by-attunity.aspx
  • [18] SSIS blog MSDN - CDC for Oracle in SQL Server 2012
   http://blogs.msdn.com/b/mattm/archive/2012/03/26/cdc-for-oracle-in-sql-server-2012.aspx
  • [19] SSIS blog MSDN - Video about CDC for Oracle Databases in SSIS 2012
   http://blogs.msdn.com/b/mattm/archive/2012/07/10/video-about-cdc-for-oracle-databases-in-
   ssis-2012.aspx
Q&A
THANK YOU




    koen.verbeeck@ordina.be
    @Ko_Ver
    http://www.linkedin.com/in/kverbeeck




Partner Logo Here
                                           26

More Related Content

What's hot

Adapting and adopting spm v04
Adapting and adopting spm v04Adapting and adopting spm v04
Adapting and adopting spm v04Carlos Sierra
 
Liquibase - Open Source version control for your database
Liquibase - Open Source version control for your databaseLiquibase - Open Source version control for your database
Liquibase - Open Source version control for your databaseBlaine Carter
 
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 toolsBjoern Rost
 
Oem12c patching -OOW13
Oem12c patching -OOW13Oem12c patching -OOW13
Oem12c patching -OOW13Bobby Curtis
 
Oracle database 12c intro
Oracle database 12c introOracle database 12c intro
Oracle database 12c intropasalapudi
 
Oracle Performance Tools of the Trade
Oracle Performance Tools of the TradeOracle Performance Tools of the Trade
Oracle Performance Tools of the TradeCarlos Sierra
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsCarlos Sierra
 
Oracle RAC 12c and Policy-Managed Databases, a Technical Overview
Oracle RAC 12c and Policy-Managed Databases, a Technical OverviewOracle RAC 12c and Policy-Managed Databases, a Technical Overview
Oracle RAC 12c and Policy-Managed Databases, a Technical OverviewLudovico Caldara
 
OEM12c, DB12c and You! - RMOUG TD2014 Edition
OEM12c, DB12c and You! - RMOUG TD2014 EditionOEM12c, DB12c and You! - RMOUG TD2014 Edition
OEM12c, DB12c and You! - RMOUG TD2014 EditionBobby Curtis
 
Performance Management in Oracle 12c
Performance Management in Oracle 12cPerformance Management in Oracle 12c
Performance Management in Oracle 12cAlfredo Krieg
 
Oracle Database 12c - New Features for Developers and DBAs
Oracle Database 12c  - New Features for Developers and DBAsOracle Database 12c  - New Features for Developers and DBAs
Oracle Database 12c - New Features for Developers and DBAsAlex Zaballa
 
Oracle GoldenGate DB2 to Oracle11gR2 Configuration
Oracle GoldenGate DB2 to Oracle11gR2 ConfigurationOracle GoldenGate DB2 to Oracle11gR2 Configuration
Oracle GoldenGate DB2 to Oracle11gR2 Configurationgrigorianvlad
 
OUG Ireland Meet-up - Updates from Oracle Open World 2016
OUG Ireland Meet-up - Updates from Oracle Open World 2016OUG Ireland Meet-up - Updates from Oracle Open World 2016
OUG Ireland Meet-up - Updates from Oracle Open World 2016Brendan Tierney
 
Understanding SQL Trace, TKPROF and Execution Plan for beginners
Understanding SQL Trace, TKPROF and Execution Plan for beginnersUnderstanding SQL Trace, TKPROF and Execution Plan for beginners
Understanding SQL Trace, TKPROF and Execution Plan for beginnersCarlos Sierra
 
OOW 17 - database consolidation using the oracle multitenant architecture
OOW 17 - database consolidation using the oracle multitenant architectureOOW 17 - database consolidation using the oracle multitenant architecture
OOW 17 - database consolidation using the oracle multitenant architecturePini Dibask
 
Introducing the eDB360 Tool
Introducing the eDB360 ToolIntroducing the eDB360 Tool
Introducing the eDB360 ToolCarlos Sierra
 
Extreme Replication - RMOUG Presentation
Extreme Replication - RMOUG PresentationExtreme Replication - RMOUG Presentation
Extreme Replication - RMOUG PresentationBobby Curtis
 
Welcome to databases in the Cloud
Welcome to databases in the CloudWelcome to databases in the Cloud
Welcome to databases in the CloudNelson Calero
 
IOUG Data Integration SIG w/ Oracle GoldenGate Solutions and Configuration
IOUG Data Integration SIG w/ Oracle GoldenGate Solutions and ConfigurationIOUG Data Integration SIG w/ Oracle GoldenGate Solutions and Configuration
IOUG Data Integration SIG w/ Oracle GoldenGate Solutions and ConfigurationBobby Curtis
 

What's hot (20)

Adapting and adopting spm v04
Adapting and adopting spm v04Adapting and adopting spm v04
Adapting and adopting spm v04
 
Liquibase - Open Source version control for your database
Liquibase - Open Source version control for your databaseLiquibase - Open Source version control for your database
Liquibase - Open Source version control for your database
 
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
 
Oem12c patching -OOW13
Oem12c patching -OOW13Oem12c patching -OOW13
Oem12c patching -OOW13
 
Oracle database 12c intro
Oracle database 12c introOracle database 12c intro
Oracle database 12c intro
 
Oracle Performance Tools of the Trade
Oracle Performance Tools of the TradeOracle Performance Tools of the Trade
Oracle Performance Tools of the Trade
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
 
Oracle RAC 12c and Policy-Managed Databases, a Technical Overview
Oracle RAC 12c and Policy-Managed Databases, a Technical OverviewOracle RAC 12c and Policy-Managed Databases, a Technical Overview
Oracle RAC 12c and Policy-Managed Databases, a Technical Overview
 
SQL Tuning 101
SQL Tuning 101SQL Tuning 101
SQL Tuning 101
 
OEM12c, DB12c and You! - RMOUG TD2014 Edition
OEM12c, DB12c and You! - RMOUG TD2014 EditionOEM12c, DB12c and You! - RMOUG TD2014 Edition
OEM12c, DB12c and You! - RMOUG TD2014 Edition
 
Performance Management in Oracle 12c
Performance Management in Oracle 12cPerformance Management in Oracle 12c
Performance Management in Oracle 12c
 
Oracle Database 12c - New Features for Developers and DBAs
Oracle Database 12c  - New Features for Developers and DBAsOracle Database 12c  - New Features for Developers and DBAs
Oracle Database 12c - New Features for Developers and DBAs
 
Oracle GoldenGate DB2 to Oracle11gR2 Configuration
Oracle GoldenGate DB2 to Oracle11gR2 ConfigurationOracle GoldenGate DB2 to Oracle11gR2 Configuration
Oracle GoldenGate DB2 to Oracle11gR2 Configuration
 
OUG Ireland Meet-up - Updates from Oracle Open World 2016
OUG Ireland Meet-up - Updates from Oracle Open World 2016OUG Ireland Meet-up - Updates from Oracle Open World 2016
OUG Ireland Meet-up - Updates from Oracle Open World 2016
 
Understanding SQL Trace, TKPROF and Execution Plan for beginners
Understanding SQL Trace, TKPROF and Execution Plan for beginnersUnderstanding SQL Trace, TKPROF and Execution Plan for beginners
Understanding SQL Trace, TKPROF and Execution Plan for beginners
 
OOW 17 - database consolidation using the oracle multitenant architecture
OOW 17 - database consolidation using the oracle multitenant architectureOOW 17 - database consolidation using the oracle multitenant architecture
OOW 17 - database consolidation using the oracle multitenant architecture
 
Introducing the eDB360 Tool
Introducing the eDB360 ToolIntroducing the eDB360 Tool
Introducing the eDB360 Tool
 
Extreme Replication - RMOUG Presentation
Extreme Replication - RMOUG PresentationExtreme Replication - RMOUG Presentation
Extreme Replication - RMOUG Presentation
 
Welcome to databases in the Cloud
Welcome to databases in the CloudWelcome to databases in the Cloud
Welcome to databases in the Cloud
 
IOUG Data Integration SIG w/ Oracle GoldenGate Solutions and Configuration
IOUG Data Integration SIG w/ Oracle GoldenGate Solutions and ConfigurationIOUG Data Integration SIG w/ Oracle GoldenGate Solutions and Configuration
IOUG Data Integration SIG w/ Oracle GoldenGate Solutions and Configuration
 

Similar to SQLServerDays2012_SSIS_CDC

COUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesCOUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesAlfredo Abate
 
Performance Stability, Tips and Tricks and Underscores
Performance Stability, Tips and Tricks and UnderscoresPerformance Stability, Tips and Tricks and Underscores
Performance Stability, Tips and Tricks and UnderscoresJitendra Singh
 
Triple C - Centralize, Cloudify and Consolidate Dozens of Oracle Databases (O...
Triple C - Centralize, Cloudify and Consolidate Dozens of Oracle Databases (O...Triple C - Centralize, Cloudify and Consolidate Dozens of Oracle Databases (O...
Triple C - Centralize, Cloudify and Consolidate Dozens of Oracle Databases (O...Lucas Jellema
 
OUG Harmony 2012 - Using SQL Plan Baselines for Performance Testing
OUG Harmony 2012 -  Using SQL Plan Baselines for Performance TestingOUG Harmony 2012 -  Using SQL Plan Baselines for Performance Testing
OUG Harmony 2012 - Using SQL Plan Baselines for Performance TestingMaris Elsins
 
Denver SQL Saturday The Next Frontier
Denver SQL Saturday The Next FrontierDenver SQL Saturday The Next Frontier
Denver SQL Saturday The Next FrontierKellyn Pot'Vin-Gorman
 
Oracle Enterprise Manager 12c: updates and upgrades.
Oracle Enterprise Manager 12c: updates and upgrades.Oracle Enterprise Manager 12c: updates and upgrades.
Oracle Enterprise Manager 12c: updates and upgrades.Rolta
 
Data Stream Processing for Beginners with Kafka and CDC
Data Stream Processing for Beginners with Kafka and CDCData Stream Processing for Beginners with Kafka and CDC
Data Stream Processing for Beginners with Kafka and CDCAbhijit Kumar
 
Sql dba 2008 r2 online training
Sql dba 2008 r2 online trainingSql dba 2008 r2 online training
Sql dba 2008 r2 online trainingsssql
 
10 Tips for Successful 12.2 Upgrade
10 Tips for Successful 12.2 Upgrade10 Tips for Successful 12.2 Upgrade
10 Tips for Successful 12.2 UpgradeOAUGNJ
 
ABCs of CDC with SSIS 2012
ABCs of CDC with SSIS 2012ABCs of CDC with SSIS 2012
ABCs of CDC with SSIS 2012Steve Wake
 
Sql server 2012 dba online training
Sql server 2012 dba online trainingSql server 2012 dba online training
Sql server 2012 dba online trainingsssql
 
Project oriented online realtime training on sql
Project oriented online realtime training on sqlProject oriented online realtime training on sql
Project oriented online realtime training on sqlsssql
 
Live sql server 2012 dba online training
Live sql server 2012 dba online trainingLive sql server 2012 dba online training
Live sql server 2012 dba online trainingsssql
 
Capture Change and Apply It!
Capture Change and Apply It!Capture Change and Apply It!
Capture Change and Apply It!Steve Wake
 
Expert performance tuning tips for Oracle RAC
Expert performance tuning tips for Oracle RACExpert performance tuning tips for Oracle RAC
Expert performance tuning tips for Oracle RACSolarWinds
 

Similar to SQLServerDays2012_SSIS_CDC (20)

COUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesCOUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_Features
 
Performance Stability, Tips and Tricks and Underscores
Performance Stability, Tips and Tricks and UnderscoresPerformance Stability, Tips and Tricks and Underscores
Performance Stability, Tips and Tricks and Underscores
 
What's new in SQL Server Integration Services 2012?
What's new in SQL Server Integration Services 2012?What's new in SQL Server Integration Services 2012?
What's new in SQL Server Integration Services 2012?
 
Data stage Online Training
Data stage Online TrainingData stage Online Training
Data stage Online Training
 
Manageability Enhancements of SQL Server 2012
Manageability Enhancements of SQL Server 2012Manageability Enhancements of SQL Server 2012
Manageability Enhancements of SQL Server 2012
 
Copy Data Management for the DBA
Copy Data Management for the DBACopy Data Management for the DBA
Copy Data Management for the DBA
 
Triple C - Centralize, Cloudify and Consolidate Dozens of Oracle Databases (O...
Triple C - Centralize, Cloudify and Consolidate Dozens of Oracle Databases (O...Triple C - Centralize, Cloudify and Consolidate Dozens of Oracle Databases (O...
Triple C - Centralize, Cloudify and Consolidate Dozens of Oracle Databases (O...
 
OUG Harmony 2012 - Using SQL Plan Baselines for Performance Testing
OUG Harmony 2012 -  Using SQL Plan Baselines for Performance TestingOUG Harmony 2012 -  Using SQL Plan Baselines for Performance Testing
OUG Harmony 2012 - Using SQL Plan Baselines for Performance Testing
 
OOW13 Exadata and ODI with Parallel
OOW13 Exadata and ODI with ParallelOOW13 Exadata and ODI with Parallel
OOW13 Exadata and ODI with Parallel
 
Denver SQL Saturday The Next Frontier
Denver SQL Saturday The Next FrontierDenver SQL Saturday The Next Frontier
Denver SQL Saturday The Next Frontier
 
Oracle Enterprise Manager 12c: updates and upgrades.
Oracle Enterprise Manager 12c: updates and upgrades.Oracle Enterprise Manager 12c: updates and upgrades.
Oracle Enterprise Manager 12c: updates and upgrades.
 
Data Stream Processing for Beginners with Kafka and CDC
Data Stream Processing for Beginners with Kafka and CDCData Stream Processing for Beginners with Kafka and CDC
Data Stream Processing for Beginners with Kafka and CDC
 
Sql dba 2008 r2 online training
Sql dba 2008 r2 online trainingSql dba 2008 r2 online training
Sql dba 2008 r2 online training
 
10 Tips for Successful 12.2 Upgrade
10 Tips for Successful 12.2 Upgrade10 Tips for Successful 12.2 Upgrade
10 Tips for Successful 12.2 Upgrade
 
ABCs of CDC with SSIS 2012
ABCs of CDC with SSIS 2012ABCs of CDC with SSIS 2012
ABCs of CDC with SSIS 2012
 
Sql server 2012 dba online training
Sql server 2012 dba online trainingSql server 2012 dba online training
Sql server 2012 dba online training
 
Project oriented online realtime training on sql
Project oriented online realtime training on sqlProject oriented online realtime training on sql
Project oriented online realtime training on sql
 
Live sql server 2012 dba online training
Live sql server 2012 dba online trainingLive sql server 2012 dba online training
Live sql server 2012 dba online training
 
Capture Change and Apply It!
Capture Change and Apply It!Capture Change and Apply It!
Capture Change and Apply It!
 
Expert performance tuning tips for Oracle RAC
Expert performance tuning tips for Oracle RACExpert performance tuning tips for Oracle RAC
Expert performance tuning tips for Oracle RAC
 

Recently uploaded

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 

Recently uploaded (20)

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 

SQLServerDays2012_SSIS_CDC

  • 1. SQL SERVER DAYS 2012 SSIS & CDC IN SQL SERVER 2012 the perfect marriage koen verbeeck BI consultant
  • 3. OUTLINE • introduction to change data capture + demo • control flow tasks+ demo • data flow components+ demo • Oracle as a source • conclusion
  • 4. INTRODUCTION • change data capture (CDC) • designed to capture insert/update/delete data o make it available in “easily consumed” relational format o pretty much DIY in TSQL • introduced in SQL Server 2008 o technically hasn’t changed in SQL Server 2012 • alternative for change tracking • typically used in data warehouse scenarios o speed up extraction by incremental loads • why? • more data everyday • less time to process it o full load vs. incremental load
  • 5. INTRODUCTION • CDC versus change tracking CDC change tracking which changes? insert/update/delete insert/update/delete shows type of DML? yes yes methodology? asynchronous synchronous column changed? yes yes historical data? yes no editions? Enterprise only all
  • 7. OUTLINE • introduction to change data capture + demo • control flow tasks+ demo • data flow components+ demo • Oracle as a source • conclusion
  • 8. CONTROL FLOW TASKS • CDC control task • controls lifecycle of CDC packages o handles initial load synchronization o management of LSN ranges o error scenarios and recovery • stores state in SSIS variable and in database table • two operations o initial load o incremental load
  • 10. CONTROL FLOW TASKS • initial load package • also possible from snapshot
  • 11. OUTLINE • introduction to change data capture + demo • control flow tasks+ demo • data flow components+ demo • Oracle as a source • conclusion
  • 12. DATA FLOW COMPONENTS • CDC source • reads a range of change data • all / net changes o and everything in between
  • 13. DATA FLOW COMPONENTS • CDC splitter • basically a conditional split on steroids o … but without a GUI • splits flow of changed data into inserts, updates and deletes • do not combine with ALL CDC processing mode o order between operations is lost
  • 15. DATA FLOW COMPONENTS • incremental load package • remember to run it twice… • use the __$reprocessing column to identify rows in need of attention
  • 16. OUTLINE • introduction to change data capture + demo • control flow tasks+ demo • data flow components+ demo • Oracle as a source • conclusion
  • 17. ORACLE AS A SOURCE • Oracle CDC components by Attunity • not installed by default • can be found on installation media /Tools/AttunityCDCOracle CDC Designer CDC Service mirror cdc log miner figure modeled after slide of Matt Masson [16]
  • 18. ORACLE AS A SOURCE • Oracle CDC Service • prepare SQL Server o creates MSXDBCDC database + objects • local system account o logon as a policy permission • CDC service master password o used to encrypt Oracle credentials • one service per Oracle DB
  • 19. ORACLE AS A SOURCE • Oracle CDC Designer • create and manage CDC instances o multiple instances per service possible • contains o Oracle DB info o tables and columns being tracked o mirroring info
  • 20. OUTLINE • introduction to change data capture + demo • control flow tasks+ demo • data flow components+ demo • Oracle as a source • conclusion
  • 21. CONCLUSION • no new technical enhancements • enhancements are on manageability level • provided by Attunity • new SSIS tasks/components • CDC control task • CDC source • CDC splitter • two types of packages • initial load • incremental load • remember the __$reprocessing column • possible to use Oracle as CDC source • CDC service & designer
  • 22. RESOURCES • CDC 2008 & Change Tracking • [1] MSDN - Change Data Capture http://msdn.microsoft.com/en-us/library/bb522489(v=sql.105).aspx • [2] MSDN - Comparing Change Data Capture and Change Tracking http://msdn.microsoft.com/en-us/library/cc280519(v=sql.105).aspx • [3] Kendra Little - Change Data Capture vs Change Tracking http://www.littlekendra.com/2010/06/23/cdcvsct/ • CDC & SSIS 2012 • [4] MSDN - CDC Control Task http://msdn.microsoft.com/en-us/library/hh758674.aspx • [5] MSDN - CDC Source http://msdn.microsoft.com/en-us/library/hh758686.aspx • [6] MSDN - CDC Splitter http://msdn.microsoft.com/en-us/library/hh758656.aspx • [7] MSDN - CDC Flow Components http://msdn.microsoft.com/en-us/library/hh231087.aspx • [8] MSDN - Define a State Variable http://msdn.microsoft.com/en-us/library/hh758667 • [9] Allan Mitchell - SSIS CDC Processing Mode Not Updating Flag Attributes http://copperblueblog.com/2012/06/06/ssis-cdc-processing-mode-not-updating-flag-attributes/
  • 23. RESOURCES • CDC & SSIS 2012 (continued) • [10] Allan Mitchell - CDC Package Needs Executing Twice http://copperblueblog.com/2012/06/06/ssis-change-data-capture-cdc-package-needs-executing-twice/ • [11] Allan Mitchell - Changes Made To Source During Full Load http://copperblueblog.com/2012/06/07/ssis-cdc-changes-made-to-source-during-full-load/ • [12] Allan Mitchell - Batch Sizes, Fast Load, Commit Size And The OLE DB Destination http://copperblueblog.com/2012/10/02/batch-sizes-fast-load-commit-size-and-the-ole-db-destination/ • [13] Matt Masson - CDC in SSIS for SQL Server 2012 http://www.mattmasson.com/index.php/2011/12/cdc-in-ssis-for-sql-server-2012-2/ • [14] Matt Masson - CDC Control Task Operations http://www.mattmasson.com/index.php/2012/02/cdc-control-task-operations/ • [15] Matt Masson - Processing Modes for the CDC Source http://www.mattmasson.com/index.php/2012/01/processing-modes-for-the-cdc-source/ • [16] Channel9 - TechEd North America (Matt Masson) - Incremental ETL Using CDC for SQL and Oracle with SQL Server Integration Services (SSIS) 2012 http://channel9.msdn.com/Events/TechEd/NorthAmerica/2012/DBI322
  • 24. RESOURCES • CDC & Oracle • [17] TechNet Wiki - Installing Microsoft SQL Server 2012 Change Data Capture for Oracle by Attunity http://social.technet.microsoft.com/wiki/contents/articles/7647.installing-microsoft-sql-server- 2012-change-data-capture-for-oracle-by-attunity.aspx • [18] SSIS blog MSDN - CDC for Oracle in SQL Server 2012 http://blogs.msdn.com/b/mattm/archive/2012/03/26/cdc-for-oracle-in-sql-server-2012.aspx • [19] SSIS blog MSDN - Video about CDC for Oracle Databases in SSIS 2012 http://blogs.msdn.com/b/mattm/archive/2012/07/10/video-about-cdc-for-oracle-databases-in- ssis-2012.aspx
  • 25. Q&A
  • 26. THANK YOU koen.verbeeck@ordina.be @Ko_Ver http://www.linkedin.com/in/kverbeeck Partner Logo Here 26