How to use RECNUM special field in a file bulk load interface (sqlldr)
xkbFeb 4 2011 — edited Feb 4 2011Hi,
I'm trying to load an ordered set of full text lines from a flat file using Sql Loader 11.2 with ODI 11.1.1 bulk LKM (LKM File to Oracle - SQLLDR).
I have to keep track of each line number in a separate target table column NUM_SEQ and feed it with sqlldr RECNUM special field.
I haven't found any other way to do that but to tweak manually the generated sqlldr .ctl control file (bad but it works) :
(
NUM_SEQ RECNUM,
FULL_LINE CHAR(4000)
)
I've tried to map "RECNUM" as an expression in the map tab of the loading interface but the column itself gets discarded at .ctl generation.
I haven't found any mention of RECNUM in the whole ODI documentation, neither on this forum nor the Web.
Using an internal Oracle sequence in the subsequent steps of the ETL breaks the garantee of ordered lines.
Any hint ?