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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Catching errors on inserts

RE: Catching errors on inserts

From: Gogala, Mladen <MGogala_at_oxhp.com>
Date: Fri, 16 Aug 2002 12:18:19 -0800
Message-ID: <F001.004B808F.20020816121819@fatcity.com>


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).
Received on Fri Aug 16 2002 - 15:18:19 CDT

Original text of this message

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