Informatica Senarios-1

by PenchalaRaju.Yanamala

1. I have a flat file, in which I have two fields, emp_id, emp_name. The data is like this- emp_id, emp_name soha101, ali101, kahn101 khan102, Siva102, shanker102, reddy.how to merge the names so that my output is like this Emp_id Emp_name 101 Soha ali Kahn? A:-In expression transformation use an output port ...in expression window write emp_id||empname 2. How to join a Flat and Relational Source without using (Joiner, Update, Lookup) transformations... is it possible? If yes i would like to know how? A:- not possible 3. I have a source which relational, I am trying to populate to target flat file with one column for daily date which is sysdate, I want to populate the sysdate coulmn with DD/MM/YYYY format. Kindly provide a solution for this. My clear that my target is flat file. A: - In expression transformation create one out put port, and write like: TO_DATE ('SYSDATE'.'DD/MM/YYYY').Connect this port to target. 4. If the source has duplicate records as id and name columns, values: 1 a, 1 b, 1 c, 2 a, 2 b, the target should be loaded as 1 a+b+c or 1 a||b||c, what transformations should be used for this? A: - We need to use sorter, Expression and aggregator transformations to do this….. 1. Sort by ID 2.Take 2 variable ports one for id and one for name and store the values of id and keep on comparing with current id i.e. variable is having previous id so if previous id=current id then (variable name)||name otherwise only name. Assign the variable name to output port 3. Use aggregator and use last or max (len (name)) to get the result. 5. How many repositories can you create in informatica? A-In Informatica 8.6.0 multiple repositories can be created under node. The domain can have multiple nodes. 6. Router T/R is active but some people are saying some times passive what is Reason behind that? A: - First of all Every Active transformation is a Passive transformation, But every passive not Active. In Router Transformation there is a special feature with Default group. Because of Default Group its passive. We can avoid this Default group by some transformation Settings, Now It’s Active.

