Monday, October 4, 2010

INFORMATICA Q AND ANS PART 1


1) What is target load order?
You specify the target load order based on source qualifiers in a maping.If you have the multiple source qualifiers connected to the multiple targets, you can designate the order in which informatica server loads data into the targets.
2) How do you configure mapping in informatica?
You should configure the mapping with the least number of transformations and expressions to do the most amount of work possible. You should minimize the amount of data moved by deleting unnecessary links between transformations. For transformations that use data cache (such as Aggregator, Joiner, Rank, and Lookup transformations), limit connected input/output or output ports. Limiting the number of connected input/output or output ports reduces the amount of data the transformations store in the data cache.
You can also perform the following tasks to optimize the mapping:
Configure single-pass reading.
Optimize datatype conversions.
Eliminate transformation errors.
Optimize transformations.
Optimize expressions.
3) When conventional data warehousing is able to handle and answer complex queries
Than what is the need of OLTP and OLAP?
Designed for analysis of business measures by categories and attributes Optimized for bulk loads and large, complex, unpredictable queries that access many rows per table. Loaded with consistent, valid data; requires no real time validation supports few concurrent users relative to OLTP
4) How can we join 3 databases like Flat File, Oracle, and Db2 in Informatrica?
You have to use two joiner transformations. First one will join two tables and the next
One will join the third with the resultant of the first joiner.
5) How do you transfer the data from data warehouse to flat file?
You can write a mapping with the flat file as a target using a DUMMY_CONNECTION.A flat file target is built by pulling a source into target space using Warehouse Designer tool.
6) How can u work with remote database in informatica? Did u work directly by using
Remote connections?
You can work with remote, but you have to Configure FTP, Connection details IP address, User authentication.
7) What is difference between IIF and DECODE function?
You can use nested IIF statements to test multiple conditions. The following example tests for various conditions and returns 0 if sales is zero or negative:
IIF (SALES > 0, IIF ( SALES < 50, SALARY1, IIF( SALES < 100, SALARY2, IIF(
SALES < 200, SALARY3, BONUS))), 0 )
You can use DECODE instead of IIF in many cases. DECODE may improve readability.
The following shows how you can use DECODE instead of IIF :
SALES > 0 and SALES < 50, SALARY1,
SALES > 49 AND SALES < 100, SALARY2,
SALES > 99 AND SALES < 200, SALARY3,
SALES > 199, BONUS)
8) What are the new features of the server manager in the informatica 5.0?
You can use command line arguments for a session or batch. This allows you to change the values of session parameters, and mapping parameters and mapping variables. Parallel data processing: This feature is available for powercenter only.If we use the informatica server on a SMP system; you can use multiple CPU’s to process a session concurently. Process session data using threads: Informatica server runs the session in two processes.
9) Can we use aggregator/active transformation after update strategy transformation?
You can use aggregator after update strategy. The problem will be, once you perform the update strategy, say you had flagged some rows to be deleted and you had performed aggregator transformation for all rows, say you are using SUM function, then the deleted rows will be subtracted from this aggregator transformation.
10) What is the best way to show metadata (number of rows at source, target and each
Transformation level, error related data) in a report format?
You can select these details from the repository table. You can use the view REP_SESS_LOG to get these data
11) Can you start batches with in a batch?
You can not. If you want to start batch that resides in a batch, create a new independent batch and copy the necessary sessions into the new batch.
12) How can you create or import flat file definition in to the warehouse designer?
You can not create or import flat file definition in to warehouse designer directly. Instead you must analyze the file in source analyzer, and then drag it into the warehouse designer. When you drag the flat file source definition into warehouse designer workspace, the warehouse designer creates a relational target definition not a file defintion.If you want to load to a file, configure the session to write to a flat file. When the informatica server runs the session, it creates and loads the flat file.
13) In my source table 1000 rec's r there. I want to load 501 rec to 1000 rec into my
Target table? How can u do this?
You can overide the sql Query in Wofkflow Manager. LIke
select * from tab_name where rownum<=1000
minus
select * from tab_name where rownum<=500;
14) How to Generate the Metadata Reports in Informatica?
You can generate PowerCenter Metadata Reporter from a browser on any workstation,even a workstation that does not have PowerCenter tools installed.
15) What r the methods for creating reusable transformations?
You can design using 2 methods
Using transformation developer
Create normal one and promote it to reusable
16) What are the difference between joiner transformation and source qualifier
Transformation?
You can join heterogeneous data sources in joiner transformation which we can not achieve
In source qualifier transformation. You need matching keys to join two relational sources in source qualifier transformation. Where as you doesn’t need matching keys to join two sources. Two relational sources should come from same datasource in sourcequalifier.You can join relational sources which are coming from different sources also.
17) Can any body write a session parameter file which will change the source and
targets for every session. i.e different source and targets for each session run.
You are supposed to define a parameter file. And then in the Parameter file, you can define two parameters, one for source and one for target. Give like this for example:
$Src_file = c:\program files\informatica\server\bin\abc_source.txt
$tgt_file = c:\targets\abc_targets.txt
Then go and define the parameter file:
[folder_name.WF:workflow_name.ST:s_session_name]
$Src_file =c:\program files\informatica\server\bin\abc_source.txt
$tgt_file = c:\targets\abc_targets.txt
If its a relational db, you can even give an overridden sql at the session level...as a parameter. Make sure the sql is in a single line.
18) In a sequential batch can you run the session if previous session fails?
Yes. By setting the option always runs the session.
19) Can you use the mapping parameters or variables created in one mapping into any
other reusable transformation?
Yes.Because reusable tranformation is not contained with any maplet or maping.
20)Can you generate reports in Informatcia?
Yes. By using Metadata reporter we can generate reports in informatica.
21)There are 3 depts in dept table and one with 100 people and 2nd with 5 and 3rd with some 30 and so. i want to diplay those deptno where more than 10 people exists
Yes! the answer provided is absolutely right. by an SQL application(Oracle). If you want to perform it thru informatica, the Fire the same query in the SQL Override of Source qualifier transformation and make a simple pass thru mapping.Other wise, you can also do it by using a Filter.Router transformation by giving the condition there deptno>=10.
22)Can you copy the session to a different folder or repository?
Yes. By using copy session wizard You can copy a session in a different folder or repository. But that target folder or repository should consists of mapping of that session.If target folder or repository is not having the maping of copying session,You should have to copy that maping first before you copy the session.
23)Can Informatica be used as a Cleansing Tool? If Yes, give example of
transformations that can implement a data cleansing routine.
Yes, we can use Informatica for cleansing data. some time we use stages to cleansing the data. It depends upon performance again else we can use expression to cleasing data. For example an feild X have some values and other with Null values and assigned to target feild where target feild is notnull column, inside an expression we can assign space or some constant value to avoid session failure.
The input data is in one format and target is in another format, we can change the format in expression.
we can assign some default values to the target to represent complete set of data in the target.
24)Can batches be copied/stopped from server manager?
Yes, we can stop the batches using server manager or pmcmd command
25)Can Informatica load heterogeneous targets from heterogeneous sources?
Yes it can. For example...Flat File and Relations sources are joined in the mapping, and later, Flat File and relational targets are loaded.
26)What is tracing level?
Ya its the level of information storage in session log.The option comes in the properties tab of transformations. By default it remains "Normal". Can be Verbose Initialisation Verbose Data Normal
or Terse.
27)Can we run a group of sessions without using workflow manager
Yes Its Posible using pmcmd Command with out using the workflow Manager run the group of session.
28)How do you create single lookup transformation using multiple tables?
Write a override sql query. Adjust the ports as per the sql query.
29)How can we join the tables if the tables have no primary and forien key relation and
no matchig port to join?
without common column or common data type we can join two sources using dummy ports.
1.Add one dummy port in two sources.
2.In the expression trans assing '1' to each port.
3.Use Joiner transformation to join the sources using dummy port(use join conditions).
30)Describe two levels in which update strategy transformation sets?
Within a session: When you configure a session, yoYou can instruct the Informatica Server to either treat all records in the same way (for example, treat all records as inserts),or use instructions coded into the session mapping to flag records for different databaseoperations.Within a mapping: Within a mapping, you use the Update Strategy transformation to flag records for insert, delete, update, or reject.
31)How do you handle decimal places while importing a flatfile into informatica?
While importing flat file definetion just specify the scale for a neumaric data type. in themapping, the flat file source supports only number datatype(no decimal and integer). In the SQ associated with that source will have a data type as decimal for that number port of the source.
source ->number datatype port ->SQ -> decimal datatype.Integer is not supported. hence
decimal is taken care.
32)How do you handle decimal places while importing a flatfile into informatica?
while importing flat file definetion just specify the scale for a neumaric data type. in the
mapping, the flat file source supports only number datatype(no decimal and integer). In
the SQ associated with that source will have a data type as decimal for that number port
of the source.
source ->number datatype port ->SQ -> decimal datatype.Integer is not supported. hence
decimal is taken care.
33)What is parameter file?
When you start a workflow, you can optionally enter the directory and name of a parameter file. The Informatica Server runs the workflow using the parameters in the file you specify.
For UNIX shell users, enclose the parameter file name in single quotes:
-paramfile '$PMRootDir/myfile.txt'
For Windows command prompt users, the parameter file name cannot have beginning or
trailing spaces. If the name includes spaces, enclose the file name in double quotes:
-paramfile ”$PMRootDir\my file.txt”
Note: When you write a pmcmd command that includes a parameter file located on
another machine, use the backslash (\) with the dollar sign ($). This ensures that the
machine where the variable is defined expands the server variable.
pmcmd startworkflow -uv USERNAME -pv PASSWORD -s SALES:6258 -f east -w
wSalesAvg -paramfile '\$PMRootDir/myfile.txt'

Print this post

No comments: