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: PL/SQL: dynamically determining parameter names and values

Re: PL/SQL: dynamically determining parameter names and values

From: Jeremy <jeremy0505_at_gmail.com>
Date: Fri, 15 Dec 2006 11:26:46 -0000
Message-ID: <MPG.1fec9665c30fe9f898a3a3@news.individual.net>


In article <newscache$co2o8j$05j$1_at_news.liwest.at>, CN says...

>
> Hi!
>
> PL/SQL is rather poor on reflection but it is not totally impossible.
> This is the direction I would take if I really had to do that:
>
> - Define a schema-level trigger that executes 'after create'.
> - If ora_dict_obj_type is some PL/SQL then load the code from user_source
> into some pl/sql table.
> - Query user_arguments for every included top-level procedure/function and
> insert tracing code into the table at the appropriate places (you will
> have to write a simple parser or insert place-holders where the log info
> should go).
> - Re-execute the code in the pl/sql table (make sure that the trigger
> doesn't start a cycle).
>
> Lucas Jellema of AMIS wrote about AOP a few months ago, this is more
> generic: http://technology.amis.nl/blog/?p=1083
>

Thanks Chris.

Not a straightforward proposition then!

-- 
jeremy
Received on Fri Dec 15 2006 - 05:26:46 CST

Original text of this message

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