wht is cdc?how to use it in creation of mappings?

Answer Posted / bidhar

CDC is used when you want to pull the records which have
changed or newly added in the OLTP system.

Normally the OLTP tables have 2 columns
last_updated_timestamp and Added_timstamp.

Whenever a new record is added for the first time in these
tables then both the columns have the same timestamp ie
System timestamp.

Then when that particular record is changed only the column
last_updated_timestamp will change and the other column
Added_timstamp will remain same forever.

Now you need to pull this record when it was added as well
as when it was modified to keep your warehouse in sync with
OLTP system.

So based on last_updated_timestamp column (not
Added_timstamp)you need to pull the records.

This can be achieved by overriding the SQ query in the
where clause.

Example :- if product table in OLTP has 2000 records on
11th may and on 12th may 10 new records have come up and 5
records have been changed.Then in the next load 15 records
should be pulled to your warehouse.

Select Prd_nam,Typ,grp,category from product where
last_updated_timestamp>&&date_parameter

This is your SQ override query.
&&date_parameter is a mapping parameter which can be picked
up from a file.(you need to have the previous load max date
in that file which will be used as mapping parameter).

Hope this clears your doubt.

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you differentiate between powercenter and power map?

641


What are multi-group transformations?

573


What are the prerequisite tasks to achieve the session partition?

722


HOW TO PROCESS THE ROWS FROM JOINER AND EXPRESSION TRANSFORAMTION TO SORTER TRANSFORMATION

1491


What is Cognos script editor?

3801






I have worked on Informatica 7.1.1. I want to know the answer for the below question. Target is not created initially.Then how to take the DDL script from the source and run the Mapping by creating the Target dynamically?Is it possible by SQL Transformation?

1476


What is event and what are the tasks related to it?

626


How to call shell scripts from informatica?

586


On which transformations you created partitions in your project?

765


If I have 10 flat files with same name abc.txt files with different timestamps as source I need to load them in tgt table oracle. in between job execution fails and rows are not loaded into tgt. how can I make them load in that target even if my job fails?

1039


What is a repository? And how to add it in an informatica client?

678


In what scenario we use to improve session performance by pushdown optimization?can any one give example?

5274


TELL ME ONE COMPLEX MAPPING IN UR PROJECT? chandumba2005@gmai.com

1472


How you know when to use a static cache and dynamic cache in lookup transformation?

1351


Can we use procedural logic inside infromatica? If yes how, if now how can we use external procedural logic in informatica?

613