0% found this document useful (0 votes)
99 views

ODI 12c - Mapping Flat File To Flat File

This document provides instructions for mapping a flat file to another flat file in ODI 12c. It describes creating a new physical schema for the flat file, logical schema, and data model. It also covers importing the LKM File to SQL, creating a target datastore, building the mapping, and running the mapping to copy data from the source flat file to the target flat file.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
99 views

ODI 12c - Mapping Flat File To Flat File

This document provides instructions for mapping a flat file to another flat file in ODI 12c. It describes creating a new physical schema for the flat file, logical schema, and data model. It also covers importing the LKM File to SQL, creating a target datastore, building the mapping, and running the mapping to copy data from the source flat file to the target flat file.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

ODI 12c: Mapping Flat File to Flat File

Pre-requisites:
ODI 12c
Knowledge Modules:
LKM File to SQL, LKM SQL to Multi-Connect, IKM SQL to File Append
Topology Settings:
Creating a New Physical Schema for the Flat File Model

For the Directory (Schema) and Directory (Work Schema) fields, enter the path to the directory, where
your input flat files are located <ODI_HOME>\odi\demo\file). Select Default check box, and then click
Save button. Close editing window for your new physical schema. On the Information window that
follows, click OK. Verify that your new Physical schema was added under the FILE_GENERIC data server in
the
Technologies tree view

1/11
Create Logical Schema for Flat files.

2/11
Creating a New ODI Model for the Flat File Source

Create New Model for flat files.

3/11
Create New Model

Right click on Model folder and then click on New Model.

Enter Name

4/11
Select Resource Name

Go to Files option in Left panel and select the highlighted option.

Note: We are using fixed Length flat file. We can use another option if needed.

Select Attributes

Click the Reverse Engineer button. The following screen appears. Click Yes. The Attributes Setup
Wizard appears.

5/11
Point the cursor, and then click the ruler at the beginning of each column as shown below. The wizard
marks each column.

Enter Field value and set data types.

Column Name Data Type


C1 ABBR String
C2 NAME string
C3 LAND_KM Numeric

6/11
Click on OK.

Expand File model.

7/11
Right Click on Source File and View data.

8/11
Creating a New ODI Target Datastore for use with ODI Mapping

Go to File location path and duplicate the source file and rename it.

Doubt clicks on duplicate model of source.

Rename to TARGET File and Save it.

9/11
Import LKM for Flat file.

Select LKM File to SQL.

10/11
Click on close.

Create Mapping:

Change the mapping setting for staging area.

Drag source and target to mapping area.

11/11
Go to Physical tab and check the assigned knowledge modules.

Change the LKM properties in Target.

12/11
Run the mapping.

Click on OK.

Go to Operator and see the status.

13/11

You might also like