Oracle Item Import Interface - SQL Loader scripts

| No Comments | No TrackBacks

Item has to be loaded into Oracle. We can import items into Oracle using item interface table mtl_system_items_interface.

Steps to load item into Oracle.

1. Populate interface table mtl_system_items_interface through SQL Loader(no biz validation) or plsql programs with validation

2. Run "Import Items" concurrent program under Inventory responsibility.

 

Sample Control File for a .csv data file:

 

 load data

 infile 'datafile.csv' "str '|\r\n'"

 insert/replace/append into table mtl_system_items_interface  

 fields terminated by "," optionally enclosed by '"'               

 trailing nullcols

 (          Process_Flag,

            Set_Process_Id,

            Transaction_Type,

            Organization_Id,

            inventory_item_id,

            segment1,

            description

)

 

"str '|\r\n'" - this will help in getting the last field of every record without carriage return or linefeed character on it.

 

Command to run SQL Loader:

 

1. Login to UNIX box and run this, sqlldr usr/pwd@instance_sid control_file.ctl log_file.log

2. The SQL loader can also be run from our local PC if Oracle client is installed and it can be verified by checking under oracle_home/bin. Also the oracle_home/bin should be set under environment variable, so that if we type the sqlldr command in windows prompt, it should get executed.

 

More info should be found in the Inventory Open Interfaces user guides.

No TrackBacks

TrackBack URL: http://chandramouly.com/MT/mt/mt-tb.cgi/9

Leave a comment

About this Entry

This page contains a single entry by chandramouly published on April 27, 2010 2:38 PM.

Hello World was the previous entry in this blog.

Oracle Customer Master Updates - HZ Party Site and Locations is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.