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

Thread: How to return ORA-02922 error code from a trigger

  1. #1
    Join Date
    Jun 2000
    Location
    Bethel CT, USA
    Posts
    18

    Question

    I have a trigger that needs to return the ORA-02292 error code to the Java application.

    raise_application_error(...), DOES NOT allow 02922 error value.

    Is there another way to return such error code to the application from a trigger?


  2. #2
    Join Date
    Jul 2000
    Posts
    296
    Try:

    DECLARE
    ora2292 EXCEPTION;
    PRAGMA EXCEPTION_INIT(ora2292, -2292);
    BEGIN
    RAISE ora2292;
    END;
    /

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