P. 1
lab-guide

lab-guide

4.0

|Views: 3,426|Likes:
Published by api-3810732

More info:

Published by: api-3810732 on Oct 17, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

05/09/2014

pdf

text

original

PURPOSE

•To alter the mapping created in the Router lab to send rows not
loaded into any of the three target tables to a flat file for
inspection

OBJECTIVE

•To demonstrate the ability to populate targets of different types

DURATION

•15 minutes

SUMMARY

SOURCE: ODS_EMPLOYEE
TARGETS: ODS_EMPLOYEE_SALES,
ODS_EMPLOYEE_NON_SALES,

FF_EMPLOYEE_INVALID_xx

Informatica PowerMart / PowerCenter 6 Basics – Lab 20 – Heterogeneous Targets

248

Lab
20

20

Create Flat File Target Definition

•Drag the ODS_EMPLOYEE Source Definition into the Warehouse
Designer workspace

•Click on the Rename button and name it

FF_EMPLOYEE_INVALID_xx

•Change the Database type to Flat File (on the Table tab)

•In the Flat File information (also on the Table tab), select
Delimited and click on the Advanced… button and verify the
defaults: Comma delimited with no optional quotes

Informatica PowerMart / PowerCenter 6 Basics – Lab 20 – Heterogeneous Targets

249

•On the Columns tab, change the Key Type to NOT A KEY for
the EMPLOYEE_ID column

•Click OK

Copy Mapping

•Copy the m_ODS_EMPLOYEE_TYPE_xx mapping and call it
m_ODS_EMPLOYEE_INVALID_TYPES_xx

Edit Mapping

•Delete the ODS_EMPLOYEE_ROOKIE Target Definition from
the mapping

Deleting a Target Definition from the mapping
does not delete it from the Target Node – it only deletes it
from the mapping

•Edit rtr_ODS_EMPLOYEE_TYPE – Groups tab, - delete the
ROOKIES group
•Add the FF_EMPLOYEE_INVALID_xx target to the mapping

•Leave the rest of the mapping intact

Link Flat File Target Definition

•Link the rtr_EMPOLYEE_TYPE Default Group to the
FF_EMPLOYEE_INVALID_xx Target Definition

•Save

Informatica PowerMart / PowerCenter 6 Basics – Lab 20 – Heterogeneous Targets

250

Completed Mapping

Create Workflow

•Create Workflow called

wf_ODS_EMPLOYEE_INVALID_TYPES_xx

•Add wf_ODS_EMPLOYEE_INVALID_TYPES_xx.log as the

Workflow Log File Name

•Rename Start task to
start_ODS_EMPLOYEE_INVALID_TYPES

•Create Session Task called

s_m_ODS_EMPLOYEE_INVALID_TYPES_xx
•Select native_target_xx connection for sq_ODS_EMPLOYEE
Source Instance

Note that native_source is not the chosen
database connection. The ODS_EMPLOYEE source table
was populated in an earlier lesson and is located in the target
database (schema), native_target_xx

•Select native_target_xx connection for
ODS_EMPLOYEE_NON_SALES and ODS_EMPLOYEE_SALES
Target Instances

Informatica PowerMart / PowerCenter 6 Basics – Lab 20 – Heterogeneous Targets

251

°

Check property Truncate target table option for both
target objects (2 attribute changes)

°

Only if the target table database connection is using an
Oracle client less than 8.1.7.2, select Normal for Target
load type property for each target (2 attribute changes)
•No changes required for FF_EMPLOYEE_INVALID_xx Target
Instance
•Link start_ODS_EMPLOYEE_INVALID_TYPES to
s_m_ODS_EMPLOYEE_INVALID_TYPES_xx

•Save, Validate and Start Workflow

wf_ODS_EMPLOYEE_INVALID_TYPES_xx

•Monitor and Review the results for
s_m_ODS_EMPLOYEE_INVALID_TYPES_xx in the Workflow
Monitor

Results – Session Properties

Results – Session Transformation Statistics

Informatica PowerMart / PowerCenter 6 Basics – Lab 20 – Heterogeneous Targets

252

Informatica PowerMart / PowerCenter 6 Basics – Lab 20 – Heterogeneous Targets

253

Results – Preview Data

To preview the data on Windows-based Operating System servers:
•Right-click on FF_EMPLOYEE_INVALID_xx and select

Preview Data…

•Click on the button to the right of the Flat File Name

•Drill down to the directory given by the Instructor and select

ff_employee_invalid_xx.out

•Click on the Open button

•Click on the Open button, again.

Informatica PowerMart / PowerCenter 6 Basics – Lab 20 – Heterogeneous Targets

254

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->