Beruflich Dokumente
Kultur Dokumente
D at a Ware Ho using
PL SQ L
C o nt act Us
16
Sharing
Ap r 20 11
0
Discussion Forum
Share
Filter
Discussio n Fo rum
Expressio n
Ro uter
Mapping parameters and variables represent values in mappings and mapplets.
So rter
Rank
Transactio n Co ntro l
define a value fo r the mapping parameter o r variable befo re we run the sessio n.
So urce Qualifier
No rmalizer
Co nso le
Sequence Generato r
PDFmyURL.com
A mapping parameter retains the same value thro ugho ut the entire
8 .6
sessio n.
Aggregato r
Unio n
Exam ple : When we want to extract reco rds o f a particular mo nth during ETL
Jo iner
pro cess, we will create a Mapping Parameter o f data type and use it in query to
Update Strategy
Lo o k Up
Interview Questio ns
mapping.
extract o verride, and in the Expressio n Edito r o f reusable transfo rmatio ns.
Subscribe t o Learn
Inf ormat ica
Like
MAPPING VARIABLES
Unlike mapping parameters, mapping variables are values that can change
The Integratio n Service saves the latest value o f a mapping variable to the
We can also clear all saved values fo r the sessio n in the Wo rkflo w
Manager.
Test ing
Unit Testing
Integratio n Testing
UAT
Info rmatica Testing
Debugger
Co nstraint Based lo ading
Target Lo ad Plan
Delivered by FeedBurner
sessio n o verride to filter so urce data each time we run the sessio n, we can create
a mapping variable, $$IncludeDateTime. In the so urce qualifier, create a filter to
Perf ormanceTuning
Advanced
Concept s
Subscribe
day each time the sessio n runs. If we set the initial value o f $$IncludeDateTime to
8 /1/20 0 4, the first time the Integratio n Service runs the sessio n, it reads o nly ro ws
dated
8 /1/20 0 4.
During
the
sessio n,
the
Integratio n
Service
sets
Variable
the sessio n. The next time it runs the sessio n, it reads o nly ro ws fro m August 2,
Mapplets
20 0 4.
Necessity Of
Perfo rmance-tuning
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
Lo o kup
Use d in f o llo wing t ransf o rm at io ns:
Scheduler
Expressio n
Types o f Task's- 1
Filter
Types o f Task's- 2
Ro uter
Update Strategy
Push Do wn Optimizatio n
Chat wit h Me
Chat wit h Me
Offline
SCD - Type 2
SCD - Type 3
Incremental Aggregatio n
Mapping Templates
Grid Pro cessing
Wo rk Flo w Variables
Visit or's
Service uses a default value based o n the data type o f the parameter o r variable.
Data ->Default Value
Numeric ->0
String ->Empty String
Date time ->1/1/1
Variable Value s: Start value and current value o f a mapping variable
St art Value :
The start value is the value o f the variable at the start o f the sessio n. The
Integratio n Service lo o ks fo r the start value in the fo llo wing o rder:
1. Value in parameter file
2. Value saved in the repo sito ry
3. Initial value
4. Default value
Curre nt Value :
The current value is the value o f the variable as the sessio n pro gresses. When a
sessio n starts, the current value o f a variable is the same as the start value. The
final current value fo r a variable is saved to the repo sito ry at the end o f a
successful sessio n. When a sessio n fails to co mplete, the Integratio n Service
do es no t update the value o f the variable in the repo sito ry.
PDFmyURL.com
PDFmyURL.com
fro m
variable
tab
and
SAL
fro m
po rts
tab
as
sho wn
belo w.SETMAXVARIABLE($$var_max,SAL)
PDFmyURL.com
17. Open Expressio n edito r fo r o ut_min_var and write the fo llo wing expressio n:
SETMINVARIABLE($$var_min,SAL). Validate the expressio n.
18 . Open Expressio n edito r fo r o ut_co unt_var and write the fo llo wing expressio n:
SETCOUNTVARIABLE($$var_co unt). Validate the expressio n.
19 . Open Expressio n edito r fo r o ut_set_var and write the fo llo wing expressio n:
SETVARIABLE($$var_set,ADD_TO_DATE(HIREDATE,'MM',1)). Validate.
20 . Click OK. Expressio n Transfo rmatio n belo w:
PDFmyURL.com
21. Link all po rts fro m expressio n to target and Validate Mapping and Save it.
22. See mapping picture o n next page.
PDFmyURL.com
PARAMET ER FILE
A parameter file is a list o f parameters and asso ciated values fo r a
wo rkflo w, wo rklet, o r sessio n.
Parameter files pro vide flexibility to change these variables each time we
run a wo rkflo w o r sessio n.
We can create multiple parameter files and change the file we use fo r a
sessio n o r wo rkflo w. We can create a parameter file using a text edito r
such as Wo rdPad o r No tepad.
Enter the parameter file name and directo ry in the wo rkflo w o r sessio n
pro perties.
A parameter file co ntains the fo llo wing types o f parameters and variables:
Wo rkf lo w variable : References values and reco rds info rmatio n in a
wo rkflo w.
Wo rkle t variable : References values and reco rds info rmatio n in a wo rklet.
Use predefined wo rklet variables in a parent wo rkflo w, but we canno t use
wo rkflo w variables fro m the parent wo rkflo w in a wo rklet.
Se ssio n param e t e r: Defines a value that can change fro m sessio n to
sessio n, such as a database co nnectio n o r file name.
Mapping parameter and Mapping variable
USING A PARAMET ER FILE
Parameter files co ntain several sectio ns preceded by a heading. The heading
identifies the Integratio n Service, Integratio n Service pro cess, wo rkflo w, wo rklet, o r
sessio n to which we want to assign parameters o r variables.
Make sessio n and wo rkflo w.
Give co nnectio n info rmatio n fo r so urce and target table.
Run wo rkflo w and see result.
PDFmyURL.com
In the parameter file, fo lder and sessio n names are case sensitive.
Create a text file in no tepad with name Para_File.txt
Twe e t
[Practice.ST:s_m_MP_MV_Example]
$$Bo nus=10 0 0
Sub mit
$$var_max=50 0
$$var_min=120 0
$$var_co unt=0
CONFIGURING PARAMT ER FILE
PDFmyURL.com
G e t th i s
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