Difference between static
cache and dynamic cache?
Friday, March 14, 2014
Saturday, March 8, 2014
Why lookup is Active in informatica 9.x?
Why lookup is Active in informatica 9.x?
Active Transformation:
An active Transformation can change the number of rows that pass through it form source to target i.e it eliminates rows that do not meet the condition in transformation.
Passive Transformation:
A passive transformation does not change the number of rows that pass through it i.e it passes all rows through the transformation.
In Informatica 9.x Lookup can return multiple rows on Successful match.
Properties > Lookup Policy on Multiple match
Active Transformation:
An active Transformation can change the number of rows that pass through it form source to target i.e it eliminates rows that do not meet the condition in transformation.
Passive Transformation:
A passive transformation does not change the number of rows that pass through it i.e it passes all rows through the transformation.
In Informatica 9.x Lookup can return multiple rows on Successful match.
Properties > Lookup Policy on Multiple match
deleted record from Target table
Same as previous scenario, here target records has to be deleted if corresponding record gets deleted in source
mapping:
Joiner Transformation:
1. Target table as Master
2. Join Type : Detail Outer Join
3. Condition : EMPNO_SRC = EMPNO_TGT
Update Strategy:
Update Strategy Expression: IIF(ISNULL(EMPNO),DD_DELETE,DD_REJECT)
1. Target table as Master
2. Join Type : Detail Outer Join
3. Condition : EMPNO_SRC = EMPNO_TGT
Update Strategy:
Update Strategy Expression: IIF(ISNULL(EMPNO),DD_DELETE,DD_REJECT)
Delete Flag
Lets say a record is deleted in source which is already available in target,Requirement is to have a column DELETE_FLAG in target and stores 'Y' for the records
deleted in source else 'N'
deleted in source else 'N'
Add D_FLAG column to TGT_EMP
Import Source table to Informatica as Source.
Import Target table to Informatica as both Source and Target.
Use Joiner Transformations as below
Use Expression Transformation as below
Use Update Strategy as below
Final mapping looks like below
Workflow Designer:
session >
Properties >Target Source Row as - Update
Mapping > SQ_SRC_EMP should be Source
Mapping > SQ_TGT_EMP should be Target
Mapping > TGT_EMP should be Target
Result:
Import Source table to Informatica as Source.
Import Target table to Informatica as both Source and Target.
Use Joiner Transformations as below
Use Expression Transformation as below
Use Update Strategy as below
Final mapping looks like below
Workflow Designer:
session >
Properties >Target Source Row as - Update
Mapping > SQ_SRC_EMP should be Source
Mapping > SQ_TGT_EMP should be Target
Mapping > TGT_EMP should be Target
Result:
Please post your comments.
Subscribe to:
Posts (Atom)