Professional Documents
Culture Documents
Safe Software Inc. makes no warranty either expressed or implied, including, but not limited to, any implied warranties of
merchantability or fitness for a particular purpose regarding these materials, and makes such materials available solely on
an “as-is” basis.
In no event shall Safe Software Inc. be liable to anyone for special, collateral, incidental, or consequential damages in
connection with or arising out of purchase or use of these materials. The sole and exclusive liability of Safe Software Inc.,
regardless of the form or action, shall not exceed the purchase price of the materials described herein. This manual
describes the functionality and use of the software at the time of publication. The software described herein, and the
descriptions themselves, are subject to change without notice.
Copyright
© 2008 Safe Software Inc. All rights are reserved.
Revisions
Every effort has been made to ensure the accuracy of this document. Safe Software Inc. regrets any errors and omissions
that may occur and would appreciate being informed of any errors found. Safe Software Inc. will correct any such errors and
omissions in a subsequent version, as feasible. Please contact us at:
Safe Software Inc.
Fax: 604-501-9965
docs@safe.com
www.safe.com
Safe Software Inc. assumes no responsibility for any errors in this document or their consequences, and reserves the right
to make improvements and changes to this document without notice.
Trademarks
FME is a registered trademark of Safe Software Inc. Informatica and PowerCenter are registered trademarks of Informatica
Corporation. All brand or product names are trademarks or registered trademarks of their respective companies or
organizations.
Contents
Getting Started.................................................................................................................................................... 1
Install FME Extension .................................................................................................................................... 1
License FME Extension .................................................................................................................................. 1
Configure FME Extension ............................................................................................................................... 1
Extend with FME Administrator ............................................................................................................... 1
Register FME Extension in Repository Server ............................................................................................ 2
Install Samples ............................................................................................................................................ 2
Basic Concepts............................................................................................................................................. 6
Specify Inputs and Outputs for the FME Transformation ............................................................................. 6
Specify FME Workspace Service for the FME Transformation ....................................................................... 6
Configure FME Workspace in FME Workbench ........................................................................................... 6
Section 1 ............................................................................................................................................................. 7
Contents iii
S a f e S o f t w a r e I n c . F M E I n f o r m a t i c a T u t o r i a l
Section 2 ........................................................................................................................................................... 14
Contents iv
S a f e S o f t w a r e I n c . F M E I n f o r m a t i c a T u t o r i a l
Section 3 ........................................................................................................................................................... 19
Section 4 ........................................................................................................................................................... 23
Appendix ........................................................................................................................................................... 26
Contents v
S a f e S o f t w a r e I n c . F M E I n f o r m a t i c a T u t o r i a l
FME Workbench................................................................................................................................................. 26
Opening FME Workbench ..............................................................................................................................26
Importing an FME Source And FME Destination ................................................................................................26
Importing an Informatica Source and Destination ............................................................................................27
Export Informatica Mapping ..................................................................................................................27
Add Informatica Source ........................................................................................................................28
Add Informatica Destination ..................................................................................................................29
Contents vi
S a f e S o f t w a r e I n c . F M E I n f o r m a t i c a T u t o r i a l
Getting Started
The FME® Extension for Informatica extends Informatica®
PowerCenter® with spatial data integration capabilities.
License FME Extension
This document contains all the information you need to An FME Extension for Informatica license is required. Once
start evaluating the FME Extension for Informatica. The licensed, the FME Extension for Informatica will be an
common tasks that a PowerCenter user would perform option available from the FME Administrator.
using the FME Extension are described and sample
mappings, workspaces and data have been provided.
Steps on how to create various FME workspaces with Configure FME Extension
Informatica and FME sources and destinations are
described in the appendices. For detailed instruction in Informatica 7.x
FME please contact Safe Software about the Introduction
to FME course. Extend with FME Administrator
Install FME Extension 1. Open the FME Administrator from Start > All Programs
> FME > FME Adminstrator. Extend the FME
Before you get started, you will need the following Extension for Informatica PowerCenter Server by
software installed and licensed on the evaluation selecting it in the Applications list and clicking on the
computer: Extend button. Do the same for the FME Extension for
Informatica PowerMart Client. The Current State for
• Informatica PowerCenter 7.x, or 8.x each Application should read Extended.
• FME 2007 Build 4102 or higher
Getting Started 1
S a f e S o f t w a r e I n c . F M E I n f o r m a t i c a T u t o r i a l
Informatica 8.x
Getting Started 2
S a f e S o f t w a r e I n c . F M E I n f o r m a t i c a T u t o r i a l
3. Select FME Extension for Informatica PowerMart Client 9. Choose Complete or Abort (depending on your
8 and click Extend preferences)
6. Under General Properties click Edit 10. If the service is not automatically re-enabled, click
Enable to restart it once it has been stopped.
7. Change OperatingMode to Exclusive, and then click OK
11. Select the Plug-ins tab and click Register Repository
Service plug-in
Getting Started 3
S a f e S o f t w a r e I n c . F M E I n f o r m a t i c a T u t o r i a l
Getting Started 4
S a f e S o f t w a r e I n c . F M E I n f o r m a t i c a T u t o r i a l
Install Samples
1. Go back to the Properties tab (or select the repository All FME workspaces and data have been provided in the
service again) and Edit the General Properties to zip file TutorialData.zip. This guide assumes that the
change the OperatingMode back to Normal and contents of this zip file are extracted to the C drive,
complete the process. creating the following directories under
C:\InformaticaDemoWorkspaces:
FMESourceAndFMEDestination
FMESourceAndInformaticaDestination
InformaticaSourceAndFMEDestination
InformaticaSourceAndInformaticaDestination
Getting Started 5
S a f e S o f t w a r e I n c . F M E I n f o r m a t i c a T u t o r i a l
Getting Started 6
S a f e S o f t w a r e I n c . F M E I n f o r m a t i c a T u t o r i a l
Section 1
Transformation with FME Source and FME Target
Create Mapping
1. Open the Informatica PowerCenter Designer and
connect to your repository.
Workspace Service
16. Now connect the target file to the FME Transformation
container. Drag the FMETerminate target from the
Targets folder in the Repository Navigator to the Sample FME Workspace Service
canvas. Connect the Terminate field of the FME
Transformation container to the Terminate field of 1. A sample FME workspace service has been provided
FMETerminate container. for this example. Please refer to the Install Samples
section in the Getting Started section.
Save Mapping
Workflow
18. A mapping that uses an FME Source and an FME
Destination has now been configured. Save the Create Workflow
repository by clicking on Repository > Save.
repository. In the Workflow Manager click once on the Tasks > Link Task, then drag the cursor from the Start
folder under your repository in the Repository icon to the FMESourceAndFMEDestination session:
Navigator. Click on Tools > Workflow Designer to
bring up the Workflow Designer canvas. Click on
Workflows > Create to bring up the Create Workflow
screen. Call the new workflow MyWorkflow and click
OK:
Configure Task
Save Workflow Task Update: MyWorkflow (Succeeded) Start time: 2008-03-28 9:30:23
AM End time: 2008-03-28 9:30:39 AM
Section 2
Transformation with Informatica Source and
Informatica Target
Objective
In this section we will create a mapping that has an FME
Transformation that transforms data from an Informatica
Source and then outputs the transformed data to an
Informatica Target.
Mapping
Create Source
1. Set up a connection to the TestData SQL Server 2. Open the Informatica PowerCenter Designer if it is not
database. Open the Informatica Workflow Manager in already open. Connect to your repository.
Informatica 7.x or PowerCenter Workflow Manager in
Informatica 8.x and connect to your repository. Click 3. Expand your folder and click on Tools > Source
on Connections > Relational to open the Relational Analyzer to bring up the Source Analyzer canvas.
Connection Browser. For Select Type, select Microsoft
SQL Server. Click the New button to open the 4. Add an Informatica source by clicking on Sources >
Connection Object Definition screen. Fill in the Import from Database to bring up the Import Tables
parameters for your SQL Server connection to the screen. Connect to the TestData (SQLServer) ODBC
TestData database. An example is shown below. data source. Select the dbo.Addresses table and click
on OK to add the metadata to the Source Analyzer
canvas.
Create Mapping
14. The output port will contain the same schema as the
input for this simple transformation. In the Ports tab
of the Edit Transformation screen, copy each field
and paste them underneath the AddressesOut port,
then checkmark the O (output) column for each and
uncheck the I (input) column (the output column
needs to be checked before the input column is
unchecked). Also make sure to add a “1” to the end of
each port name so that there is no duplication. Click
OK.
Save Mapping
Workspace Service
15. On the Mapping Designer canvas, the SQ_Addresses 1. A sample FME workspace service has been provided
fields have already been mapped to the input ports of for this example. Please refer to the Install Samples
the FME Transformation. Now select the AddressesOut section in the Getting Started section.
fields and map them to the input ports of the
Output_Addresses container. 2. If you followed the instructions in the Install Samples
section, you should have a folder called C:\Informatica
DemoWorkspaces\InformaticaSourceAndInformatica
Destination which represents the FME Workspace
Service. This folder contains an FME workspace which
contains an Informatica source and Informatica
Create Workflow
5. Right-click on the canvas and select Start Workflow. A
Status of Succeeded should appear in the Workflow
1. Create a new workflow to run this mapping in the Monitor for this workflow.
Workflow Manager. Open the Workflow Manager and
connect to your repository.
Check Results
2. Click on Tools > Task Developer, then Tasks > Create.
In the Create Task screen enter InformaticaSourceAnd
6. Verify the translation was successful by checking the
InformaticaDestination for the name of the new task.
session log. Right-click on the InformaticaSourceAnd
Click Create. Select the InformaticaSourceAnd
InformaticaDestination task in the Workflow Monitor
InformaticaDestination mapping to associate with the
and click on Get Session Log. In the log scroll to the
session. Click Done.
SESSION LOAD SUMMARY section. Verify that 661
rows were affected in the Source Load Summary and
3. Click on Tools > Workflow Designer. From the
661 rows were affected in the Target Load Summary.
Sessions folder in the Repository Navigator, drag the
Section 3
Transformation with Informatica Source and FME
Target
Mapping
Informatica 7.x Icons
Create Mapping
Workflow
Create Workflow
Save Mapping 1. Open the Workflow Manager. Create a new task for
this mapping. Click on Tools > Task Developer, then
Tasks > Create. In the Create Task screen enter
9. In the Designer, click on Repository > Save to save
InformaticaSourceAndFMEDestination for the name of
the new mapping.
the new task. Click on Create. Select the Informatica
SourceAndFMEDestination mapping to associate with
Workspace Service the session. Click OK, then Done.
Workspaces\InformaticaSourceAndFMEDestination\Out
put\AddressesIn.shp for Dataset. The points are
displayed in the Universal Viewer:
Run Workflow
Check Results
Section 4
Transformation with FME Source and Informatica
Target
Mapping
Create Mapping
Informatica 7.x Icons
1. In the Designer, click Tools > Mapping Designer. Drag
the InformaticaSourceAndInformaticaDestination
mapping onto the canvas from the Mappings folder in
the Repository Navigator.
Save Mapping
Workspace, double click on the FME Workspace the Mapping tab select SQ_FMEInit under the Sources
demo.fmw file to automatically open it in FME folder. Under Properties, set the Source File Directory
Workbench. This workspace takes some NJ and NY to C:\InformaticaDemoWorkspaces\FMESourceAnd
address data in CSV format, filters out the NJ address InformaticaDestination\SourceData\. Set the Source
records and writes them out to Informatica. Filename to FMEInit.txt (if necessary). Click OK.
Appendix
FME Workbench
Appendix 26
S a f e S o f t w a r e I n c . F M E I n f o r m a t i c a T u t o r i a l
Importing an Informatica
Source and Destination
Appendix 27
S a f e S o f t w a r e I n c . F M E I n f o r m a t i c a T u t o r i a l
1. Start FME Workbench from Start > All Programs > FME
> FME Workbench.
Appendix 28
S a f e S o f t w a r e I n c . F M E I n f o r m a t i c a T u t o r i a l
The name of the FME Transformation from the The two automatically published parameters are
mapping will be listed (“FME”) in the Informatica published with the names SourceHost_INFA and
Transformation List screen. Select this and click on SourcePortService_INFA. These names must not be
OK. changed or else the integration will not work.
Appendix 29
S a f e S o f t w a r e I n c . F M E I n f o r m a t i c a T u t o r i a l
Tips and
Troubleshooting
Appendix 30