Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Which user executes my procedure?
Klim Samgin wrote:
>
> Hi, All!
>
> I've got PL/SQL procedure and I granted execute on it
> to some db users.
>
> Can my procedure to find out which user execute it?
Yes, this is how I used it once (that's an excerpt but I think it should run)
Christian
CREATE OR REPLACE
PROCEDURE test
IS
user VARCHAR2(20); userid INTEGER; df_tablename varchar2(40); rej_tablename varchar2(40);