Re: Trigger on commit
From: Edwin <vanmeerendonk_at_wxs.nl>
Date: 5 Feb 2002 03:34:36 -0800
Message-ID: <31354201.0202050334.395929fa_at_posting.google.com>
Date: 5 Feb 2002 03:34:36 -0800
Message-ID: <31354201.0202050334.395929fa_at_posting.google.com>
Dependent on you db-version you could look into autonomous
transactions voor logging into a second table. When you don't have
this feature:
Try using DBMS_JOB.
In the after statement trigger submit a dbms_job, executing your piece
of code.
When the original transaction commits => the job is submitted
When the original transaction rollbacks => the job is not submitted
In the job you can do whatever you want, independent of the original transaction Received on Tue Feb 05 2002 - 12:34:36 CET