Professional Documents
Culture Documents
Fixed Width Flat File RDBMS
Fixed Width Flat File RDBMS
Hi Gurus,
Let us discuss how to load data from a Fixed width flat file to RDBMS target table.
I have a flat file with the name DEPT.txt in my windows C:/FILES folder
The flat file DEPT.txt is a Fixed width flat file with the following data
Now inorder to load this file to oracle table of same structure , first you need to set the topology
( Please ignore the following few steps if you have already set the topology and created a model for
files)
Run ODI Studio
Go to Topology navigator
Click on physical architecture
Select file technology
Right click on new physical schema
Give the path of your source files directory in schema and work schema
click on context
Click on +
Give logical schema as SRC_FILES_LS
Click on save
You have to import the knowledge module " LKM FILE to SQL". Please ignore this step if you have
already done it earlier.
Now Expand your integration project
Right click on import knowledge modules
and then import the Loading knowledge module " LKM FILE to SQL"
Then create a new interface as DEPT file data store as your source and TRG_DEPT Oracle table data
store as your target.
Perform automatic mapping
Click on FLOW tab
Go to operator log
Check the log for this session
Open it and check the number of inserts