informatica

42
Informatica Power Center 9.0.1 Informatica How To Series “Loading Unique and Duplicate Records in Separate Tables” 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 loading duplicate and Unique records in separate tables. Join our professional training program and learn from experts. History: Version Description Change Author Publish Date 0.1 Initial Draft Upendra Upadhyay 12th Aug 2011 0.1 Review#1 Amit Sharma 18 th Aug 2011 www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 1

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 This document contains step by step process for conditional lookup transformation (Unconnected lookup) in Informatica Power Center 9.0.1. Join our professional training program and learn from experts. History:

Transcript of informatica

Page 1: informatica

Informatica Power Center 9.0.1

Informatica How To Series

“Loading Unique and Duplicate Records in Separate Tables”

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 loading duplicate and Unique records in separate tables. Join our professional training program and learn from experts.

History:Version Description Change Author Publish Date0.1 Initial Draft Upendra Upadhyay 12th Aug 20110.1 Review#1 Amit Sharma 18th Aug 2011

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 1

Page 2: informatica

TABLE OF CONTENTS

S.NO TITLE PAGE. NO.

1 Introduction. 3-4

2 Creating Repository & Folder . 5-8

3 Import Data Source And Target Table. 9-16

4 Create Mapplet & Mapping. 17-29

5 Create Workflow. 30-35

6 Workflow Monitor & Review data. 36-37

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 2

Page 3: informatica

Mapplet.

A Mapplet is a reusable object that represents a set of transformations. It allows you to reuse transformation logic and can contain as many transformations as you need. A Mapplet can contain transformations, Reusable transformations and shortcuts to transformations.

There are two types of mapplet.

Input Mapplet (For the input port). Output Mapplet(For the output port).

DescriptionIn this example, we remove duplicate row using mapplet. There are following steps to remove duplicate row using mapplet.

• Create Repository and Folder in Informatica Repository Manager.• Import Source database and create/import target table in Informatica Designer.• Create mapplet, First create input mapplet (creating port for input the column), then create

aggregator transformation (add dummy port for column and check group by box to this column and then count data using count function). Then create filter transformation and filter the unique and duplicate data using expression. Then passes all column into output mapplet transformation.

• Then Create Mapping using mapplet.

• Create workflow and execute workflow.

• Check log file.• Then Review output data.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 3

Introduction

Page 4: informatica

Source Table (Data)

Target Table (Data)

Unique Records

Duplicate Records

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 4

Page 5: informatica

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.

Step-3 Give information like Repository Name and Username. Then click on ok button and repository created successfully.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 5

Creating Repository and Folder

Page 6: informatica

Step-4 Now connect repository. Right click on newly created repository and click on connect.

Step-5 Give Username & password and click on Connect.

Creating Folder.

Step-1 Go to Informatica Power Center Repository Manager and click on Folder Menu and click on Create.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 6

Page 7: informatica

Step-2 Specify Name of Folder, Description, Owner, OS Profile, Options, Status and got to permissions tab.

Step-3 This is permission tab to give permission for this folder.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 7

Page 8: informatica

Step-4 This is newly created Folder

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 8

Page 9: informatica

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

Page 10: informatica

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.

Step-4 And then select Source menu and click on Import from database

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 10

Page 11: informatica

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 11

Page 12: informatica

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 12

Page 13: informatica

Step-6 View data in source analyzer, Right click on SRC_CREDITCARD 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 13

Page 14: informatica

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 14

Page 15: informatica

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 15

Page 16: informatica

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 16

Page 17: informatica

Step-12 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 17

Page 18: informatica

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 18

Page 19: informatica

Step-1 Go to Mapplet Designer and Create New Mapplet and then name of mapplet and click OK.

Step-2 Then go to transformation and Create transformation.

Step-3 Then select Mapplet Input transformation in list and name on transformation.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 19

CREATE MAPPLET & MAPPING

Page 20: informatica

Step-4 Mapplet Input Transformation.

Step-5 Then right click on Input transformation and select Edit.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 20

Page 21: informatica

Step-6 Then go to Ports tab and create port and specify name of port and click apply and ok.

Step-7 Then create aggregator transformation, click on transformation menu ant select create then select aggregator in transformation drop down and name of transformation.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 21

Page 22: informatica

Step-8 Then passes all column into aggregator table and right click on aggregator table and select Edit.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 22

Page 23: informatica

Step-9 In ports tab create dummy port for account_officer_cd and name of port and in expression write query as a count(account_officer_cd).

Step-10 Then create two filter transformation, passed all row into filter table.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 23

Page 24: informatica

Step-11 Then right click on filter transformation and select Edit, Then go to properties tab and write filter condition.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 24

Page 25: informatica

Step-11 Write Condition and Validate it.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 25

Page 26: informatica

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 26

Page 27: informatica

Step-12 Then right click on second filter transformation and select Edit, Then go to condition and write condition.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 27

Page 28: informatica

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 28

Page 29: informatica

Step-13 Write Condition and Validate it.

Step-14 Then create mapplet output transformation and

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 29

Page 30: informatica

Step-15 Then passes all column into output transformation.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 30

Page 31: informatica

Step-16 Then save this mapplet.

Step-17 Then go to Mapping Designer and Create New Mapping and then name of mapping and click OK.

Step-18 Then drag and drop source and target data in Mapping Designer.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 31

Page 32: informatica

Step-19 Then drag and drop mapplet into Mapping Designer Window.

Step-20 Then connect Input mapplet into source qualifier table.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 32

Page 33: informatica

Step-21 And connect output to target table.

Step-22 And then save it (ctrl+s) and check mapping is VALID.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 33

Page 34: informatica

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 34

CREATE WORKFLOW

Page 35: informatica

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 35

Page 36: informatica

Step-3 Now create Task, Go to Tasks Menu and click Create.

Step-4 Now select session and insert Name of task.

Step-5 Select Mapping to associate with the session.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com |

Page 36

Page 37: informatica

Step-6 Workflow Designer Window.

Step-7 Now create flow B/W Workflow to Task. Select Line Task and link to Start to Filter.

Step-8 Work Designer Windows

Step-9 Now Configure Connection to Source and Target, Then Right Click on Unique_Records 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.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 37

Page 38: informatica

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 38

Page 39: informatica

Step-11 Now save (ctrl+s) this workflow and check it.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 39

Page 40: informatica

Step-1 Now Start Workflow, Right click on Workflow Designer Window and Click on Start Workflow.

Step-2 Check session in Informatica PowerCenter Workflow Monitor.

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 40

WORKFLOW MONITOR AND VIEW TARGET DATA

Page 41: informatica

Step-3 Now view data in Target RDBMS (Oracle 11g)

Unique Records

Duplicate Records

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 41

Page 42: informatica

www.bispsolutions.com | www.hyperionguru.com | www.bisptrainings.com | Page 42