How do I know if one of the after insert trigger is failing? I get an error for Before insert trigger if the trigger code is not valid. Does the after insert works the same way? Is there any way to log the trigger activity?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Oh yes, you can use PRAGMA AUTONOMOUS TRANSACTION to trace all the trigger activities.
The Autonomous Transaction can commit on his own, without affecting the main transaction which fires the trigger.
At the following link:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:2212445691154
you can find a detailed example of trigger with an autonomous transaction inside of it.
This is another useful link regarding autonomous transactions:
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/sqloperations.htm#BABDHGAB