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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Debug DDL trigger

RE: Debug DDL trigger

From: Herring Dave - dherri <Dave.Herring_at_acxiom.com>
Date: Tue, 23 Aug 2005 08:48:43 -0500
Message-ID: <7ED53A68952D3B4C9540B4EFA5C76E36CB87B3@CWYMSX04.Corp.Acxiom.net>


Good point, Wolfgang. I added the COMMIT and PRAGMA statements later on, as a method to make sure I wasn't going completely crazy. When I expect something to work and it doesn't, I scale back my expectations (probably too far) and start testing all things, including those that I "know" work. So, when I wasn't finding data within my audit table, I added COMMITs to validate that that wasn't the problem.

Another test I did was remove the WHEN clause and not add further WHERE or IF-TEST clauses. Basically, any time a DROP of anything is done when the schema is "dherri", the trigger should fire. That didn't happen either.

Dave



Dave Herring, DBA
Acxiom Corporation
3333 Finley
Downers Grove, IL 60515
wk: 630.944.4762
<mailto:dherri_at_acxiom.com>

> -----Original Message-----
> From: Wolfgang Breitling [mailto:breitliw_at_centrexcc.com]
> Sent: Tuesday, August 23, 2005 8:36 AM
> To: Herring Dave - dherri
> Cc: Oracle-L_at_Freelists. Org (E-mail)
> Subject: Re: Debug DDL trigger
>
> I could be wrong, but I am pretty sure you are not allowed to issue
> commits - or rollbacks - in a trigger. That rules out not only the
> commits of your inserts, but especially your "execute immediate
'create
> table ...'" as all DDL imply a commit.
>



The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged.

If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.

If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system.

Thank You.


--
http://www.freelists.org/webpage/oracle-l
Received on Tue Aug 23 2005 - 08:50:42 CDT

Original text of this message

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