You are on page 1of 53

Suggested Naming Conventions

 Transformations
• Aggregator AGG_TransformationName
• Expression EXP_TransformationName
• Filter FIL_TransformationName
• Joiner JNR_TransformationName
• Lookup LKP_TransformationName
• Normalizer NRM_TransformationName
• Rank RNK_TransformationName
• Sequence Generator SEQ_TransformationName
• Stored Procedure SP_TransformationName
• Source Qualifier SQ_TransformationName
• Update Strategy UPD_TransformationName
Suggested Naming Conventions

 Targets
• T_TARGETNAME
 Mappings
• m_MappingName
 Mapplets
• mplt_MappletName
 Sessions
• s_MappingName
Mapping Designer
 Ports
• To design the basic flow of data between source and
targets
• Types: input, output, variable
 Variable Ports
 For aggregator, expression and rank transformations
 Use variable to
• simplify complex expression
• store temporary data
• store values from prior rows
 Provides Wizards to create simple pass through
mappings/Slowly changing dimensions
Mapping Creation
 How to create a Mapping?
• Open the Mapping designer workspace
• Choose Mappings > Create
• Give a proper name to the mapping

• Open the Sources from the navigator which you would


have created/imported using source analyzer
• Drag and drop the source table from navigator into the
workspace
Mapping Creation
Mapping Creation
• Choose Transformation > Create to create a
transformation object
• Select the type of transformation object you want to create
and give a proper name to it
Mapping Creation
• Drag and drop the required fields(ports) from Source
Qualifier to the transformation object
Mapping Creation
• Add new ports in the transformation object and define
them as variable ports to do complex transformation
Mapping Creation
• Open the Targets from the navigator which you would
have created/imported using Warehouse Designer
• Select the target table, drag and drop it into the designer
workspace
Mapping Creation
• Drag and drop the output ports from the last
transformation object to the corresponding ports in the
target

• Choose Repository > Save to store the mapping


• Check the output window for any errors
Mapping Wizards
 Wizards help to create mappings quickly and easily
 Wizards designed to create mappings for loading and
maintaining star schemas
 Mappings created using wizards can be edited and
customized
 Getting Started Wizard
• Simple Pass Through
• mappings to load static fact and dimensions
• Use this when you want to drop all existing data from the
table before loading new data
• Slowly Growing Target
• mappings to load slowly growing dimension or fact tables
• Use this to load new data when existing data does not require
updates
Mapping Wizards
 Slowly Changing Dimensions Wizard
• Type I Dimension Mapping
- Keep most recent values in target

Source Target
Emp id Name Email Emp id Name Email

1001 Shane Shane 1001 Shane Shane


@xyz.c @xyz.c
om om

Source Target
Emp id Name Email Emp id Name Email

1001 Shane Shane@ 1001 Shane Shane@ Shane@xyz.


abc.co.in abc.co.in com
Mapping Wizards
 Slowly Changing Dimensions Wizard
• Type II Dimension Mapping
 Version Data Mapping
- insert new and changed dimensions with version number and
incremented primary key
- full history and progress of changes
Target
Source PM_ Emp Name Email PM_V
PRIM id ERSI
Emp id Name Email ARY ON_
KEY NUM
BER
10 Shane Shane
1000 10 Shane Shan 0
@xyz.c
e@xy
om z.co
m
Type II Dimension/Versioning
Source
Emp Name Email
id
10 Shane Shane@
abc.co.in

PM_PRI Emp Name Email PM_VERSION_N


MARYKE id UMBER
Y

1000 10 Shane Shane@ 0


xyz.com

1001 10 Shane Shane@ 1


abc.co.in

Target
Type II Dimension/Versioning
Source
Emp Name Email
id
10 Shane Shane@
abc.com

PM_PRI Emp Name Email PM_VERSION_N


MARYKE id UMBER
Y
Target 1000 10 Shane Shane@ 0
xyz.com

1001 10 Shane Shane@ 1


abc.co.in
1003 10 Shane Shane@ 2
abc.com
Mapping Wizards
 Slowly Changing Dimensions Wizard
• Type II Dimension Mapping
 Flag Current Mapping
- insert new and changed dimensions with flags and incremented
primary key
- full history and flagging only current dimensions
Target
Source PM_ Emp Name Email PM_CU
PRIM id RRENT
Emp id Name Email ARY _FLAG
KEY

