Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL Loader

Re: SQL Loader

From: Thomas Bregulla <thomas.bregulla_at_t-mobil.de>
Date: Fri, 27 Nov 1998 16:28:38 +0100
Message-ID: <365EC526.5606@t-mobil.de>


Hi,

my experience is: you cannot crash it.

We import all our data into "POOL" Tables, and check afterwards the existence of BAD-Files like the following: if [ -z "${ORACLE_USER}" ]
then

   sqlload USERID=$DW_ORAUSER \

           CONTROL=$CONTROLFILE \
           DATA=$DATAFILE \
           LOG=$LOGFILE \
           DISCARD=$DISCARDFILE \
           BAD=$BADFILE

else

   sqlload USERID=$ORACLE_USER/$ORACLE_PASSWORT \

           CONTROL=$CONTROLFILE \
           DATA=$DATAFILE \
           LOG=$LOGFILE \
           DISCARD=$DISCARDFILE \
           BAD=$BADFILE 

fi
#------------------------------------------------------------------------------#
# Pruefe den Erfolg bzw. Misserfolg					       #
#------------------------------------------------------------------------------#

if [ -f $BADFILE ] || [ -f $DISCARDFILE ] then

    ErrNr=200
    DWMSG_MeldeFehler ${DW_EintragsNr} F $ErrNr $DATAFILE $LOGFILE fi

Koen Van Vaerenberg wrote:
>
> How do you crash Sql loader .
> I set the option (control file) Errors = 0, but he still does a normal
> completion in Oracle Financials.
> I really need the program to terminate in error when it encounters a bad
> record.
>
> Anyone ??
>
> Thanks in advance

--

Thomas Bregulla,                 Disclaimer:
Landgrabenweg 151, 53227 Bonn    The opinions expressed here
Tel.: 0228.936.2689              are my own; and not of 
Fax.: 0228.936.4709              the company I am working for
Received on Fri Nov 27 1998 - 09:28:38 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US