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: David Wendelken <davewendelken_at_earthlink.net>
Date: Mon, 22 Aug 2005 17:39:37 -0400
Message-ID: <002d01c5a761$fee4f010$6401a8c0@davidwendelken>

 

I'm guessing ora_dict_obj_type is a column in dherri.schema?  

If so, you are using row-level data in a statement-level trigger. You need to add the magic words that turn the trigger into a row level trigger.
It's "for each row" or words to that effect. You'll find the exact syntax in the manual.    

Here's the trigger's text:  

CREATE OR REPLACE TRIGGER sys.cp_tab_before_drop_btg

   BEFORE drop ON dherri.SCHEMA

      WHEN ( ora_dict_obj_type = 'TABLE'

            AND ( ora_dict_obj_name LIKE 'SCORE\_ACCT\_TB\_%' ESCAPE '\'

                )

           )

 



--
http://www.freelists.org/webpage/oracle-l
Received on Mon Aug 22 2005 - 16:38:42 CDT

Original text of this message

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