10 Shane Shane
1000 10 Shane Shan 1
@xyz.c
e@xy
om z.co
m
Type II Dimension/Flag Current
Source
Emp Name Email
id
10 Shane Shane@
abc.co.in

PM_PRI Emp Name Email PM_CURRENT_F


MARYKE id LAG
Y

1000 10 Shane Shane@ N


xyz.com

1001 10 Shane Shane@ Y


abc.co.in

Target
Type II Dimension/Flag Current
Source
Emp Name Email
id
10 Shane Shane@
abc.com

PM_PRI Emp Name Email PM_CURRENT_F


MARYKE id LAG
Y
Target 1000 10 Shane Shane@ N
xyz.com

1001 10 Shane Shane@ N


abc.co.in
1003 10 Shane Shane@ Y
abc.com
Mapping Wizards
 Slowly Changing Dimensions Wizard
• Type II Dimension Mapping
• Effective Date Range Mapping
- insert new and changed dimensions with date range to define
current dimension data
- full history and tracking changes with an exact effective date
range
Target
Source
PM_ Emp Name Email PM_B PM_E
Emp Name Email PRIM id EGIN ND_
id ARY _DAT DATE
KEY E
10 Shane Shane
@xyz.c
1000 10 Shane Shan 01/0
om e@xy 1/00
z.co
m
Type II Dimension/Effective Date
Source
Emp Name Email
id
10 Shane Shane@
abc.co.in

PM_PRIMA Emp id Name Email PM_BEGIN PM_END


RYKEY _DATE _DATE

1000 10 Shane Shane 01/01/00 03/01/00


@xyz.c
om
1001 10 Shane Shane 03/01/00
@
abc.co.
in
Target
Type II Dimension/Effective Date
Source
Emp Name Email
id
10 Shane Shane@
abc.com

PM_PRI Emp Name Email PM_BEGIN PM_END_


MARYKE id _DATE DATE
Y

1000 10 Shane Shane@ 01/01/00 03/01/00


xyz.com

1001 10 Shane Shane@ 03/01/00 05/02/00


abc.co.in
1003 10 Shane Shane@ 05/02/00
abc.com

Target
Mapping Wizards
 Slowly Changing Dimensions Wizard
• Type III Dimension Mapping
- insert new and update values in existing dimensions
- keep current and previous values (partial history)

Target
PM_P Emp Name Email PM_P PM_E
Source RIMA id rev_ FFECT
RYKE Colu _DAT
Emp Name Email Y mnN E
id ame

10 Shane Shane 1 10 Shane Shane 01/01


@xyz.c @xyz. /00
om com
Type III Dimension
Source
Emp Name Email
id
10 Shane Shane@
abc.co.in

PM_PRIMA Emp id Name Email PM_Prev_ PM_EFFE


RYKEY ColumnNa CT_DATE
me

1 10 Shane Shane Shane@xy 01/02/00


@ z.com
abc.co.
in

Target
Type III Dimension

Source
Emp Name Email
id
10 Shane Shane@
abc.com

PM_PRI Emp Name Email PM_Prev_ PM_EFFEC


MARYKE id ColumnNa T_DATE
Y me

1 10 Shane Shane@ Shane@ 01/03/00


abc.com abc.co.in

Target
Mapplet Designer
 Mapplet
• Reusable object that reflect set of transformation
logic to use in multiple mappings
• Like a single transformation object
• Expands at run time
 Each Mapplet must include the following
• Exactly one input transformation or Source Qualifier
transformation
• At least one output transformation
 Rules for Objects in Mapplets
• Use only reusable Sequence Generators
• Do not use pre- or post-session stored procedures
Mapplet Designer
 Rules for Objects in Mapplets
• Do not use the following in a mapplet
 Joiner
 Cobol Source definition
 Normalizer
 Target definitions
Mapplet Designer
 How to create a Mapplet?
• Open the Mapplet designer workspace
• Choose Mapplets > Create
• Give a name to the Mapplet

• Create an input transformation to define mapplet input


ports if the mapplet contains no sources
Creating a Mapplet

• Double click on the object to define the input ports


Creating a Mapplet
• Create the transformation objects to be used in the
mapplet
• One input transformation can be connected to only one
transformation, so to pass same values to two separate
data flows,connect the input transformation to another
transformation and then split the data flow
• Use Output transformation to create output ports, creating
one Output transformation for each mapplet output group

