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: Retrieving Current Object Name

Re: Retrieving Current Object Name

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: Wed, 03 Nov 1999 09:09:08 -0500
Message-ID: <yEEgOEgv9qQXH+1JmEK7Gfv8zND5@4ax.com>


A copy of this was sent to Sudheer K G <kgsudhi_at_my-deja.com> (if that email address didn't require changing) On Wed, 03 Nov 1999 12:34:56 GMT, you wrote:

>Hello All
>
>Is it possible to find out the name and current executing line number
>of the procedure from that procedure itself? (Oracle 7.3)
>
>We want to keep track and log the errors during runtime.(Like oracle
>does when we try to compile a procedure which has a syntax error in it).
>
>Thanks in Advance.
>Sudheer
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.

see the url in my signature, there is a show howto "Who Called Me -- within PL/SQL find out who called you ". The script supplied has a routine "who_called_me" as well as "who_am_i". who_am_i tells you your object_name, owner, type and linenumber...

--
See http://osi.oracle.com/~tkyte/ for my columns 'Digging-in to Oracle8i'... Current article is "Part I of V, Autonomous Transactions" updated June 21'st  

Thomas Kyte                   tkyte_at_us.oracle.com
Oracle Service Industries     Reston, VA   USA

Opinions are mine and do not necessarily reflect those of Oracle Corporation Received on Wed Nov 03 1999 - 08:09:08 CST

Original text of this message

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