Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difference between bad and discard file

Status
Not open for further replies.

rishiu

Programmer
Feb 26, 2001
22
0
0
US
What is the difference between a bad file and a discard
file in SQL loader?
Rishiu
 
The bad file contains those rows that had an error. Maybe the data file had some format errors, or maybe you had some constraints violated.

The discard file is not related to errors, but to data which didn't satisfy any of the when clauses in your control file.

For example, you could state that only data with a>3 (being 'a' a field) be loaded.

Then a field like that:

a b c
2 1 3

would be discarded.

Then, if a is a PK, and you have a row whose value is 1, a field like that:

a b c
1 1 1

would be bad.


Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top