Professional Documents
Culture Documents
D at a Ware Ho using
PL SQ L
C o nt act Us
21
Sharing
Ap r 20 11
Type 2
Naveen
0
Discussion Forum
Share
Filter
Discussio n Fo rum
Expressio n
Ro uter
So rter
Rank
Transactio n Co ntro l
So urce Qualifier
No rmalizer
curre nt m o nt h ie .,(0 1-0 1-20 10 ) we are pro vide d wit h an so urce t able wit h
Sequence Generato r
Aggregato r
PDFmyURL.com
Aggregato r
8 .6
Unio n
Jo iner
Update Strategy
The thing to be no ticed here is if there is any update in the salary o f any
Lo o k Up
emplo yee then the histo ry o f that emplo yee is displayed with the current
date as the start date and the previo us date as the end date.
Subscribe t o Learn
Inf ormat ica
Emp no
Ename
Sal
10 1
10 0 0
10 2
20 0 0
10 3
30 0 0
Test ing
Unit Testing
Integratio n Testing
UAT
Info rmatica Testing
Debugger
Co nstraint Based lo ading
Target Lo ad Plan
Skey
Emp no
Ename
Sal
S-date
E-date
Ver
Flag
10 0
10 1
10 0 0
0 1-0 1-10
Null
20 0
10 2
20 0 0
0 1-0 1-10
Null
30 0
10 3
30 0 0
0 1-0 1-10
Null
Subscribe
Delivered by FeedBurner
Perf ormanceTuning
Necessity Of
Perfo rmance-tuning
Advanced
Concept s
Emp no
Ename
Sal
10 1
10 0 0
10 2
250 0
10 3
30 0 0
Identificatio n Of bo ttle
Necks
Optimizatio n o f Bo ttle
necks
Perfo rmance tuning o f
Lo o kup
PDFmyURL.com
Partitio ning
Wo rking with links
10 4
Push Do wn Optimizatio n
40 0 0
Scheduler
Types o f Task's- 1
Types o f Task's- 2
Indirect Metho d fo r Lo ading
SCD - Type 1
Chat wit h Me
Emp no
Ename
Sal
S-date
E-date
Ver
Flag
10 0
10 1
10 0 0
0 1-0 2-10
Null
20 0
10 2
20 0 0
0 1-0 2-10
Null
30 0
10 3
30 0 0
0 1-0 2-10
Null
20 1
10 2
250 0
0 1-0 2-10
0 1-0 1-10
40 0
10 4
40 0 0
0 1-0 2-10
Null
Chat wit h Me
Offline
SCD - Type 2
SCD - Type 3
Incremental Aggregatio n
Visit or's
Mapping Templates
Grid Pro cessing
Wo rk Flo w Variables
In the seco nd Mo nth we have o ne mo re emplo yee added up to the table with the
Ename D and salary o f the Emplo yee is changed to the 250 0 instead o f 20 0 0 .
St e p 1: Is to impo rt So urce Table and Target table.
Create a table by name emp_so urce with three co lumns as sho wn abo ve in
o racle.
Impo rt the so urce fro m the so urce analyzer.
Drag the Target table twice o n to the mapping designer to facilitate insert o r
update pro cess.
Go to the targets Menu and click o n generate and execute to co nfirm the
creatio n o f the target tables.
The snap sho t o f the co nnectio ns using different kinds o f transfo rmatio ns
are sho wn belo w.
PDFmyURL.com
In The Target Table we are go anna add five co lumns (Skey, Versio n, Flag,
S_date ,E_Date).
St e p 2: Design the mapping and apply the necessary transfo rmatio n.
Here in this transfo rmatio n we are abo ut to
transfo rmatio ns
Transfo rmatio n
namely
Lo o kup
use fo ur kinds o f
transfo rmatio n
(1),
(2), Sequence
Expressio n
Generato r.
Necessity and the usage o f all the transfo rmatio ns will be discussed in
detail belo w.
Lo o k up Transfo rmatio n: The purpo se o f this transfo rmatio n is to Lo o kup o n the
target table and to co mpare the same with the So urce using the Lo o kup Co nditio n.
The first thing that we are go nna do is to create a lo o k up transfo rmatio n
and co nnect the Empno fro m the so urce qualifier to the transfo rmatio n.
The snapsho t o f cho o sing the Target table is sho wn belo w.
PDFmyURL.com
Drag the Empno co lumn fro m the So urce Qualifier to the Lo o kup
Transfo rmatio n.
The Input Po rt fo r o nly the Empno 1 sho uld be checked.
In the Pro perties tab (i) Lo o kup table name ->Emp_Target.
(ii)Lo o k up Po licy o n Multiple Mismatch -> use Last Value.
(iii) Co nnectio n Info rmatio n ->Oracle.
In the Co nditio ns tab (i) Click o n Add a new co nditio n
(ii)Lo o kup Table Co lumn sho uld be Empno , Transfo rmatio n po rt sho uld be
Empno 1 and Operato r sho uld =.
Expre ssio n Transf o rm at io n: After we are do ne with the Lo o kup Transfo rmatio n
we are using an expressio n transfo rmatio n to find whether the data o n the so urce
table matches with the target table. We specify the co nditio n here whether to insert
o r to update the table. The steps to create an Expressio n Transfo rmatio n are
sho wn belo w.
Drag all the co lumns fro m bo th the so urce and the lo o k up transfo rmatio n
PDFmyURL.com
The co nditio n that we want to parse thro ugh o ur o utput data are listed
belo w.
Insert : IsNull(EmpNO1)
Update: iif(No t isnull (Skey) and Deco de(SAL,SAL1,1,0 )=0 ,1,0 ) .
We are all do ne here .Click o n apply and then OK.
Filt e r Transf o rm at io n: We need two filter transfo rmatio ns the purpo se the first
filter is to filter o ut the reco rds which we are go anna insert and the next is vice
versa.
If there is no change in input data then filter transfo rmatio n 1 fo rwards the
co mplete input to Exp 1 and same o utput is go anna appear in the target
PDFmyURL.com
table.
If there is any change in input data then filter transfo rmatio n 2 fo rwards the
co mplete input to the Exp 2 then it is go nna fo rward the updated input to the
target table.
Go to the Pro perties tab o n the Edit transfo rmatio n
(i) The value fo r the filter co nditio n 1 is Insert.
(ii) The value fo r the filter co nditio n 2 is Update.
The clo ser view o f the co nnectio ns fro m the expressio n to the filter is
sho wn belo w.
PDFmyURL.com
Se que nce
PDFmyURL.com
PDFmyURL.com
Exp 3: If any reco rd o f in the so urce table gets updated then we make it o nly as the
o utput.
Share
Twe e t
Sub mit
G e t th i s
Reactio ns:
You can follow any responses to this entry through the RSS 2.0 feed. You can leave
a response.
0 Responses
Le ave a R e p ly
PDFmyURL.com
Comment as:
Publish
Preview
Previous Entries
Next Entries
Recent Comments
2009 - Complete reference to Informatica is proudly brought to you by Naveen
PDFmyURL.com