2

Is there a way to prevent sqlloader from creating either the BAD file or the DISCARD file or both?

I read in a forum that setting the BAD parameter to NUL or NULL does that, but it doesn't seem to work. Something like:

sqlldr control=CONTROL.ctl data=DATA.txt bad=NUL

This ends up creating a file called NUL.bad (or NULL.bad depending on how you spell it)

Chepech
  • 5,258
  • 4
  • 47
  • 70

1 Answers1

3

Discard file should be optional, based on a discard predicate / discard parameter, but the Bad file is not an optional file - if you get rows rejected when loading, it will generate the file.

You could try send bad to the null depending (/dev/null in unix, NUL windows), did you set the right one for your OS?

Andrew
  • 26,629
  • 5
  • 63
  • 86