Informatica Hands On Document
Informatica Hands On Document
Repository manager
Adding folders to your REPOSITORY
CREATE GROUP and give privileges in your REPOSITORY (In Version 8.6 and above
this section has been moved to ADMIN CONSOLE)
1. Click SECURITY >> MANAGE USERS AND PRIVILEGES in the main menu
2. Click GROUPS tab
3. Click ADD button in the left top (Below the X button)
4. Give Unique GROUP NAME, Description and Contact Info
5. Click ok
6. Go to PRIVILEGES tab
7. Click LIST GROUPS radio button (This will list all the groups in this Repository)
8. Provide the required access. (For example see Developer group which has only
development task access)
Check for any object lock in this repository (In Version 8.6 and above this section
has been moved to ADMIN CONSOLE)
Check for active connections in this repository (In Version 8.6 and above this
section has been moved to ADMIN CONSOLE)
Mapping designer
Import flat file as your Source
Make sure to have the table in Oracle before importing the table definition
Your designer tool should be open and connected to your repository, folder
Your designer tool should be open and connected to your repository, folder
Make sure your Source definition and Target definition are created.
Workflow manager
Create a session for the above developed mapping
1. Open Workflow manager and Connect to your repository, folder.
2. Go to Workflow Designer tab
3. Click Workflows >> Create in the main menu
4. Type a Workflow name, ex. ‘wkf’ prefixed with mapping name
5. Click OK (You can see a Start task in the workflow designer window)
6. Now Click Tasks >> Create in the main menu
7. Select SESSION and Type a Session name, ex. ‘s’ prefixed with your mapping
name.
8. Press Create button
9. Select your mapping from the list of mappings available in the window and press
OK and Done
10. Go to Tasks >> Link Task
11. Click on the START task and drag it to your SESSION task.
12. Right click your SESSION and press EDIT
13. Go to Mapping tab
14. Click ‘SQ source’ instance - Your source file definition
15. On the properties tab, Type the Source file directory path and source file name
(Make sure the source file is placed at the mentioned path)
16. Click the Target instance,
17. On the connections tab, select the target Native relational connection.
18. On the properties tab, make sure to change the following -
a. Target load type - Normal
b. Table name prefix - Your Oracle table schema name
19. Press Apply and Ok
20. Ctrl + S (to save the workflow)
Workflow monitor
Check the status of the executed workflow in Monitor
DEPARTMENT
DEPT_ID DEPT_NM
10001 BFS
10002 HC
10003 LS
10004 Retail
10005 Manlog
Transformations
1. Expression
2. Filter
3. Sorter
4. Aggregator
5. Lookup
Expression transformation:
Note: You are going to covert the DOJ in string format to DATE format
Filter transformation:
Note: You are going insert the records with DEPT_ID = 10001
Sorter transformation:
Note: You are going insert the records into the table sorted by EMP_ID Descending order
1. In the Mapping Designer, click Transformation > Create. Select the Sorter
transformation.
2. Enter a name for the Sorter and click Create.
The Designer creates the Sorter transformation.
3. Click Done.
4. Drag the ports into the Sorter transformation.
The Designer creates the input/output ports for each port you include.
5. Double-click the title bar of the transformation to open the Edit Transformations
dialog box.
6. Select the Ports tab.
7. Select the ports you want to use as the sort key. (ex. EMP_ID)
8. For each port selected as part of the sort key, specify whether you want the
Integration Service to sort data in ascending or descending order. (ex. Descending
order)
9. Select the Properties tab, modify the Sorter transformation properties. (if any, like
select only distinct Records)
10. Click OK.
11. Map the ports to the downstream transformation.
12. Ctrl + S
13. Refresh and Validate the session in the Workflow manager
14. Ctrl + S
15. Run the workflow
Aggregator transformation:
Note: You are going to find out the SUM (SALARY) Group by DEPT and insert it into the
target table. Before staring the below instruction make sure you have the below mentioned
table created in your Database, and the target definition has been imported in your folder in
mapping designer
1. In the Mapping Designer, click Transformation > Create. Select the Aggregator
transformation.
2. Enter a name for the Aggregator, click Create. Then click Done.
The Designer creates the Aggregator transformation.
3. Drag the ports (DEPT_ID and SALARY) to the Aggregator transformation
from the expression or Source qualifier transformation.
4. Double-click the title bar of the transformation to open the Edit Transformations
dialog box.
5. Select the Ports tab.
6. Click the group by option for each column you want the Aggregator to use in
creating groups. (ex. DEPT_ID)
Optionally, enter a default value to replace null groups.
7. Click Add to add an expression port. (Name it as ‘SUM_SALARY’)
The expression port must be an output port. Make the port an output port by
clearing Input (I).
8. Open the Expression window type the expression. (ex. sum(SALARY))
a. Click VALIDATE >> OK >> APPLY
9. Connect the output ports (from the Aggregator Transformation) to a downstream
transformation or target. (The output ports should be DEPT_ID and SUM_SALARY)
10. Ctrl + S
11. Refresh the session in the Workflow manager
12. Define the Relational connection for the new target instance.
13. Ctrl + S the Workflow and Validate the workflow
14. Run the workflow
Lookup transformation:
Using DEPT_ID in your source, you need to pull out the DEPT_NM from the lookup table
DEPARTMENT
DEPT_ID DEPT_NM
10001 BFS
10002 HC
10003 LS
10004 Retail
10005 Manlog
Before staring the below instructions please make sure to create the below mentioned
tables in your database and import new target definition in your mapping designer –
1. Sequence generator
2. Rank transformation
3. Router
4. Joiner
5. Update strategy
6. Union
7. Stored procedure
========================================================