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: Avi Abrami <aabrami_at_intersystemsww.com>
Date: Tue, 12 Feb 2002 08:27:04 +0200
Message-ID: <3C68B5B8.5BB47D8E@intersystemsww.com>


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;

Hi Odette,
In SQL*Plus, immediately after you run your script, enter the following command:

show errors

If the output from this command is: "No errors", then try this:

SELECT * FROM user_errors

HTH,
Avi. Received on Tue Feb 12 2002 - 00:27:04 CST

Original text of this message

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