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

Home -> Community -> Usenet -> c.d.o.misc -> Re: [PL/SQL] Capturing instance/sesssion info?

Re: [PL/SQL] Capturing instance/sesssion info?

From: Vladimir M. Zakharychev <bob_at_dpsp-yes.com>
Date: Tue, 14 Jan 2003 22:09:50 +0300
Message-ID: <b01n9s$4l4$1@babylon.agtel.net>


SYS_CONTEXT('USERENV','session_environment_var') should to the trick. Look up this function in the SQL Reference and you will find comprehensive list of variables provided in the USERENV context space. SESSION_USER and CURRENT_USER may be of particular interest - first is the user who initiated the session and second is the user under whose privileges calling code executes.

-- 
Vladimir Zakharychev (bob@dpsp-yes.com)                http://www.dpsp-yes.com
Dynamic PSP(tm) - the first true RAD toolkit for Oracle-based internet applications.
All opinions are mine and do not necessarily go in line with those of my employer.
Received on Tue Jan 14 2003 - 13:09:50 CST

Original text of this message

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