SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances

Oem12c patching -OOW13
Oem12c patching -OOW13Oem12c patching -OOW13
Oem12c patching -OOW13
Bobby Curtis
 
Introducing the eDB360 Tool
Introducing the eDB360 ToolIntroducing the eDB360 Tool
Introducing the eDB360 Tool
Carlos Sierra
 

Tendances (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
 

Similaire à 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_Features
Alfredo Abate
 
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
 
ABCs of CDC with SSIS 2012
ABCs of CDC with SSIS 2012ABCs of CDC with SSIS 2012
ABCs of CDC with SSIS 2012
Steve Wake
 
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
sssql
 
Capture Change and Apply It!
Capture Change and Apply It!Capture Change and Apply It!
Capture Change and Apply It!
Steve Wake
 

Similaire à 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
 

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 

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