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

Home -> Community -> Usenet -> c.d.o.server -> Re: Altering the osuser in v$session

Re: Altering the osuser in v$session

From: DA Morgan <damorgan_at_psoug.org>
Date: Wed, 07 Mar 2007 19:26:25 -0800
Message-ID: <1173324383.394760@bubbleator.drizzle.com>


bove027 wrote:
> Hi,
>
> is it possible to change the osuser of the session?

If it is it will require C and likely a violation of your Oracle license.

gv$ and v$ session are base on X$ objects which are arrays in memory ... not physical tables.

If you really must do this, and your rationale looks more like a bad attempt at hacking than anything legitimate then I would suggest the following:

CREATE VIEW myv$session AS
SELECT DECODE(osuser, 'WHAT I WANT TO HIDE', 'MY', osuser) FROM v$session;

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Wed Mar 07 2007 - 21:26:25 CST

Original text of this message

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