Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. when others then
  2. rollback;
  3. p_status := 'ERROR'; -- MODIFIED
  4. p_status_dtl := sqlcode||' - '||substr(sqlerrm,1,100);
  5. end;
  6.  
  7. exception
  8. when others then
  9. p_status := 'ERROR'; -- MODIFIED
  10. p_status_dtl := sqlcode||' - '||substr(sqlerrm,1,100);
  11. rollback;
  12. end;
  13.  
  14. declare
  15. v_foo varchar2(2) := 'AB';
  16. v_bar number;
  17. begin
  18. -- raises ORA-01476: divisor is equal to zero
  19. v_bar := 1/0;
  20. exception
  21. when others then
  22. dbms_output.put_line('checkpoint 1');
  23. -- raises ORA-06502: PL/SQL: numeric or value error: character string buffer too small
  24. v_foo := 'TOO LONG';
  25. dbms_output.put_line('checkpoint 2');
  26. end;
  27. /
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement