ODI 12c - Mapping Flat File To Flat File
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
3/11
Create New Model
Enter Name
4/11
Select Resource Name
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.
6/11
Click on OK.
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.
9/11
Import LKM for Flat file.
10/11
Click on close.
Create Mapping:
11/11
Go to Physical tab and check the assigned knowledge modules.
12/11
Run the mapping.
Click on OK.
13/11