|
Assuming that the application "knows" the real username, let the first
thing that the app does is call dbms_application_info.set_client_info passing
the real username as a parameter. This sets v$session.client_info to the
real username.
T10-PARTS> select client_info from v$session
2 where sid = (select sid from v$mystat where rownum = 1) ; CLIENT_INFO
---------------------------------------------------------------- T10-PARTS> execute dbms_application_info.set_client_info('REAL_USER_NAME'); PL/SQL procedure successfully
completed.
T10-PARTS> select client_info from
v$session
2 where sid = (select sid from v$mystat where rownum = 1) ; CLIENT_INFO
---------------------------------------------------------------- REAL_USER_NAME T10-PARTS> select
userenv('CLIENT_INFO') from dual;
USERENV('CLIENT_INFO')
---------------------------------------------------------------- REAL_USER_NAME T10-PARTS> select
sys_context('userenv', 'client_info') from dual;
SYS_CONTEXT('USERENV','CLIENT_INFO')
-------------------------------------------------------------------------------- REAL_USER_NAME Hope this helps
Paul
-----Original Message----- From: Bunyamin K. Karadeniz [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 4:16 PM To: Multiple recipients of list ORACLE-L Subject: very interesting problem with V$SESSION and web applications....
|
- Re: very interesting problem with V$SESSION and web ... Paul . Parker
- Re: very interesting problem with V$SESSION and... Bunyamin K. Karadeniz
