Professional Documents
Culture Documents
Table of Contents
Part 1: Configuring a Model for CDC ........................................................................... 4
Part 2: Creating a Package to Set Up CDC ................................................................. 8
Part 3: Creating the Integration Flows to Consume the Changes ............................... 13
Part 4: Run the CDC Set Up and Consumption Processes in Production................... 22
Summary .................................................................................................................. 26
2.
3.
Open the Oracle Data Integrator Studio using the Start Menu > Oracle > Oracle Data Integrator > ODI
Studio menu.
Go to the Designer Navigator and press Connect to Repository
4.
Select HOL Advanced from the drop-down list of logins and press OK.
5.
Open the Designer navigator menu and make sure that the Default Execution Context is set to the
Development context (not Production).
6.
Open the Models accordion in the Designer navigator by clicking on the label.
7. Right-click on the Oracle CDC Source model and select Changed Data Capture > Add to
CDC.
Click Yes to add all the tables to the CDC.
11. Go to the Journalized Tables tab, select the SRC_REGION table and click on the Remove
from CDC
button.
Note: Consistent Set Journalizing tracks changes to a group of the model's datastores, taking into
account the referential integrity between these datastores. The group of datastores journalized in
this mode is called a Consistent Set.
13. Click Save(
2. Expand the Advanced Topics in ODI-EE project and then expand the First Folder folder.
6. Drag and drop into the diagram the Oracle CDC Source data model from the Designers
Models tree view. A new step appears in the diagram, named after your data model.
8. Click Save(
10. In the Execution window, select Development for the context and then press OK.
13. In the Operator, select the Session List tab, and expand the All Executions node.
14. Check that the last session ran correctly. You can review the steps and tasks that have
activated the CDC process.
5. In the Execution window, select Development for the context and then press OK.
20. Expand the Flat Files Sources model and drag and drop the SRC_SALES_PERSON.txt
datastore from the Designers Models tree view into the source panel of the interface.
21. Create a join between the SRC_CUSTOMER table and the SRC_SALES_PERSON.txt file.
To create it, drag and drop the SALES_PERS_ID column from the SRC_CUSTOMER table
into the SALES_ID column from the SRC_SALES_PERSON.txt file.
Note: The join expression is:
SRC_CUSTOMER.SALES_PERS_ID = SRC.SALES_ID
30. Drag and drop the Load SRC_CITY CDC and Load SRC_CUSTOMER CDC interfaces from
the Designers Projects tree view.
31. Drag and drop into the diagram the Oracle CDC Source data model from the Designers
Models tree view. A new step appears in the diagram, named after your data model.
36. In the Execution window, select Development for the context and then press OK.
37. Press OK when the Session Started window appears.
38. Open the Operator navigator.
39. In the Operator, select the Session List tab, and expand the All Executions node.
40. Check that the last session ran correctly. There should be 2 inserts and 3 updates.
We can see that the changed data for CONSUMER_1 has been propagated correctly.
41. Open the Models navigator and expand the Oracle CDC Source data model.
42. Right-click on SRC_CITY, select Changed Data Capture > Journal Data
Since we used CONSUMER_1 in our package, the changes for CONSUMER_2 have not been
propagated. Having multiple subscribers enables us to execute multiple processes loading the
same changed data without any interference.
4. Right-click on Tutorial Part 2 - CDC Setup and select Generate Scenario. Press OK in the
New Scenario dialog.
Note: A scenario is a frozen version of an ODI component, it is used to put that component
into production.
In this lab we have simplified the deployment process and we can simply run our scenarios in
production using the Production context.
Typically we would have exported a scenario from the development repository and then
imported it into the production repository.
5. Expand the package and the Scenarios node then right-click on
TUTORIAL_PART_2__CDC_SETUP and select Execute.
6. In the Execution window, set the Context to Production and press OK.
11. In the Execution window, set the Context to Production and press OK.
14. In the Operator, select the Session List tab, and expand the All Executions node.
15. Validate that the procedure ran correctly, 2 inserts and 3 updates should have been
performed.
16. Under Packages, right-click on Tutorial Part 3 Load CDC Data and select Generate
Scenario then click OK.
17. Expand the package and the Scenarios node then right-click on
TUTORIAL_PART_3__LOAD_CDC_DATA and select Execute.
18. In the Execution window, set the Context to Production and press OK.
Summary
At the end of these exercises the participants understand how to:
- Enable Change Data Capture.
- Design Integration Flows to consume the changes captured by the
CDC process.
- Run their processes in a Development environment as well as in a
Production environment.
Questions & Clarifications:
If you have any comments or need additional information, please communicate through the
Oracle Data Integrator forum at: http://forums.oracle.com/forums/forum.jspa?forumID=374