petersJazz
Programmer
hi,
is there a way to get SQL Loader to rollback if it finds an error while loading a file.
This is part of the log I get:
Record 3: Rejected - Error on table CRPDTA.F03B13Z1.
ORA-00001: unique constraint (CRPDTA.F03B13Z1_1) violated
MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
Table CRPDTA.F03B13Z1:
2 Rows successfully loaded.
1 Row not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
[/color green]
and I use the command:
sqlldr errors=0 rows=999 discardmax=1 control=$WORKDIR/xyz.tmp userid=$ORAUSER/$ORAPASS@$ORADB data=$IMPDIR/xyz.dat bad=$WORKDIR/xyz.bad log=$WORKDIR/xyz.log >$WORKDIR/xyz.out 2>&1
[/color green]
regards
Peter
is there a way to get SQL Loader to rollback if it finds an error while loading a file.
This is part of the log I get:
Record 3: Rejected - Error on table CRPDTA.F03B13Z1.
ORA-00001: unique constraint (CRPDTA.F03B13Z1_1) violated
MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
Table CRPDTA.F03B13Z1:
2 Rows successfully loaded.
1 Row not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
[/color green]
and I use the command:
sqlldr errors=0 rows=999 discardmax=1 control=$WORKDIR/xyz.tmp userid=$ORAUSER/$ORAPASS@$ORADB data=$IMPDIR/xyz.dat bad=$WORKDIR/xyz.bad log=$WORKDIR/xyz.log >$WORKDIR/xyz.out 2>&1
[/color green]
regards
Peter