DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: catch DML exceptions in ETL process

  1. #1
    Join Date
    Jun 2000
    Posts
    41

    catch DML exceptions in ETL process

    Hi

    I wonder if anyone know how to catch DML exceptions in an ETL process


    For example this code

    Code:
    begin
       for i in (Select * from dept)
       loop
          begin
             delete emp where deptno = i.deptno;
             commit;
          exception
          when others then
             dbms_output.put_line('ERROR: ' || i.deptno);
          end;
       end loop;
    end;
    /
    this is easy since we process row by row but how can we catch the error if we use FORALL/BULK?

    How about PRO*C (possibility of doing this?)

    Cheers

  2. #2
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  3. #3
    Join Date
    Jun 2000
    Posts
    41
    Hi Slimdave


    I cant see any thing related to this problem in that URL? If you mean SAVE EXCEPTIONS since I am using 8i I cant use it

  4. #4
    Join Date
    May 2000
    Location
    ATLANTA, GA, USA
    Posts
    3,135
    You can capture exception even with FORALL/BULK COLLECT.

    Tamil

  5. #5
    Join Date
    Jun 2000
    Posts
    41
    Hi Tamil

    I think its possible with 9i but not in 8.1.7.4!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width