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: Where is line 21?

Re: Where is line 21?

From: Niall Litchfield <niall.litchfield_at_dial.pipex.com>
Date: 15 Nov 2004 01:31:50 -0800
Message-ID: <1100511110.358057.263800@c13g2000cwb.googlegroups.com>


DA Morgan wrote:
> Ramon F Herrera wrote:
>
> > Hello:
> >
> > I keep on getting error messages like the following:
> >
> > ------------------
> > Record 7: Rejected - Error on table SHAWS.
> > ORA-00001: unique constraint (DATABASE.CACHE) violated
> > ORA-06512: at "DATABASE.SYNCSHAWS", line 21
> > ORA-04088: error during execution of trigger 'DATABASE.SYNCSHAWS'
> > -------------------
> >
> > However, when I take a look at the file that contains
> > the SQL/PL code (in this case, a trigger) line 21 doesn't
> > seem to be the right line. Is there some sort of magic
> > delta number to be added/substracted?
> > Perhaps I should remove the empty lines in my source code
> > and count again?
> >
> > -Ramon
>
> No. It is either 21 or one of the 20 lines before it.

Hmmm

I must be missing something here,

I've always found that

Select line,text from user_source
where type = 'TRIGGER'
and name = '<your trigger name>'
and line = 21
order by line;

useful for this sort of query?

actually I normally do

and line between x-3 and x+ 3 where x is the line number you want to avoid the problems of receiving

LINE     TEXT
====     =========
21       COMMIT;

1 Row selected.

in return :) .

Niall Received on Mon Nov 15 2004 - 03:31:50 CST

Original text of this message

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