20

Click here to load reader

Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

Embed Size (px)

Citation preview

Page 1: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

Capture if you canCapture if you canChange Data Capture auf Basis von Streams

Christoph Jansen040 / 248 591 [email protected]

Berlin, 01.10.2009

Basel · Baden · Bern · Lausanne · Zürich · Düsseldorf · Frankfurt/M. · Freiburg i. Br. · Hamburg · München · Stuttgart · Wien

Page 2: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

AgendaAgenda

Das Fundament Oracle StreamsDas Fundament – Oracle Streams

Der Aufbau – Change Data CaptureDer Aufbau Change Data Capture

Der Unterschied

Daten sind immer im Spiel.

Fazit

© 2009Capture if you can 2

Page 3: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

Das Fundament – Oracle StreamsDas Fundament Oracle Streams

Capture Staging Apply

© 2009Capture if you can 3

Page 4: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

Das Fundament – Oracle StreamsDas Fundament Oracle Streams

Capture Staging Apply

P tiPropagation

Capture Staging Apply

© 2009Capture if you can 4

Page 5: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

AgendaAgenda

Das Fundament Oracle StreamsDas Fundament – Oracle Streams

Der Aufbau – Change Data CaptureDer Aufbau Change Data Capture

Der Unterschied

Daten sind immer im Spiel.

Fazit

© 2009Capture if you can 5

Page 6: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

CDC – Das FeatureCDC Das Feature

Erfassung von DatenänderungenErfassung von Datenänderungen

Bereitstellung von Datenänderungen

Ermöglicht Weiterverarbeitung

© 2009Capture if you can 6

Page 7: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

Exkurs: Logical Change RecordExkurs: Logical Change Record

empno name sal empno name sal1 King 75002 Scott 5000

1 King 77002 Scott 5000

3 Clark 4500 3 Clark 4500

LCR

UO 1 King 7500

UN 1 King 7700

© 2009Capture if you can 7

g

Page 8: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

Die CDC ArchitekturDie CDC Architektur

Source Staging

Publisher Subscriber

Change Source

EMP Tabelle EMP CT Tabelle

Change Set +Change Tabelle

EMP SUB View

Subscription

EMP Tabelle EMP_CT Tabelle EMP_SUB View

© 2009Capture if you can 8

Page 9: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

Asynchronous AutoLog (online)Asynchronous AutoLog (online)

Source Database Staging Autolog Source

Source Tables

DatabaseTransactions

Change Set +Change Tables

Database Autolog Source

RFSTable

Table

Source TablesTable

Table

Change TablesRFS

ab e

Standby Redo Log Files

SubscriberViews

LGWR

Online Redo StreamsDownstream Capture

© 2009Capture if you can 9

ViewsLog Files

Page 10: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

Asynchronous AutoLog (archive)Asynchronous AutoLog (archive)

Source Database Staging Autolog Source

Source Tables

DatabaseTransactions

Change Set +Change Tables

Database Autolog Source

RFSTable

Table

Source TablesTable

Table

Change TablesRFS

ab e

ARCn

Copied Log Files

SubscriberViews

LGWRStreamsDownstream CaptureOnline Redo

© 2009Capture if you can 10

ViewsLog Files

Page 11: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

Asynchronous HotLogAsynchronous HotLog

Source Database Change Source

Source Tables

DatabaseTransactions

Change Set +Change Tables

Change Source

Table

Table

Source TablesTable

Table

Change Tables

ab e

StreamsLocal Capture

LGWR

SubscriberViewsOnline Redo

© 2009Capture if you can 11

ViewsLog Files

Page 12: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

Asynchronous Distributed HotLogAsynchronous Distributed HotLog

Source Database Staging Database

Source Tables

DatabaseTransactions

Distributed Hotlog Change Set + Change Tables

g gDB Link

Table

Table

Source TablesTable

Table

Set + Change Tables

Streamsab e

Di t ib t d H tL

Propagation

Distributed HotLogChange Source

SubscriberViews

LGWR

DB LinkOnline Redo

© 2009Capture if you can 12

ViewsLog Files

Page 13: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

SetupSetup

Basis (Datenbankparameter und Streams)Basis (Datenbankparameter und Streams)

DBMS_CDC_PUBLISH

DBMS_CDC_SUBSCRIBE

© 2009Capture if you can 13

Page 14: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

AgendaAgenda

Das Fundament Oracle StreamsDas Fundament – Oracle Streams

Der Aufbau – Change Data CaptureDer Aufbau Change Data Capture

Der Unterschied

Daten sind immer im Spiel.

Fazit

© 2009Capture if you can 14

Page 15: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

Der Unterschied – Einsatzszenarien StreamsDer Unterschied Einsatzszenarien Streams

ReplikationReplikation

Hochverfügbarkeit

Messaging

© 2009Capture if you can 15

Page 16: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

Der Unterschied – Einsatzszenarien CDCDer Unterschied Einsatzszenarien CDC

Inkrementelle DatenverarbeitungInkrementelle Datenverarbeitung

Historisierung

© 2009Capture if you can 16

Page 17: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

AgendaAgenda

Das Fundament Oracle StreamsDas Fundament – Oracle Streams

Der Aufbau – Change Data CaptureDer Aufbau Change Data Capture

Der Unterschied

Daten sind immer im Spiel.

Fazit

© 2009Capture if you can 17

Page 18: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

FazitFazit

Zeitnahe Erfassung und VerarbeitungZeitnahe Erfassung und Verarbeitung

Verschiedene Modi je nach Anforderung

Management Features für ETL Prozesse

© 2009Capture if you can 18

Page 19: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

KontaktKontakt

Kontakt:Kontakt:Christoph JansenTrivadis GmbHP l D St 6Paul-Dessau-Str. 6D-22761 Hamburg

Tel : 040 / 248 591 30

Daten sind immer im Spiel.

Tel.: 040 / 248 591 30E-Mail: [email protected]

W it I f tiWeitere Informationen: http://www.trivadis.com/uploads/tx_cabagdownloadarea/Oracle_Change_Data_Capture_final.pdf

© 2009Capture if you can 19

Page 20: Capture if you canCapture if you can · Capture if you canCapture if you can Change Data Capture auf Basis von Streams ... Oracle StreamsOracle Streams ... Die CDC ArchitekturDie

Danke! Fragen?Danke! Fragen?

??www.trivadis.com

Basel · Baden · Bern · Lausanne · Zürich · Düsseldorf · Frankfurt/M. · Freiburg i. Br. · Hamburg · München · Stuttgart · Wien