Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SQL Loader Question - Passing Parameter value for loading column while loading data into table

user13472055May 9 2014 — edited May 12 2014

I have below table layout and I want to insert flat file into below table via SQL loader. this file is pipe delimited file. now my question is how I can load value for column - COL_3 ? as my requirement is inserted value should be date which is extracted from file name and it is not going be inside file as record. so can I extract value from file name and pass it as parameter via loading data into table ?

COLUMN NAMEIDPKNULL?DATA TYPEDEFAULTVALUES
COL_11 NDATE/TIMETIMESTAMP(6)
COL_22 YDATE/TIMETIMESTAMP(6)
COL_331NDATE Date extracted from File Name
COL_442NVARCHAR2 (100 Byte)
COL_54 NVARCHAR2 (500 Byte)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 9 2014
Added on May 9 2014
3 comments
3,030 views