Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Login Trigger
oracle-l-bounce_at_freelists.org wrote on 05/20/2004 03:11:37 PM:
> To set the login_name variable, do you even need to create a procedure?
> I usually do something like this:
> create or replace package p
> is
> my_login_name varchar2(30) ;
> end p ;
> /
> create or replace package body p
> is
> begin
> my_login_name := user ;
> end p ;
> /
>
> Then in PL/SQL code I reference p.my_login_name which is set the first
> time the package is invoked. (idea taken from Oracle PL/SQL Programming,
> Feuerstein / Pribyl)
>
Nice and elegant. I hadn't thought of that.
Jared
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Thu May 20 2004 - 21:09:33 CDT
![]() |
![]() |