Академический Документы
Профессиональный Документы
Культура Документы
1
Informatica How To Series
Transposing Rows To Column
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 how to transpose rows to columns. Join our professional training program and learn from experts.
History:
Version Description Change 0.1 Initial Draft 0.1 Review#1 Author Upendra Upadhyay Amit Sharma Publish Date 12th Aug 2011 18th Aug 2011
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 1
TABLE OF CONTENTS
S.NO 1 2 3 4 5 6 Introduction. Creating Repository & Folder. Import Database Source and Target Table. Create Mapping and Add Logics to Transpose Rows to Columns. Create Workflow. Workflow Monitor & Review data. TITLE PAGE. NO. 3-4 5-8 9-14 15-26 27-31 32-34
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 2
Introduction
Convert row into column in Target in Informatica.
In this example, Convert row into column in Target. There are following Step to follow convert row into column in Informatica power center. Create Repository and Folder in Informatica Repository Manager. Import Source Database and Target Table (Create Target Table Manually or Import from Database) Create Mapping and drag and drop source and target table into mapping designer window. Then create normalizer transformation to transpose the row into column. Then create sequence generator transformation to create sequence. Then create expression transformation and passes row into expression transformation and create four columns. Then create Sorter transformation for sorting the data. Then create aggregator transformation to group by columns. Create Workflow and Specify connection for Source and Target. Execute Workflow and Check execution in Informatica Workflow Monitor and then Preview Data in Target.
Source Data.
Target Data.
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 3
Source Data.
Source Table
Target Table
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 4
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 5
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.
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
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 8
Step-2 Then Connect to Repository in Informatica Power Center Designer Right click on repository name and click on Connect.
Step-3 Go to Tools Menu and click on Source Analyzer to import source table. And then go to Sources Menu in Informatica Power Center Designer.
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 9
Step-4 And then select Source menu and click on Import from database
Step-5 Specify Username, Owner name, password and then connect. Then select source table and click OK.
www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com Page 10
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 11
Step-6 View data in source analyzer, Right click on STORE_DATA and select Preview Data.
Step-7 Specify Username and Password and connect it. Then Close it.
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 12
Step-8 Now click on Target Designer. Step-9 And then select Target menu and click on Import from database to import target table.
Step-10 Specify Username, Owner name, password and then click on connect and then select table and then OK.
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 13
Step-11 To view data select table and Right click on that table after that specify Username and Password and connect it. Then Close it.
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 14
and Create New Mapping and then name the mapping and
Step-2 Then drag and drop source and target data in Mapping Designer.
Step-3 Then Create Normalizer Transformation, Select Normalizer Transformation and Drop into Mapping Designer Window.
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 15
Step-5 Then go to Nomalizer tab and create two column, one for Seq_ID input and another source column input, then specify occurs (No. of column in source table ) and then click OK.
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 16
Step-6 Then connect all source qualifier column to normalizer table column.
Step-7 Then create sequence generator transformation. select sequence generator transformation and drop into mapping designer window.
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 17
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 18
Step-10 Then go to Properties and check Reset and then click OK.
Step-11 Then create expression transformation. Select expression transformation and drop into mapping designer window.
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 19
Step-12 Then passed all output columns into expression transformation table.
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 20
Step-14 Go to ports tab and Create output port (No. of row into source table). Then write expression query in Expression Editor and then click OK.
Step-15 Then Create sorter transformation, select sorter transformation symbol and drop into mapping designer window.
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 21
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 22
Step-18 Then create aggregator transformation, select aggregator transformation and drop into mapping designer window.
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 23
Step-19 Then go to ports tab and dummy port for input port and write expression in expression editor.
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 24
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 25
CREATE WORKFLOW
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 26
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 27
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 28
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 29
Step-9 Now Configure Connection to Source and Target, Then Right Click on task and select Edit, Then Click Mapping tab and configure connection for your source and target table schema in oracle 11g RDBMS. And then click OK.
Step-10 Select DBConnection for Source and Target Relation Database and set property on Target Connection.
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 30
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 31
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 32
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 33
Step-3 Now view data in Informatica Target Designer and RDBMS (Oracle 11g).
www.bispsolutions.com
www.hyperionguru.com
www.bisptrainings.com
Page 34