You are on page 1of 7

Complete reference to Informatica

JOINER TRANSFORMATION
Naveen
20
Apr 2011

Connected and Active Transformation
Used to oin so!rce data from t"o re#ated $etero%eneo!s
so!rces residin% in &ifferent #ocations or fi#e s'stems( Or)
"e can oin data from t$e same so!rce(
If "e need to oin * ta+#es) t$en "e need 2 Joiner
Transformations(
T$e Joiner transformation oins t"o so!rces "it$ at #east
one matc$in% port( T$e Joiner transformation !ses a
condition t$at matc$es one or more pairs of ,orts +et"een
t$e t"o so!rces(
Example: To join EMP and DEPT tables.
EM, and &E,T "i## +e so!rce ta+#e(
Create a tar%et ta+#e JOINER-E.AM,/E in tar%et desi%ner(
Ta+#e s$o!#d Contain a## ports of EM, ta+#e p#!s &NAME
and /OC as s$o"n +e#o"(
Create t$e s$ortc!ts in 'o!r fo#der(
Creating Mapping:
1( Open fo#der "$ere "e "ant to create t$e mappin%(
2( C#ic0 Too#s 12 Mappin% &esi%ner(
*( C#ic0 Mappin%12 Create12 3ive mappin% name( E45
m-oiner-e4amp#e
6( &ra% EM,) &E,T) and Tar%et( Create Joiner Transformation(
/in0 as s$o"n +e#o"(
7( Specif' t$e oin condition in Condition ta+( See steps on ne4t pa%e(
8( Set Master in ,orts ta+( See steps on ne4t pa%e(
9( Mappin% 12 :a#idate
;( Repositor' 12 Save(
Create Session and <or0f#o" as descri+ed ear#ier( R!n t$e
<or0 f#o" and see t$e data in tar%et ta+#e(
Ma0e s!re to %ive connection information for a## ta+#es(
JOIN CONDITION:
T$e oin condition contains ports from +ot$ inp!t so!rces t$at m!st matc$ for t$e ,o"er Center Server
to oin t"o ro"s(
Example: &E,TNO=&E,TNO1 in a+ove(
1( Edit Joiner Transformation 12 Condition Ta+
2( Add condition
<e can add as man' conditions as needed(
On#' = operator is a##o"ed(
If "e oin C$ar and :arc$ar data t'pes) t$e ,o"er Center Server co!nts an' spaces t$at pad C$ar
va#!es as part of t$e strin%( So if 'o! tr' to oin t$e fo##o"in%5
C$ar >60? = @a+cdA and :arc$ar >60? = @a+cdA
T$en t$e C$ar va#!e is @a+cdA padded "it$ *8 +#an0 spaces) and t$e ,o"er Center Server does not
oin t$e t"o fie#ds +eca!se t$e C$ar fie#d contains trai#in% spaces(
Note: T$e Joiner transformation does not matc$ n!## va#!es(
MASTE and DETAI! TA"!ES
In Joiner) one ta+#e is ca##ed as MASTER and ot$er as &ETAI/(
MASTER ta+#e is a#"a's cac$ed( <e can ma0e an' ta+#e as
MASTER(
Edit Joiner Transformation 12 ,orts Ta+ 12 Se#ect M for
Master ta+#e(
Ta+#e "it$ #ess n!m+er of ro"s s$o!#d +e made MASTER to improve ,erformance(
eason:
<$en t$e ,o"er Center Server processes a Joiner
transformation) it reads ro"s from +ot$ so!rces
conc!rrent#' and +!i#ds t$e inde4 and data cac$e +ased on
t$e master ro"s( So ta+#e "it$ fe"er ro"s "i## +e read fast
and cac$e can +e made as ta+#e "it$ more ro"s is sti##
+ein% read(
T$e fe"er !niB!e ro"s in t$e master) t$e fe"er iterations
of t$e oin comparison occ!r) "$ic$ speeds t$e oin
process(
JOINE TANS#OMATION POPETIES TA"
Case$Sensiti%e String Comparison: If se#ected) t$e
,o"er Center Server !ses case1sensitive strin%
comparisons "$en performin% oins on strin% co#!mns(
Ca&'e Dire&tor(: Specifies t$e director' !sed to cac$e
master or detai# ro"s and t$e inde4 to t$ese ro"s(
Join T(pe: Specifies t$e t'pe of oin5 Norma#) Master
O!ter) &etai# O!ter) or F!## O!ter(
Tra&ing !e%el
Joiner Data Ca&'e Si)e
Joiner Index Ca&'e Si)e
Sorted Inp*t
JOIN T+PES
In SC/) a oin is a re#ationa# operator t$at com+ines data from m!#tip#e ta+#es into a sin%#e res!#t set(
T$e Joiner transformation acts in m!c$ t$e same manner) e4cept t$at ta+#es can ori%inate from
different data+ases or f#at fi#es(
T(pes o, Joins:
Norma#
Master O!ter
&etai# O!ter
F!## O!ter
Note: A norma# or master o!ter oin performs faster t$an a f!## o!ter or detai# o!ter oin(
Example: In EM,) "e $ave emp#o'ees "it$ &E,TNO 10) 20) *0 and 70( In &E,T) "e $ave &E,TNO 10)
20) *0 and 60( &E,T "i## +e MASTER ta+#e as it $as #ess ro"s(
Normal Join:
<it$ a norma# oin) t$e ,o"er Center Server discards a## ro"s of data from t$e master and detai#
so!rce t$at do not matc$) +ased on t$e condition(
A## emp#o'ees of 10) 20 and *0 "i## +e t$ere as on#' t$e'
are matc$in%(
Master O*ter Join:
T$is oin 0eeps a## ro"s of data from t$e detai# so!rce and t$e matc$in% ro"s from t$e master so!rce(
It discards t$e !nmatc$ed ro"s from t$e master so!rce(
A## data of emp#o'ees of 10) 20 and *0 "i## +e t$ere(
T$ere "i## +e emp#o'ees of &E,TNO 70 and correspondin%
&NAME and /OC Co#!mns "i## +e NU//(
Detail O*ter Join:
T$is oin 0eeps a## ro"s of data from t$e master so!rce and t$e matc$in% ro"s from t$e detai# so!rce(
It discards t$e !nmatc$ed ro"s from t$e detai# so!rce(
A## emp#o'ees of 10) 20 and *0 "i## +e t$ere(
T$ere "i## +e one record for &E,TNO 60 and correspondin%
data of EM, co#!mns "i## +e NU//(
#*ll O*ter Join:
A f!## o!ter oin 0eeps a## ro"s of data from +ot$ t$e master and detai# so!rces(
A## data of emp#o'ees of 10) 20 and *0 "i## +e t$ere(
T$ere "i## +e emp#o'ees of &E,TNO 70 and correspondin%
&NAME and /OC Co#!mns "i## +e NU//(
T$ere "i## +e one record for &E,TNO 60 and correspondin%
data of EM, Co#!mns "i## +e NU//(
-SIN. SOTED INP-T
Use to improve session performance(
to !se sorted inp!t) "e m!st pass data to t$e Joiner
transformation sorted +' t$e ports t$at are !sed in Join
Condition(
<e c$ec0 t$e Sorted Inp!t Option in ,roperties Ta+ of t$e
transformation(
If t$e option is c$ec0ed +!t "e are not passin% sorted data
to t$e Transformation) t$en t$e session fai#s(
<e can !se SORTER to sort data or So!rce C!a#ifier in
case of Re#ationa# ta+#es(
JOINE CAC/ES
Joiner a#"a's cac$es t$e MASTER ta+#e( <e cannot disa+#e cac$in%( It +!i#ds Inde4 cac$e and &ata
Cac$e +ased on MASTER ta+#e(
01 Joiner Index Ca&'e:
A## Co#!mns of MASTER ta+#e !sed in Join condition are in
JOINER IN&E. CACDE(
2 Example: &E,TNO in o!r mappin%(
31 Joiner Data Ca&'e:
Master co#!mn not in oin condition and !sed for o!tp!t to
ot$er transformation or tar%et ta+#e are in &ata Cac$e(
2 Example: &NAME and /OC in o!r mappin% e4amp#e(
Per,orman&e T*ning:
,erform oins in a data+ase "$en possi+#e(
Join sorted data "$en possi+#e(
For a sorted Joiner transformation) desi%nate as t$e
master so!rce t$e so!rce "it$ fe"er d!p#icate 0e' va#!es(
Joiner canEt +e !sed in fo##o"in% conditions5
1( Eit$er inp!t pipe#ine contains an Update Strate%'
transformation(
2( <e connect a SeB!ence 3enerator transformation direct#'
+efore t$e Joiner transformation(
Reactions:

You might also like