• Connect all the input ports, ports in transformation objects


and the output ports to complete the data flow
Creating a Mapplet

• Choose Repository > Save to store the mapplet


• Check the output window for validation status
• If mapplet is not valid,correct the problem and re-save the
mapplet
Replacing a relational database connection
• You can replace a relational database connection with another
relational database connection.
• For example, you might have several sessions that you want to write to
another target database. Instead of editing the properties for each
session, you can replace the relational database connection for all
sessions in the repository that use the connection.
Work Flow Manager

• In the Workflow Manager, you define a set of


instructions called a workflow to execute mappings you
build in the Designer.
• Generally, a workflow contains a session and any other
task you may want to perform when you execute a
session. Tasks can include a session, email notification,
or scheduling information. You connect each task with
links in the workflow.
• You can also create a worklet in the Workflow Manager.
A worklet is an object that groups a set of tasks
Replacing a relational database connection

•Workflow manager>Connections>Replace
Working with tasks

Type of Tasks

• Command
• Decision
• Event
• Email
• Timer
• Assignment
• Session
Command
• The Command task allows you to specify one or more shell commands
to run during the workflow. For example, you can specify shell
commands in the Command task to delete reject files, copy a file, or
archive target files.

• You can use a Command task in the following ways:

 Standalone Command task: You can use a Command task anywhere in


the workflow or worklet to run shell commands.
 Pre- and post-session shell command: You can call a Command task
as the pre- or post-session shell command for a Session task.
Command (Cntnd…)
Decision

•The Decision task allows you to enter a condition that


determines the execution of the workflow, similar to a link
condition.
•The Decision task has a pre-defined variable called
$Decision_task_name.Condition that represents the result
Decision
of the decision condition.
•The Informatica Server evaluates the condition in the
Decision Task and sets the pre-defined condition variable
to True (1) or False (0).
•You can use the Decision task instead of multiple link
conditions in a workflow
Decision (Contd…)
Event

•You can define events in the workflow to specify the


sequence of task execution. The event is triggered based on
the completion of the sequence of tasks. Use the following
tasks to help you use events in the workflow:
Event-Raise task. Event-Raise task represents a user-defined event. Use the
Event-Raise task with the Event-Wait task to define events.
Event-Wait task. The Event-Wait task waits for an event to occur. Once the
event triggers, the Informatica Server continues executing the rest of the
workflow.
Pre-defined event. A pre-defined event is a file-watch event. For pre-defined
events, use an Event-Wait task to instruct the Informatica (Indicator File)
User-defined event. A user-defined event is a sequence of tasks in the
workflow.
Event(Contd..)
Event (Contd…)
Email

•The Workflow Manager provides an Email task that allows


you to send email during a workflow.
•You can create reusable Email tasks in the Task Developer
for any type of email. Or, you can create non-reusable
Email tasks in the Workflow and Worklet Designer.
You can use Email tasks in any of the following locations:
Session properties
Workflow properties
Workflow or worklet
Email(Contd…)
Timer

•The Timer task allows you to specify the period of time


to wait before the Informatica Server executes the next
task in the workflow.
•You can choose to start the next task in the workflow at
an exact time and date.
•You can also choose to wait a period of time after the
start time of another task, workflow, or worklet before
starting the next task.
The Timer task has two types of settings:
Absolute time.
Relative time.
Timer(Contd..)
Assignment

•The Assignment task allows you to assign a value to a


user-defined workflow variable.
Session

•You create a Session task for each mapping you want


the Informatica Server to run. The Informatica Server
uses the instructions configured in the session to move
data from sources to targets.

Session
Worklet

•A worklet is an object that represents a set of tasks. It can


contain any task available in the Workflow Manager.
•You can also nest a worklet in another worklet.
WorkFlow Monitor
• The Workflow Monitor is a tool that allows you to
monitor workflows and tasks.
• You can view details about a workflow or task in either
Gantt Chart view or Task view.
• You can run, stop, abort, and resume workflows from
the Workflow Monitor.
Workflow Monitor

•You can configure options specific to Gantt Chart and


Task view.
WorkFlow Monitor
Gantt Chart View
WorkFlow Monitor
• Task View

You might also like