Sei sulla pagina 1di 7

What are the diferent lookup cache?

Lookups can be cached or uncached (No cache). Cached lookup can be either
static or dynamic. A static cache is one which does not modify the cache once it
is built and it remains same during the session run. On the other hand, A
dynamic cache is refreshed during the session run by inserting or updating the
records in cache based on the incoming source data.
A lookup cache can also be diided as persistent or non-persistent based on
whether !nformatica retains the cache een after session run is complete or not
respectiely
What are the diferences between Connected and
Unconnected Lookup?
Connected Lookup Unconnected Lookup
Connected lookup participates in
dataflow and receies input directly
from the pipeline
"nconnected lookup receies input
alues from the result of a L#$%
e&pression in another transformation
Connected lookup can use both
dynamic and static cache
"nconnected Lookup cache can
NO' be dynamic
Connected lookup can return more
than one column alue ( output port )
"nconnected Lookup can return only
one column alue i.e. output port
Connected lookup caches all lookup
columns
"nconnected lookup caches only the
lookup output ports in the lookup
conditions and the return port
(upports user)defined default alues
(i.e. alue to return when lookup
*oes not support user defined
default alues
conditions are not satisfied)
27.what is the look up transformation?
Use lookup transformation in u'r mapping to lookup data in a relational
table,view,synonym.
Informatica server ueries the look up table based on the lookup ports in the
transformation.It
compares the lookup transformation port values to lookup table column
values based on the look up
condition.
2!."hy use the lookup transformation ?
#o perform the following tasks.
$et a related value. %or e&ample, if your source table includes employee I',
but you want to include the
employee name in your target table to make your summary data easier to
read.
(erform a calculation. )any normali*ed tables include values used in a
calculation, such as gross sales
per invoice or sales ta&, but not the calculated value +such as net sales,.
Update slowly changing dimension tables. -ou can use a .ookup
transformation to determine whether
records already e&ist in the target.
2/."hat r the types of lookup? 0onnected and unconnected
12.'i3erences between connected and unconnected lookup?
0onnected lookup Unconnected lookup
4eceives input values diectly from 4eceives input values from the result of a
the pipe line. lkp e&pression in a another transformation.
U can use a dynamic or static cache U can use a static cache.
0ache includes all lookup columns 0ache includes all lookup out put ports in
the
used in the maping lookup condition and the lookup5return port.
6upport user de7ned default values 'oes not support user de7end default
values
18.what is meant by lookup caches?
#he informatica server builds a cache in memory when it processes the 7rst
row af a data in a cached
look up transformation.It allocates memory for the cache based on the
amount u con7gure in the
transformation or session properties.#he informatica server stores condition
values in the inde& cache and
output values in the data cache.
12."hat r the types of lookup caches?
(ersistent cache9 U can save the lookup cache 7les and reuse them the ne&t
time the informatica server
processes a lookup transformation con7gured to use the cache.
4ecache from database9 If the persistent cache is not synchroni*ed with he
lookup table,U can con7gure
the lookup transformation to rebuild the lookup cache.
6tatic cache9 U can con7gure a static or readonly cache for only lookup
table.:y default informatica
server creates a static cache.It caches the lookup table and lookup values in
the cache for each row that
comes into the transformation.when the lookup condition is true,the
informatica server does not update
the cache while it prosesses the lookup transformation.
'ynamic cache9 If u want to cache the target table and insert new rows into
cache and the target,u can
create a look up transformation to use dynamic cache.#he informatica server
dynamically inerts data to
the target table.
shared cache9 U can share the lookup cache between multiple transactions.U
can share unnamed cache
between transformations inthe same maping.
11. 'i3erence between static cache and dynamic cache
6tatic cache 'ynamic cache
U can not inert or update the cache. U can insert rows into the cache as u
pass
to the target
#he informatic server returns a value from #he informatic server inserts rows
into cache
the lookup table opr cache when the condition when the condition is
false.#his indicates that
is true."hen the condition is not true,the the row is not in the cache or target
table.
informatica server returns the default value U can pass these rows to the
target table.
for connected transformations and null for
unconnected transformations.
*ifference between static cache and dynamic cache+
Answer %
!n case of *ynamic catche when you are inserting a new row it looks at the
lookup catche to see if
the row e&isting or not,!f not it inserts in the target and catche as well in case of
(tatic catche when
you are inserting a new row it checks the catche and writes to the target but not
catche
!f you cache the lookup table, you can choose to use a dynamic or static cache.
,y default, the
lookup cache remains static and does not change during the session. -ith a
dynamic cache, the
!nformatica (erer inserts or updates rows in the cache during the session.
-hen you cache the
target table as the lookup, you can look up alues in the target and insert them if
they do not e&ist,
or update them if they do.
.uestion No % /
-hat is the look up transformation+
Answer %
"sed to look up data in a reational table or iew.
Lookup is a passie transformation and used to look up data in a flat file or a
relational table
.uestion No % 0
-hy use the lookup transformation+
Answer %
"sed to look up data in a relational table or iew.
in !nf1.2, we can get from flat file also
look up is used to perform one of the following task% )to get related alue )to
perform calculation )to
update slowley changing dimension table
generally we use lookup transformation for 2) get a related alue from key
column alue 3) check
whether the record already e&isting in the table 4) slowly changing dimension
tables
A Lookup transformation is used for checking the matched alues from the
source or target
tables,used for updating the slowly changing dimensions and also performs
some calculations.
.uestion No % 5
-hat is meant by lookup caches+
Answer %
(ession will read all uni6ue rows from the reference table7 file to fill the local
buffer first8 then for
each row receied from up)stream transformation, it tries to match them against
the local buffer
!nformatica serer builts a cache in memory when it process the first row of a
cached lookup
transformation. alidwh9gmail.com
) -hen serer runs a lookup transformation, the serer builds a cache in
memory, when it process
the first row of data in the transformation. ) (erer builds the cache and 6ueries it
for the each row
that enters the transformation. ) 'he serer creates inde& and data cache files in
the lookup cache
drectory and used the serer code page to create the files. ) inde& cache
contains conductional
alues and data cache contains output alues
'he informatica serer builds a cache in memory when it processes the first row
of a data in a
cached look up transformation. !t allocates memory for the cache based on the
amount you
configure in the transformation or session properties. 'he informatica serer
stores condition
alues in the inde& cache and output alues in the data cache.
.uestion No % 2:
-hat are the types of lookup+
Answer %
Connected look up and un)connected look up
"nconnected Lookup and Connected Lookup
connected and unconnected
2.connected 3.unconnected
connected
Connected look up and un)connected look up
Connected, unconnected, dynamic
Connected look up and un)connected look up static dynamic
two types 2.connected 3.unconnected
(tatic and *ynamic Lookup
'here are tow tyes of lookups connected lookups and unconnected lookups
'wo types of Look "ps Connected and "nconnected lookups
CONN;C';* AN* "NCONN;C';*
Connected and unconnected cached and uncached
no kind of lookup
CONN;C';* AN* "NCONN;C';*
(tatic Lookup and *ynamic Loook up...(tatic is agin deided into two parts
connected lookup and
unconnected lookup
<ainly first three ,ased on connectio% 2. Connected 3. unconnected ,ased on
source'ype% 2. =lat
file 3. >elational ,ased on cache% 2. Cached 3. uncached ,ased on cache'ype%
2. (tatic 3.
*ynamic ,ased on reuse% 2. persistance 3. Non persistance ,ased on input% 2.
(orted 3. unsorted
connected, unconnected
mainly two types of look up...there 2.static lookup 3.dynamic lookup !n static
lookup ..there two
types are used one is connected and unconnected. !n connected lookup means
while using the
pipeline symbol... !n unconnected lookup means while using the e&pression
condition..
.uestion No % ?2
"sing unconnected lookup how we you remoe nulls n duplicates+
Answer %
-e can@t handle nulls and duplicates in the unconnected lookup. -e can handle
in dynamic
connected lookup.
.uestion No % 0A
-hat is a Lookup transformation and what are its uses+
Answer %
-e use a Lookup transformation in our mapping to look up data in a relational
table, iew or
synonym.
-e can use the Lookup transformation for the following purposes%
BC02??:8 Det a related alue. =or e&ample, if our source table includes
employee !*, but we want
to include the employee name in our target table to make our summary data
easier to read.
BC02??:8 $erform a calculation. <any normaliEed tables include alues used in
a calculation, such
as gross sales per inoice or sales ta&, but not the calculated alue (such as net
sales).
BC02??:8 "pdate slowly changing dimension tables. -e can use a Lookup
transformation to
determine whether records already e&ist in the target.
.uestion No % 02
-hat is a lookup table+
Answer %
'he lookup table can be a single table, or we can Foin multiple tables in the same
database using a
lookup 6uery oerride. 'he !nformatica (erer 6ueries the lookup table or an in)
memory cache of
the table for all incoming rows into the Lookup transformation.
!f your mapping includes heterogeneous Foins, we can use any of the mapping
sources or mapping
targets as the lookup table
.uestion No % 5?
-hy do we need (.L oerrides in Lookup transformations+
Answer %
!n order to lookup more than one alue from one table, we go for (.L oerrides
in Lookups.

Potrebbero piacerti anche