Beruflich Dokumente
Kultur Dokumente
Chandrashekar P
Abstract
Table of Contents
1. An Overview of DWH...............................................................................................................4
2. Informatica Architecture......................................................................................................5
2.1. Informatica PowerCenter Client Tools...........................................................................5
2.2. Application Services..............................................................................................................7
3. Informatica Transformations.............................................................................................8
3.1. Source Qualifier Transformation......................................................................................9
3.2. Expression Transformation..............................................................................................12
3.3. Aggregate Transformation...............................................................................................15
3.4. Filter Transformation..........................................................................................................16
3.5. Router Transformation.......................................................................................................17
3.6. Sorter Transformation........................................................................................................18
3.7. Joiner Transformation:......................................................................................................19
3.8. Lookup Transformation......................................................................................................21
3.9. Union Transformation.........................................................................................................24
4. Workflow Creation..................................................................................................................25
5. Summary.......................................................................................................................................30
An Introduction to Informatica
1. An Overview of DWH
A data warehouse is a relational database that is designed for query and analysis
rather than for transaction processing. It usually contains historical data derived
from transaction data, but it can include data from other sources. In addition to a
relational database, a data warehouse environment includes an extraction,
transportation, transformation, and loading (ETL) solution
Page 2 of 29
An Introduction to Informatica
2. Informatica Architecture
Tool_View:
These are the development tools installed at developer end. These tools enable a
developer to
Click on Designer:
Page 3 of 29
An Introduction to Informatica
Page 4 of 29
An Introduction to Informatica
Page 5 of 29
An Introduction to Informatica
SAP BW Service: The SAP BW Service is an application service that listens for RFC
requests from SAP BW and initiates workflows to extract from or load to SAP BW
Web Services Hub : The Web Services Hub is a web service gateway for external
clients.
It processes SOAP requests from web service clients that want to access
PowerCenter functionality through web services. Web service clients access the
Integration Service and Repository Service through the Web Services Hub
Core Services:
The PowerCenter Architecture has a new set of Core Services which comprises of:
Log Service / Gateway Service / Administration Service / Configuration Service
Authentication Service and Domain Service
3. Informatica Transformations
Transformation can be
Page 6 of 29
An Introduction to Informatica
Type of Transformations:
2. The Source Qualifier is used to join data originating from the same
source database,
Hands_on:
Select the type of source file, (Source can be a DB, XML File, Flat file)
As part of this example the source is DB. Click on Import from Database
Page 7 of 29
An Introduction to Informatica
The table will be imported as mentioned below and it gets stored in Source folder.
Click on mapping A popup window will get displayed, provide the mapping name
(eg: m_*****)
Page 8 of 29
An Introduction to Informatica
Now open the Source folder and drag the required table in to the Mapping designer
window.
While dragging itself each Source definition will have its source qualifier. Double click
on SQ A popup window gets opened, In the ports tab provide the needed ports
in the order of the results getting retrieved from your query.
Note: All the fields might not be required, so in that case delete the unwanted ports,
while linking the field the Datatype needs to be taken care.
Page 9 of 29
An Introduction to Informatica
Click on the Expression Transformation icon and drag it in the designer window,
Double click on the dragged Exp_Trns Ports tab will have the details of the
ports and its type (Input, Output or variable)
Page 10 of 29
An Introduction to Informatica
In the above example we have variable named: Name & Annual_Income, Click as
mentioned below and write the required expressions. In the functions tab the
in-built function of the tools can be seen with the syntax.
Import Target:
Navigate to Target designer Select Create and provide the Target Table name
Page 11 of 29
An Introduction to Informatica
Add the required columns as per the output and its appropriate datatype &
precision.
Now Navigate to Mapping Designer and drag the created target in to the designer
window. Once after linking all the fields, save it, the output window shows the
status of the mapping.
Source Value:
Page 12 of 29
An Introduction to Informatica
Output:
To get the output, run the Workflow corresponding to that. (Please refer How to
Create Workflow Session for details)
Example:
To calculate total of daily sales / To calculate average of monthly / yearly sales.
Click on the Aggregate Transformation icon and drag it in the designer window,
Double click on the dragged Aggr_Trns Ports tab will have the details of the
ports and its type (Input, Output or variable). Select he column on what basis the
Grouping needs to be done.
Page 13 of 29
An Introduction to Informatica
Source Value:
Output:
Example:
Employees who are working in Department: 10
Product that falls in the rate category $500 and $1000
Click on the Filter Transformation icon and drag it in the designer window, Double
click on the dragged Filtr_Trns Ports tab will have the conditions for filtering.
Page 14 of 29
An Introduction to Informatica
Output:
Page 15 of 29
An Introduction to Informatica
NewGroup1:
Page 16 of 29
An Introduction to Informatica
NewGroup2:
Default:
Page 17 of 29
An Introduction to Informatica
Note: In order to join two sources, there must be at least one or more pairs of
matching column between the sources and a must to specify one source as
master and the other as detail.
Click on the Joiner Transformation icon and drag it in the designer window, Double
click on the dragged Jnr_Trns condition tab will have the conditions for joining &
Ports tab will have the type of join.
Page 18 of 29
An Introduction to Informatica
Page 19 of 29
An Introduction to Informatica
For Example: You are having Emp_details which will hold all the existing
employee level informations.
Need to create emp_ids for New_Joinees to verify the existing ids and to
generate new id Lookup can be used. (Because joiner will not work here, as there is
no common key).
Select the Lookup Icon select the Lookup table from Source / Target otherwise
Import the same.
Drag the needed values from Source Qualifier to the Lookup, Double click the Lookup
transformation Name the fields from Source Qualifier as In_****.
Page 20 of 29
An Introduction to Informatica
Page 21 of 29
An Introduction to Informatica
Source_Table_Values:
Output: (Depends upon the Performance and Designation the MSI percentage has
been assigned to each employee)
Unconnected Lookup
Page 22 of 29
An Introduction to Informatica
Output:
Page 23 of 29
An Introduction to Informatica
Similar to the UNION ALL statement, the Union transformation does not
remove duplicate rows.
4. Workflow Creation
Click on Task Create Provide new session name and select the
appropriate mapping for workflow.
Page 24 of 29
An Introduction to Informatica
Double click on the Session General provide Fail Parent if the task fails
Page 25 of 29
An Introduction to Informatica
Mapping Select the DB Connection details for Source & Provide the Target file
type & location for the output file.
Note: SQL Query can be modified at session level. If the query in SQ & Session is
different then the job will take the session level query.
Page 26 of 29
An Introduction to Informatica
Page 27 of 29
An Introduction to Informatica
To view the reason for failure Right Click on the Session Get Session Log.
Page 28 of 29
An Introduction to Informatica
After making the required changes Refresh the mapping then run the
Workflow again.
Page 29 of 29