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: Trigger created with compiler error (Ora9i)

Re: Trigger created with compiler error (Ora9i)

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Mon, 11 Feb 2002 19:10:38 +0100
Message-ID: <v62g6uc8dpujgirqaclal3buqvqogbbnvs@4ax.com>


On 11 Feb 2002 04:53:06 -0800, odette.h_at_gmx.de (odette) wrote:

>If I try to execute a local script on the SQL *Plus Worksheet to
>create a trigger, I alway get the warning: Trigger created with
>compiler error.
>Is this an Oracle problem or is it that my sql source code is wrong?
>Here is my source code, please help!
>
>CREATE or replace TRIGGER "xxx"."name" AFTER
>INSERT ON "xxx"."tablename"
> FOR EACH ROW begin
> insert into table
> ( user,
> action,
> table,
> old,
> new,
> time)
>
> values
> ( principal_name,
> 'insert',
> 'table',
> '',
> :new.id,
> '02.02.02');
>end;

You can't have blank lines in sql-statements. Before you start assuming it is an Oracle problem, please verify your syntax.

Regards

Sybrand Bakker, Senior Oracle DBA

To reply remove -verwijderdit from my e-mail address Received on Mon Feb 11 2002 - 12:10:38 CST

Original text of this message

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