Upload
amit-sharma
View
1.356
Download
0
Tags:
Embed Size (px)
Citation preview
Informatica Power Center 9.0.1Building Financial Data Mode - Lab#6
Hands-on Guide Implementing Router Transformation
Description: BISP is committed to provide BEST learning material to the beginners and advance learners. In the same series, we have prepared a complete end-to-end Hands-on Guide for building financial data model in Informatica. The document focuses on how the real world requirement should be interpreted. The mapping document template with very simplified steps and screen shots makes the complete learning so easy. The document focuses on implementing Router Transformation. Join our professional training program and learn from experts.
History:
Version Description Change Author Publish Date 0.1 Initial Draft Upendra Upadhyay 1st July 2011 0.1 Review#1 Amit Sharma 10th July 2011
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 1
TABLE OF CONTENTS
S.NO TITLE PAGE. NO.
1 Introduction. 3-4
2 Creating Repository & Folder . 5-8
3 Import Data Source . 9-18
4 Create Mapping and implementing Router Transformation . 19-24
5 Create Workflow . 25-31
6 Workflow Monitor & Review data. 32-33
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 2
Router Transformation in Informatica.
Router transformation is an active and connected transformation. It is similar to the filter transformation used to test a condition and filter the data. But in a filter transformation, you can specify only one condition and drops the rows that do not satisfy the condition, where as in a router transformation, you can specify more than one condition and provides the ability for route the data that meet the test condition.
Filter Condition.
Source Table.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 3
Introduction
Target Table.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 4
Creating Repository & Connecting it.
Step-1 First create repository, Click on Start -> All Programs -> Informatica 9.0.1 -> Client -> Power Center Client -> Power Center Repository Manager.
Step-2 Then click on Repository Menu and click on Add Repository.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 5
Creating Repository and Folder
Step-3 Give information like Repository Name and Username. Then click on ok button and repository created successfully.
Step-4 Now connect repository. Right click on newly created repository and click on connect.
Step-5 Give Username & password and click on Connect.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 6
Creating Folder.
Step-1 Go to Informatica Power Center Repository Manager and click on Folder Menu and click on Create.
Step-2 Specify Name of Folder, Description, Owner, OS Profile, Options, Status and got to permissions tab.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 7
Step-3 This is permission tab to give permission for this folder.
Step-4 This is newly created Folder
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 8
Step-1 Click on Start -> All Programs -> Informatica 9.0.1 -> Client -> Power Center Client -> Power Center Designer..
Step-2 Then Connect to Repository in Informatica Power Center Designer Right click on repository name and click on Connect.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 9
Importing Source and Target Table
Step-3 Go to Tools Menu and click on Source Analyzer to import source table.
Step-4 And then go to Sources Menu in Informatica Power Center Designer.
Step-5 And then click on Source menu and select Import from file.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 10
Step-6 Select Flat file which you want to import, Select location in Look in and select file and click OK.
Step-7 Choose the file type - Delimited, click on Import field names from first line. and the click Next.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 11
Step-8 Specify Delimiters and click Next Button.
Step-9 Specify Name of Column and Click Finish.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 12
Step-11 This is Source table.
Step-12 Now right click on table to see Preview Data.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 13
Step-13 Select Flatfile Location and open it.
Step-14 Now click on Target Designer.
Step-15 And then select Target menu and click on Import from database to import target table.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 14
Step-16 Specify Username, Owner name, password and then click on connect and then select table and then OK.
Step-17 Target table in Target Designer.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 15
Step-18 To Preview Data select table and Right click on that table and the specify Username and Password and then connect it. Then Close.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 16
Step-19 To Preview Data, select table and Right click on that table and the specify Username and Password and then connect it. Then Close.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 17
Step-20 To Preview Data, select table and Right click on that table and the specify Username and Password and then connect it. Then Close.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 18
Step-1 Go to Mapping Designer and Create New Mapping and then name of mapping and click OK.
Step-2 Then drag and drop source and target data in Mapping Designer.
Step-3 Now, Create Transformation, Click on Transformation menu and select Create.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 19
CREATE MAPPING
Step-4 Select Transformation and name of transformation.
Step-5 Then drop all column from SQ_SRC_IRCS Table to Router Transformation table.
Step-6 Now, Right click on Router Transformation and select Edit.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 20
Step-7 Go to Groups tab.
Step-8 Add group and Insert name of Group and Write Condition in Group Filter Condition.
Step-9 Filter Condition for USD_Currency and Validate it.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 21
Step-10 Write all Group filter condition and click on Apply and OK.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 22
Step-11 Then Create Mapping.
Step-12 Iconize view of mapping.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 23
Step-13 Save this mapping.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 24
Step-1 Now go to Informatica Power Center Workflow Manager, and go to Tools menu and select Workflow Designer.
Step-2 Now to create workflows, Go to Workflows menu and select Create. After that Name of workflow and click OK buttons.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 25
CREATE WORKFLOW
Step-3 Now, workflow created.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 26
Step-4 Now create Task, Go to Tasks Menu and click Create.
Step-5 Select session and insert Name of task.
GStep-6 Select Mapping to associate with the session.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 27
Step-7 Workflow Designer Window.
Step-8 Now create flow B/W Workflow to Task. Select Line Task and link to Start to Filter.
Step-9 Work Flow Designer Windows.
Step-10 Now Configure Connection to Target, Then Right Click on Expression and Edit, Then Click Mapping tab and configure connection for your Target table schema in oracle 11g RDBMS. And then click OK.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 28
Step-11 Go to Mapping tab.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 29
Step-11 Select DB Connection for Source and Target Relation Database and set property.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 30
Step-12 Now save (ctrl+s) this workflow and check it.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 31
Step-1 Now Start Task, Right click on Task and Click on Start Task.
Step-2 Check session in Informatica PowerCenter Workflow Monitor.
Step-3 Session log.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 32
WORKFLOW MONITOR AND VIEW TARGET DATA
Step-4 Now view data in Target RDBMS (Oracle 11g) for table TRG_IRCS_HKD
Step-5 Now view data in Target RDBMS (Oracle 11g) for table TRG_IRCS_INR
Step-6 Now view data in Target RDBMS (Oracle 11g) for table TRG_IRC_USD
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 33