Professional Documents
Culture Documents
----------------------------------------------------------------------------
Transaction control transformation?
Can any1 put some light on Transaction control transformation ?
Expecting one simple example.
Also what is effective and ineffective Transaction control transformation ?
If you want to commit the target table, based on some condition you go for File
Transaction.
Example.
Take u'r source table as Emp table which comes with standard Oracle installation
.
Your output will be a set flat files in such a way that a seperate file is gener
ated for each dept.
Your output files will be like account.txt,marketing.txt..etc
When you use transaction control transformation in the middle of your mapping it
will be ineffective. basically it is used just before records getting loaded in
to target table.
it is used to control the control the records entering into the target table.
when you find a record which is not suppose to enter the target table, say for e
x: when a col [which is not a pk] is null, then you can roll back the entire rec
ords loaded till that point.
-----------------------------------------------------------
How do u change parameter when u move it from development to production.
How do u retain variable value when u move it from development to production.
How do u reset sequence generator value u move it from development to production
.
How to delete duplicate values from UNIX.
How to find no.of rows commited to the target, when a session fails.How to remov
e the duplicate records from flat file (other than using sorter trans. and mappi
ng variables)
How to generate sequence of values in which target has more than
2billion records.(with sequence generator we can generate upto 2 billion values
only)
I have to generate a target field in Informatica which doesn exist in
the source table. It is the batch number. There are 1000 rows
altogether. The first 100 rows should have the same batch number 100
and the next 100 would have the batch numbe 101 and so on. How can we do using i
nformatica?
Lets take that we have a Flat File in the Source System and It was in the correc
t path then when we ran the workflow and we got the error as "File Not Found", w
hat might be the reson?
How to load 3 unstructured flat files into single target file?
There are 4 columns in the table
Store_id, Item, Qty, Price
101, battery, 3, 2.99
101, battery, 1 , 3.19
101, battery, 2, 2.59
I want the output to be like
101, battery, 3, 2.99
101, battery, 1 , 3.19
101, battery, 2, 2.59
101, battery, 2,17.34
How can we do this using Aggrigator?
How to find no.of rows commited to the target, when a session fails.
Log file
How to remove the duplicate records from flat file (other than using sorter tran
s. and mapping variables)
Dynamic Lookup , sorter and aggregator
In the first question, I am asking abt the mapping parameters and variables.
How to delete duplicate records from Unix( this question was asked in an intervi
ew).
I guess, we can write shell script to do this, is there any other way?
ok for mapping variable while doinf migration it will promt you retain mapping v
araible option--->just check in the option So it will update the value as same a
s target values
OUTPUT--> TARGET.
ID NAME
--- --------
10 SACHIN TENDULKAR
20 APJ ABDUL KALAM
30 SANIA
--------------------------------------------------------
how to keep track of how many rows have passed through an expression transformat
ion ?
suppose I have 10 rows in my source and they all pass through an expression tran
sformation ,I need to keep a variable count which keeps updating itself as the r
ow passes through . thats my understanding of implementing it ,
please propose a solution , how could we achieve this?
----------------------------------------------------------------------------
how to find out size of flat file that load from source ? i meant is it anywhere
i can findout in repository tables ?
Using ls -s we can find the Size of the Flat-Files.The Informatica Metadata tabl
e(REP_SESS_LOG) stores only the (SUCCESSFUL_ROWS) and OPB_FILE_DESC stores the F
ile Properties (Delimiter,row_skip,code_page etc).Informatica Metadata Tables ne
ver Stores the Size of a flat-file because here size is dynamic.
---------------------------------------------------------
Suppose I have 2 records having per Ticket
Ticket|CURR|VALUE
123456|GBR|200
123456|EUR|400
Now I need to implement the scenerio in such a way that
Currency in the final column is GBP and value (400 ) in this case should be conv
erted to GBR ( suppose 250)
then 200 + 250 is the final value and currency populated is GPB for this particu
lar ticket.
123456|GPB|450
Create One Common Parameter File for all ur 10 Mappings.Use the Same Parameter i
n all your Mappings Means For each Mapping Create One Output Variable and Assign
the Parameter Value to the O/P Port.
-----------------------------------------------------------------------------
PMREP Command
Hi All,
I have exported my file definition by using PMREP - Objectexport command. After
i have done some modifications,When i tried to import thru -Objectimport command
it was asking me control file.What is the control file?And where it will be sto
red in the Informatica installed directories?
---------------------------------------------------------
Exclude last 5 rows from flatfile
Hi
Can any one help giving the logic to exclude last 5 rows from flat file if my so
urce is varying ?
Use expression trans, add a new row_counter column to the stream and populate it
... it's a simple variable column with logic: row_counter=row_counter+1 sort of.
..
once you get hold of each row using row counter, use Filter to filter out the la
st 5 rows....
note that, 5th row from last = (row_counter-5)th row, at the end!!!
SRC->SQ->SEQGEN1->EXP1->SORTER->SEQGEN2->EXP2->FILTER->TARGET
1.Pull all the ports from source qualifier to EXP1.At the same time create SNO p
ort in EXP1
2.connect the NEXTVAL port from SEQGEN1 to SNO port in EXP1. Check in the RESET
option in SEQGEN1 properties.
3.Now drag all the ports from EXP1 to SORTER.Select the SNO as KEY(Descending).
4.Pull all the ports from SORTER to EXP2.At the same time create SEQNO port in E
XP2.
5.connect the NEXTVAL port from SEQGEN2 to SEQNO port in EXP2. Check in the RESE
T option in SEQGEN2 properties.
6.Drag all ports to FILTER FROM EXP2.Set the condition as SEQNO>5
7.Now connect the required ports to target.