140 likes | 385 Views
TRANSFORMATIONS. Transformations help to transform the source data according to the requirements of target system and it ensures the quality of the data being loaded into target. Transformations are of two types: 1) Active 2) Passive. Update Strategy transformation. Update
E N D
1. UPDATE STRATEGYTRANSFORMATION Basics and Advanced Concepts
2. TRANSFORMATIONS
Transformations help to transform the source data according to the requirements of target system and it ensures the quality of the data being loaded into target.
Transformations are of two types:
1) Active
2) Passive
3. Update Strategy transformation Update transformation is an Active and Connected transformation. An Update strategy is used if you want to Create a strategy for your processing such as Insert, Update, Delete or Reject
An Update strategy is generally used when we have determined whether we want to keep the historical data or just the most recent changes
4. SETTING THE UPDATE STRATEGY WITHIN THE MAPPING
Rows are flagged for insert,update,delete or reject within the mapping using a update strategy
transformation CONFIGURE A SESSION
We can select the insert,delete,update option for the Treat Row as option in the Session Properties
5. To create a Update Strategy transformation in a Mapping : In the Mapping Designer, choose Transformation-Create. Select the Update Strategy transformation. Enter a name for the Rank. The naming convention for Update transformations is UPD_TransformationName.
Click Create, and then click Done.
The Designer creates Update transformation.
Link columns from an input transformation to the Update transformation.
6.
Click on the button in the Update Strategy Expression Field
Enter an update Strategy expression to flag rows as INSERT,DELETE,UPDATES OR REJECTS.
Validate the Expression
Click ok
7. Flagging Rows within a Mapping FLAGGING ROWS WITHIN MAPPING
8. FORWARDING REJECTING ROWS By default the update Stratetgy forwards the rejected rows to the next Transformation.
The Power Center Server flags the rows for reject and writes them in the SESSION REJECT FILE
IF we do not select the Forward Reject Rows Option, the Power Center Server drops the rejects rows and writes them to the session log File
9. Update Strategy Used in the Mapping Figure 11-1. Sample Mapping with a Update StrategyTransformation