Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Login Trigger

RE: Login Trigger

From: <Jared.Still_at_radisys.com>
Date: Thu, 20 May 2004 19:12:26 -0700
Message-ID: <OF51C348C3.663D6998-ON88256E9B.000C1548-88256E9B.000C1EFA@radisys.com>


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



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
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

Original text of this message

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