I know 4 ways in INFORMATICA . 12. T. How to deal with it without changing mapping? A: . Whenever I retrieve the data (any record) from target. No any OLTP (or database design principal) system suggests a varying number of columns. Diff b/w Shortcut and reusable Object? A: . relational) will be loading into only one target. 9.dynamic cache ` 13. If no. of source columns is changing every time (First time it is 10 next time it is 20 so on). in a single mapping.Pushdown optimization is used to push the complex logic to the database level. That Procedure is not running through informatica and can be run at any Time in Database. VSAM.7. more than 500 sources (legacy. Keep 1 source qualifier Trans for one table. Please go through the concepts first.If I understand this question properly. Is it possible? If yes please Explain? A: . please do not get confused by such trivial kind of questions. Informatica is in windows environment. Create a shell scripts which first has to Execute the Stored procedure or Package and we have command to check the completion or procedure After that use Pmcmd command in the same UNIX to start the workflow. What is 'Power Center Pushdown Optimization Option' in INFORMATICA?(IMP) A: . So. This will Reduce the complexity of the Power center mappings and increases the performance. I want to run an informatica workflow after completion of oracle procedure.DWH is a much disciplined subject & it follows a very good standards. Here.After every Source qualifier transformation just keep an Expression with flag. of "Source" columns are changing. it says that the no. You will get a clear picture of DWH then.transform) it finally loads the data in some targets. it takes the data from the OLTP systems & after performing some operations (E-extract. I need to find the details that the record belongs to which source? A: . As far as DWH is concerned. Informatica Senarios-2 8. Can we create index and drop index in existing table while using informatica? A: .This can be possible with UNIX. 11. you won't find such a design. the question itself arises for the OLTP design. "Change cache" in Informatica? A: . as per the question.A shortcut is created by assigning 'Shared' status to a folder within the Repository Manager and then dragging objects from this folder into another open folder 10. Probably in Data warehousing.Dont go Single Source qualifier transformation. I do not agree with this scenario.

18. 15. Using key ports (enable.If we miss to enable any of the port as GROUP BY. the aggregator will write the lat row of the table to the next transformation.. What is Target Update Override? What is the Use? .. If we are using an aggregator but forget to mention the group by port ... DELETE.as per my understanding. Why do we go for update strategy TR in SCD rather using the session Properties? A: .. UPDATE.SCD applicable for Insert. Informatica Senarios-3 15..Use source type as Indirect File Type and source file name as a file having the names of All the n flat files to be read. Can we load these flat file’s data one by one to a single relational table by a Single session? A: .. Using Session Properties we can do single flow only .1) Source Analyzer window.what will be the Output? A: ... How many mapplets u have created? And what is the logic used? A: . There is no limit for logics. disable)). Every mapplet can have a Logic or logics. 17. Post sql 14. It will give you all Matched records as well as unmatched records which are not present in base table. Using Update Trans we can create SCD mapping 16..We can create any No of Mapplets for 1 mapping. There are n numbers of flat file of exactly same format are placed in a folder.Session Properties like pre Source Rows INSERT. Update at a Time using Update Strategy Trans only. There is no limit for Mapplets..and Those unmatched records are will be null in case of unconnected lkp trn.(source table. Lkp is always behave like left outer join. LOOKUP Condition is nothing but a Join condition? What type of join condition it. By Default? Using the Lookup Condition How many types of relational conditions We can make? A: . 2) Source qualifier Trans-(Sql override) 3) Target override 4) Pre sql. REJECT.

When we don't have primary keys defined on database level. We will join the two sources making source table as master source. Main reason is joiner is an Active transformation. Dynamic? A: . on target there are 5 m rows which options is better to match data 1. Means it can alter the number of rows. How I can Schedule the Informatica job in "Unix Corn scheduling tool”? A: . Joiner 2 No cache 3. for this we need to schedule the Power centre job. Whereas in static and dynamic we have to look up on the target which is very large 5m rows. Static 4. And also. So only 100 comparisons will be done.. 21.So. 24. So it will be very faster.Here we will use joiner for better performance. What are set operators in Oracle? A: . or we can use "at" command in UNIX to schedule the job. First Group by ID. Then go with min (date) in Same Agg Transformation. This way we can update the table. UNION ALL. Informatica Senarios-4 22. We can not connect sequence generator with joiner. .UNION. We can not join this number against any column in other tables. if u connect sequence generator with joiner the outcome sequence will not be proper. And still we need update on This target from Informatica. How to create a mapping? id date 101 2/4/2008 101 4/4/2008 102 6/4/2008 102 4/4/2008 103 4/4/2008 104 8/4/2008 O/P . from Source 100 rows are coming.. 19. How can I generate Sequence Numbers to Target Table (with out using Sequence Gen Trans. with Agg Transformation.should have only one id with the min (date) How to create a mapping for this? A: . So caching will take more time. So. Why sequence generator should not directly connected to joiner transformation? A:-Mainly sequence generator is used to generate a unique id dynamically. 20. MINUS and INTERSECT 23.we can do this by using crontab file in UNIX. We need to define keys at informatica level and use update Override in target property.I think its Simple.A: . Rank Trans).

Compares logical key columns in the source against corresponding columns in the target lookup table.I have table name called Team and I have name and DOJ in that table in oracle. When we load flat files into target tables how do we identify duplicates? And where do load the duplicate records for further reference? How do we do chage data capture? Is this slowly changing Dimension technique? A: . Suppose if you have 10 records in table A and 10 records in table B. Updates changed rows in the target.2 for last record. Compares source columns against corresponding target columns if key columns match. Updates Based on Data loading time. This Inserts. one for changed rows. We need 2 Target tables. Then after using the Union transformation you will get 17 Records. 'MMDDYYYY') 28. How can we load first and last record from a flat file source to target? A: . when I retrieve the table in Informatica DOJ shows with date and time . RANK transformation. Informatica Senarios-5 . In AggTrans Don’t do any column for Group--Last row returns. 1 for 1st record. 27.The simple logic of Union is that. I want want to know is it possible to get only date(MMDDYYYY) in the date data type. Caches the existing target as a lookup table. Is this slowly changing Dimension technique? Change data capture (CDC) Mean newly Inserts. if u using the UNIONtrans one Target table is enough. Creates two data flows: one for new rows.I have an idea after sql transformation go thruogh 2 Agg Trans. 29. in RankTrans Properties set the rank 1 only---1 row returns. Flags new rows and changed rows. How Union Transformation is an Active Trans? A: . Can any one explain me step by step how scd will work? Selects all rows. A: .. Updates only slowly changing Dimension technique..TO_CHAR (DOJ_port. Generates a primary key for new rows. as the records which are getting duplicated will not be in the output.A: .Use database Sequence generator call this from stored procedure or dummy lookup Query Or You can also use expression transformation. in which 3 records Are same in both the tables. It capture all the unique records from both the source. go with AGG.After sql Trans. 26. Inserts new rows to the target. 2 Router Trans Agg1-gorup by col count=1 to router Trans Agg2-group by col count<>1 to router Trans (I think “it will help u”) From 2nd router Transformation we have a Separate Target Table. overwriting existing rows. Create two ports one is variable And assign it to 0 and another one is output port and Write the logic to increment it (o_seq=v_Seq+1) 25.

Database connection session parameters? It’s possible to create 3parameters at a time? If Possible which one will fire FIRST? A: . It is possible to have multiple parameters at a time? The order of execution is wf/s/m. For example.we can declare all in one parameter file.for that we need to write a ksh shell scripts or batch command and use cmd command 32. password. How to list Top 10 salary. etc.The best way is obviously to run WF1 and then call WF2 using PMCMD command in the last session of WF1 (as a post session task). 34. because there are no delimiters to check so the performance will increase. without using Lookup & Sequence Generator. Session parameter is set at the session level for values that can change from sesion to session. How to generate Sequence? .fixed width.Source -> SQ -> Sorter ->Expression ->Router(or 2 filters) ->Targets 36. The database connection session parameters can be created for all input fields to connection objects. How to run two workflow (not a sessions) sequentially. How to extract original records at one target & Duplicate records at one target? A:. 31. QA and PRD environments. Diff B/W MAP Parameter. 3) filter the value sequence number greater than 10 35. SESSION Parameter. its going to maintain existing data also in cache memory 33.we can pass all these three types of parameters by using Perameterfile. username.If you absolutely want to ensure that the second wf starts only after graceful completion of wf1 then simply add a command task for the pmcmd and use the piple to validate that the previous task is completed properly. without using Rank Transmission? A: . 37.use sorter--> expression-->filter 1) Sorter descend 2) use sequence generator connected expression to generator Sequence. Or We can run the workflow sequentially . what is the process? A: . Which is costliest transformation? Costly means occupying more memory? A:-Look up Transformation only. Is it possible to have "5 source & 5 Target" in single mapping? A:-single mapping we can have 5 sources and 5 target and we need to arrange target load Plan if dependency exists. Which gives the more performance when compare to fixed width and delimited file? And why? A: . such as database connections for DEV.30. A mapping parameter is set at the mapping level for values that do not change from session to session for example tax rates.

42. Without source how to insert record to target? A: . Informatica Senarios-6 39.. Informatica performance deals with the Transformations... . 44 . 40.. without using any condition? A:-Add dummy column in expression or Source Qul. For efficiency result both are impotent. For both source and use that column in Join condition. Suppose you have 2000 records in one table and 12000 in another which one you will consider as master and detail? A:-We will consider the one with lesser number of records as master as with this approach the Data to be cached would have to be less and hence the performance can be improved. How to join the two flat files using the joiner t/r if there is no matching port? A:-Connect the source Qualifier of two different flat files to two different Exp Trans.Without source you can not create mapping. then using that port connects the joiner Tran.. Create a Dummy output port in both the exp trans.What is the target load order? A:-You specify the target load order based on source qualifiers in a maping. How will you remove the duplicate records from flat file without using sorter? A: .A:-using set count variable in expression transformation. How to run the batch using pmcmd command? A:-Using Command task in the workflow 43.and pass the results accordingly to target tables. 39. What is the difference between Oracle performance and Informatica Performance? Which performance is better? A:-oracle performance deals with the source &targets. How to join 2 tables. 41..If you have the multiple source qualifiers connected to the multiple targets.Use aggregator transformation and group by all ports and create one port for checking Count. you can designate the order in which informatica server loads data into the targets. 38.

txt 48. enclose the parameter file name in single quotes: -paramfile '$PMRootDir/myfile. We can set or flag the records by using these two levels.sorter – Target Check. DELETE. UPDATE or REJECT for target database.30 D. 2) Within a mapping:-within a mapping we use update strategy transformation to flag the records like insert. Difference between Rank and Dense Rank? Rank: 1 2<--2nd position 2<--3rd position 4 5 Same Rank is assigned to same totals/numbers.Select distinct option 4. Golf game ususally Ranks this way. delete or reject. update. T1 T2 10 A 10 A 20 C 20 C 30 D 40 E which transformation can be used to load data into target? Informatica Senarios-7 A:.20 C. Default flag is Inserting. This is usually a Gold Ranking.40 E.Source --Source qualifier. you can instruct the informatica server to either treat all the records in the same way.Source -Source qualifier -Expression –Target -Source qualifier: check sorted by empno Expression:. Or This is the important transformation.Sorce . you can optionally enter the directory and name of a parameter file.Source --Source qualifier.'N') 5. . 46.10 A. 1) Within a session:-When you configure the session. Explain use of update strategy transformation? A:-To flag source records as INSERT. is used to maintain the history data or just most recent changes into the target table. The Informatica Server runs the workflow using the parameters in the file you specify.port expression in_empno var-empno=var_duplicate var_duplicate=in_emp flag= IIF(var_duplicate=var_emp.'Y'. This is a scenario in which the source has 2 cols -10 A .45. What is parameter file? A:-When you start a workflow. For UNIX shell users.Source -Source qualifier -Rank-Expression -Target 47. Rank is followed by the Position.1.20 C And there should be 2 targets one to show the duplicate values and another target for distinct rows. This is must for Incremental Data Loading.Source qualifier – Target Check.aggregator – Target group by-empno 3.Select distinct option 2.

@.for every 10.so. the next rank follows the serial number. 2.So...Let us assume that the buffer size is 6. Explain the commit points for Source based commit and Target based commit.Dense Rank: 1 2<--2nd position 2<--3rd position 3 4 Same ranks are assigned to same totals/numbers/names. it commits the data into target when ever the buffer fills..000 rows and source has 50.000.000 rows it commits the data.. 50.. ………. Assume appropriate value wherever required. Suppose session is configured with commit interval of 10..... 49..i. What is the method of loading 5 flat files of having same structure to a single target and which transformations I can use? Two Methods. Target based commit will commit the data into target based on buffer size of the target. Source based commit will commit the data into target based on commit interval..000 rows it will commit into target.write all files in one directory then use file repository concept(dont forget to type source file type as indirect in the session).e. ..for every 6. 1.use union t/r to combine multiple input files into a single target.000 rows.