Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How do I know the line number in a stored procedure?
Joe Sugden wrote:
>
> I have been creating some lengthy stored procedures lately, and using
> Enterprise Manager to help de-bug them. The problem for me is finding the
> right line when there is an error. I know there is a V$ view that has the
> line numbers and corresponding code, but I don't remember which one that is.
>
> Does anyone have any recommendations? How do you deal with this?
Joe
Use this little Sql*Plus script...
ttitle '** SOURCE FOR PROCEDURE: &xobj **'
SELECT line,text FROM user_source WHERE name = upper('&xobj') and type like 'PROCEDURE%' ORDER BY type,line
ttitle off
cheers
Geoffrey Stewart
Received on Mon Nov 22 1999 - 17:08:07 CST
![]() |
![]() |