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: ORA-20000: Unable to compile TRIGGER "MWH"."CDH_AFT_UPD_ROW"

RE: ORA-20000: Unable to compile TRIGGER "MWH"."CDH_AFT_UPD_ROW"

From: Trassens, Christian <CTrassens_at_uni2.es>
Date: Thu, 01 Mar 2001 13:58:18 -0800
Message-ID: <F001.002C18A6.20010301134554@fatcity.com>

Charlie,

dbms_ddl.alter_compile doesn't work for triggers on 7.3.X. However, I don't understand why it gives you 20000 instead of 20002. This one refers to the type of object.

I know some bugs or problems with dbms_snapshot but this one is new.

Regards.

> -----Mensaje original-----
> De: Charlie Mengler [SMTP:charliem_at_mwh.com]
> Enviado el: jueves 1 de marzo de 2001 19:51
> Para: Multiple recipients of list ORACLE-L
> Asunto: ORA-20000: Unable to compile TRIGGER "MWH"."CDH_AFT_UPD_ROW"
>
> Oracle V7.3.4.3 on V2.6 Solaris
> For all practical purposes "MWH" owns all objects in this application.
> AFAIK The object does exist as shown below and as the owner and with
> CREATE ANY PROCEDURE priv MWH should be able to compile it.
>
> So why do I keep getting these ORA-20000 errors?????????????????????
>
>
>
> SQL> exec dbms_ddl.alter_compile('TRIGGER',user,'CDH_AFT_UPD_ROW');
> begin dbms_ddl.alter_compile('TRIGGER',user,'CDH_AFT_UPD_ROW'); end;
>
> *
> ERROR at line 1:
> ORA-20000: Unable to compile TRIGGER "MWH"."CDH_AFT_UPD_ROW", insufficient
> privileges or does not exist
> ORA-06512: at "SYS.DBMS_DDL", line 47
> ORA-06512: at line 1
>
>
> SQL> sho user
> user is "MWH"
> SQL> exec dbms_ddl.alter_compile('TRIGGER','MWH','CDH_AFT_UPD_ROW');
> begin dbms_ddl.alter_compile('TRIGGER','MWH','CDH_AFT_UPD_ROW'); end;
>
> *
> ERROR at line 1:
> ORA-20000: Unable to compile TRIGGER "MWH"."CDH_AFT_UPD_ROW", insufficient
> privileges or does not exist
> ORA-06512: at "SYS.DBMS_DDL", line 47
> ORA-06512: at line 1
>
>
> SQL> select * from user_objects where object_name = 'CDH_AFT_UPD_ROW';
> #:-)
>
> OBJECT_NAME
> --------------------------------------------------------------------------
> ------
> OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_
> ---------- ------------- --------- ---------
> TIMESTAMP
> --------------------------------------------------------------------------
> -
> STATUS
> -------
> CDH_AFT_UPD_ROW
> 49325 TRIGGER 14-MAR-99 01-MAR-01
> 2001-03-01:10:19:34
> VALID
>
> SQL> connect sys/pass
> Connected.
> SQL> grant execute on dbms_ddl to MWH;
>
> Grant succeeded.
>
> SQL> connect mwh/pass
> Connected.
> SQL> exec dbms_ddl.alter_compile('TRIGGER','MWH','CDH_AFT_UPD_ROW');
> begin dbms_ddl.alter_compile('TRIGGER','MWH','CDH_AFT_UPD_ROW'); end;
>
> *
> ERROR at line 1:
> ORA-20000: Unable to compile TRIGGER "MWH"."CDH_AFT_UPD_ROW", insufficient
> privileges or does not exist
> ORA-06512: at "SYS.DBMS_DDL", line 47
> ORA-06512: at line 1
>
>
> SQL> connect sys/pass
> Connected.
> SQL> grant create any procedure to MWH;
>
> Grant succeeded.
>
> SQL> connect mwh/pass
> Connected.
> SQL> exec dbms_ddl.alter_compile('TRIGGER','MWH','CDH_AFT_UPD_ROW');
> begin dbms_ddl.alter_compile('TRIGGER','MWH','CDH_AFT_UPD_ROW'); end;
>
> *
> ERROR at line 1:
> ORA-20000: Unable to compile TRIGGER "MWH"."CDH_AFT_UPD_ROW", insufficient
> privileges or does not exist
> ORA-06512: at "SYS.DBMS_DDL", line 47
> ORA-06512: at line 1
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Charlie Mengler
> INET: charliem_at_mwh.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Trassens, Christian
  INET: CTrassens_at_uni2.es

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu Mar 01 2001 - 15:58:18 CST

Original text of this message

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