Database Utilities (MOSC)

MOSC Banner

one all null row is always in discard file of sqlldr

edited Aug 24, 2011 5:47PM in Database Utilities (MOSC) 4 commentsAnswered ✓
Hi All,

My DB is 11.1.

I used spool to generate a formatted flat data and load it to oracle with sqlldr. I found everything was fine except that the discard file was always generated.

Its content is ~~~, which is line seperator specified in control file.

But before loading, I cleansed the data with the following command and it seems that the empty line should be in the data file any more.

sed '/^ *$/d' S_PROD_INT_PLC_BK_LEON.dat > S_PROD_INT_PLC_BK_LEON.dat1
 mv  S_PROD_INT_PLC_BK_LEON.dat1 S_PROD_INT_PLC_BK_LEON.dat

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center