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: Generic code for looking at pl/sql stored procedure arguments

Re: Generic code for looking at pl/sql stored procedure arguments

From: DA Morgan <damorgan_at_x.washington.edu>
Date: Mon, 21 Mar 2005 13:29:23 -0800
Message-ID: <1111440359.884485@yasure>


Jeremy wrote:

> Say I have a procedure
>
> create or replace procedure p
> (p_string in varchar2 default null,
> p_date in date)
> is
> ..
> ..
> ..
>
>
> If I wanted to recrod the execution of this procedure I could simply
> write e.g.
>
> l_call := 'p : p_string='||p_string|| ' : ' p_date='||p_date);
>
> My question: is there a generic way of extcating the name of the
> procedure being run together with the arguments used to call it?
>
> I suspect not......
>
> Environment: 9iR2 / Solaris8

What do you mean by generic and extract when? It matters.

If you are talking about real-time, in production, no. Otherwise one can use DBMS_DEBUG or DBMS_APPLICATION_INFO without impacting resources. In 10g look too at DBMS_MONITOR.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Mon Mar 21 2005 - 15:29:23 CST

Original text of this message

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