Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
SCD Type2 Through Informatica With Date Range

SCD Type2 Through Informatica With Date Range

Ratings: (0)|Views: 39|Likes:
Published by Nazumuddin Shaikh
Hi, just follow these easy steps to implement Slowly Changing Dimensions in Informatica Power Center.
Hi, just follow these easy steps to implement Slowly Changing Dimensions in Informatica Power Center.

More info:

Categories:Types, Research
Published by: Nazumuddin Shaikh on Apr 24, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

09/07/2013

pdf

text

original

 
Informatica Scd Type-2 implementation
What is SCD Type-2:
The
Type 2
method tracks historical data by creating multiple records for a given natural key in the dimensional tables with separate surrogate keys and/or different version numbers. With Type 2, we have unlimited history preservation as a new record is inserted each time a change is made. Type2 canbe achieved in different ways.How to implement SCD Type2 through Informatica:There is number of way to implement SCD Type2 in informatica.Example:Create source table CUST with below query.
 
CREATE TABLE CUST  ( CUST_IDNUMBER,  CUST_NMVARCHAR2(250),  ADDRESSVARCHAR2(250),  CITYVARCHAR2(50),  STATEVARCHAR2(50),  INSERT_DTDATE,  UPDATE_DTDATE);
Insert following data in CUST table.Source Data:CUST_ID CUST_NAME ADDRESSCITY STATEINSER_DT UPDATE_DT80001MarionAtkins 100 Main St.Bangalore KA1/7/2011 1/7/201180002 Laura Jones510 BroadwayAve.Hyderabad AP1/7/2011 1/7/201180003 Jon Freeman 555 6th Ave.Bangalore KA1/7/2011 1/7/2011The
Type 2
method tracks historical data by creating multiple records for a given natural key (CUST_ID)in the dimensional tables with separate surrogate keys (PM_PRIMARYKEY).For this create table with below query
 
CREATE TABLECUST_D ( PM_PRIMARYKEYINTEGER,  CUST_IDNUMBER,  CUST_NMVARCHAR2(250),  ADDRESSVARCHAR2(250),  CITYVARCHAR2(50),  STATEVARCHAR2(50),  ACTIVE_DTDATE,  INACTIVE_DTDATE,  INSERT_DTDATE,  UPDATE_DTDATE)
 Here active_dt and inactive_dt used to indentify history data.PM_PRIMARYKEY is surrogate key which is used to identify each and every record uniquely in target.The below diagram will explain high level over view of SCD type2 through informatica.
SCD Type-2 Over View
      F      l    o    w
CUSTSQ_CUSTlkp_CUST_Dexp_FLAGrtr_INS_UPDCUST_D_INSupd_INSERTupd_UPDATECUST_D_UPD
 Before implementing we need to identify the attributes needs to be consider for history maintain.In this example we will consider if any change in ADDRESS or CITY OR STATE.So if any change in ADDRESS or CITY or STATE then we need to insert new record and inactivate oldrecord.Creation of mapping:Step1: First import source and target to informatica from data base.Import the source definition
CUST
table using the
Source Analyzer
workspace. Go to
Sources > Importfrom Database
.
 
 This opens the
Import Tables
window. Assuming that a system DSN is already created for thisconnection, specify all the necessary details and click
Connect
.Select the
CUST
table to import and click
OK
to continue.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->