Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Autonomous transaction in database event triggers - a bug?

Re: Autonomous transaction in database event triggers - a bug?

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Mon, 4 Oct 1999 21:53:51 +0100
Message-ID: <939070458.3389.0.nnrp-04.9e984b29@news.demon.co.uk>


You don't need to declare an autonomous transaction for an AFTER LOGON trigger. Check the SQL manual about 10 pages into the bit on triggers.

The content of any DDL-based triggers automatically starts an autonomous transaction, executes your code and commits.

Of course, this doesn't mean that your redundant
> 4 pragma autonomous_transaction;

should cause an ora-00600, but it does bypass the problem,

--

Jonathan Lewis
Yet another Oracle-related web site: http://www.jlcomp.demon.co.uk

Jurij Modic wrote in message <37f7cd8d.7356791_at_news.siol.net>...
>Oracle 8i, release 8.1.5, NT4.0 SP4.
>
>I'm experimenting with new database event triggers, more specifically
>with AFTER LOGON trigger.
>
>Whenever I try to use PRAGMA AUTONOMOUS_TRANSACTION in this type of
>trigger, the trigger compiles OK, but when a user tries to connect,
>this trigger causes ORA-600 with arguments [4450],[],[],[],[]...
>
Received on Mon Oct 04 1999 - 15:53:51 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US