Sunteți pe pagina 1din 2

Name of Solution:

Informatica Developer -- Implementing SCD type-2

Business Requirement:
This mapping demonstrates how to build a SCD type-2 mapping in Informatica Developer

Solution URL:
https://community.informatica.com/solutions/2450

Description:
When loading a data warehouse, design decision around how a dimension table is updated
is important. Dimensions can be designed to update existing rows with changes maintaining
no history (Type 1) or to maintain history (Type 2).
The target table keeps a full history of changes in the target by date range. While loading a
Type 2 target, all new rows are inserted. If an incoming row is evaluated to be an update to
an existing row, then a row is inserted along with an update to the previous version of the
row.

Download file contents:

Mapping
Source File.
Script for creating target.

Steps to implement the solution:


1. Execute the Oracle script to create target table.
2. Import mapping using Developer client. Select the appropriate folder from repository
and resolve the conflicts by choosing suitable option.
3. Open mapping in Informatica Developer Client and Flag new rows and changed rows.
Generates a primary key for new rows and inserts new rows to the target. For each
of the updated row 2 operations are performed. One is to insert a new row
representing the latest changes and other to update the previous version to end-date
the effective date. . Also, observe the Expression used as shown in screenshot
below.

4. The mapping inserts the row if the record does not exist.
5. In case of update a new record will be inserted and the old records Effect_to_Date
will get updated.
6. Assign Oracle connection object for the source and target.
7. Place the source file in SourceDir.
8. Validate and Run the Mapping.

Please rate this solution and share your feedback on Marketplace Website.

S-ar putea să vă placă și