Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Catching errors on inserts
Dang! You are *good*!!!
Kind of cumbersome to have a full stack trace (i.e. several dozens or hundreds of Kbytes of text to a ".trc" file) produced for each ORA-00001, but that's one helluva cool idea!
> alter session set events='0001 trace name errorstack forever, level 10';
> All "duplicate value" errors will then be trapped in the alert.log file.
> You can always substitute your own favorite error in place of 0001.
>
> > -----Original Message-----
> > From: Bob Metelsky [mailto:bmetelsky_at_cps92.com]
> > Sent: Friday, August 16, 2002 3:48 PM
> > To: Multiple recipients of list ORACLE-L
> > Subject: Catching errors on inserts
> >
> >
> > Oracle Water Walkers!
> >
> > I have a very large insert script that may contain data that is
> > larger than the column, I need to be able to identify rows that fails
> > with
> >
> > "Value too large for column"
> >
> > Im doing 10k inserts via insert into table (val1,val2,...)
> >
> > Is there a way to do this (trap bad rows) in SQL Plus? I don't see how
> > but I figured I ask. The collective intelligence here is
> > greater that I
> > ...
> >
> > Many thanks
> >
> > You people on fatcity are awesome!!
> > bob
> >
> >
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.com
> > --
> > Author: Bob Metelsky
> > INET: bmetelsky_at_cps92.com
> >
> > Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> > San Diego, California -- Public Internet access / Mailing Lists
> > --------------------------------------------------------------------
> > To REMOVE yourself from this mailing list, send an E-Mail message
> > to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> > the message BODY, include a line containing: UNSUB ORACLE-L
> > (or the name of mailing list you want to be removed from). You may
> > also send the HELP command for other information (like subscribing).
> >
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Gogala, Mladen
> INET: MGogala_at_oxhp.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Tim Gorman INET: Tim_at_SageLogix.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Sat Aug 17 2002 - 10:48:18 CDT
![]() |
![]() |