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:[EMAIL PROTECTED]] > 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: [EMAIL PROTECTED] > > 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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).