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: Wolfgang Breitling <breitliw_at_centrexcc.com>
Date: Tue, 23 Aug 2005 07:35:53 -0600
Message-ID: <430B2639.2000905@centrexcc.com>


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.

Herring Dave - dherri wrote:

> Folks,
> INSERT INTO dherri.aud_plsql_error_tb values ('SYS','Test: Before
> SELECT',1,sysdate);
>
> COMMIT;
>
>
> INSERT INTO dherri.aud_plsql_error_tb values ('SYS','Test: Within
> IF-TEST',v_table_count,sysdate);
>
> COMMIT;
>
>
>
> v_ddl_stmt := 'CREATE TABLE dherri.'||ora_dict_obj_name||'_bkp
> PCTFREE 0 AS SELECT * FROM dherri.'||ora_dict_obj_name||';';
>
> EXECUTE IMMEDIATE v_ddl_stmt;
>

-- 
Regards

Wolfgang Breitling
Centrex Consulting Corporation
www.centrexcc.com
--
http://www.freelists.org/webpage/oracle-l
Received on Tue Aug 23 2005 - 08:38:05 CDT

Original text of this message

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