Error - COMMIT in Trigger Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Error - COMMIT in Trigger

  1. #1
    Join Date
    Dec 2001
    Keene, NH
    Why can't I commit in a before or after insert trigger? Any work around? I cannot avoid the commit becuase I'm calling an Oracle supplied package that has a commit in it!!

    /oracle> oerr ora 4092
    04092, 00000, "cannot %s in a trigger"
    // *Cause: A trigger attempted to commit or Rollback.
    // *Action: Rewrite the trigger so it does not commit or rollback.
    Don't blame me, I'm from Red Sox Nation.

  2. #2
    Join Date
    Nov 2000
    You must use an autonomous transaction:
    Jeff Hunter
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

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