Home » RDBMS Server » Server Administration » Identifying proxied user sessions
Identifying proxied user sessions [message #501660] Wed, 30 March 2011 08:12 Go to next message
John Watson
Messages: 8960
Registered: January 2010
Location: Global Village
Senior Member
I'm sure you are all familiar with proxy users, they've been around since 9i:
orcl> create user low identified by low;

User created.

orcl> create user high identified by high;

User created.

orcl> grant dba to high;

Grant succeeded.

orcl> alter user high grant connect through low;

User altered.

orcl> connect low[high]/low
Connected.
orcl> sho user
USER is "HIGH"
orcl>

Is there any way that I can find out which of the current sessions was proxied, and through what user? I know that from within the session I can query my userenv context and find out, but I can't see how to do it otherwise. It must be possible: the audit trail records both the real user and the proxy user.
Re: Identifying proxied user sessions [message #501661 is a reply to message #501660] Wed, 30 March 2011 08:20 Go to previous messageGo to next message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
I think this information in only in UGA or PGA and can't be seen outside the session itself.
But it is recorded in audit so you can get a workaround auditing CREATE SESSION.

Regards
Michel
Re: Identifying proxied user sessions [message #501667 is a reply to message #501661] Wed, 30 March 2011 08:49 Go to previous messageGo to next message
John Watson
Messages: 8960
Registered: January 2010
Location: Global Village
Senior Member
That makes sense: a technology limitation. Thanks.
Re: Identifying proxied user sessions [message #501670 is a reply to message #501667] Wed, 30 March 2011 09:00 Go to previous message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
And a secure one. What has no need to be shared has no need to be in SGA but be in PGA/UGA.

Regards
Michel
Previous Topic: Transfering database from 11.1.0 wiondows 32 bit to 11.2.0 64 bit windows
Next Topic: new feature of 11g
Goto Forum:
  


Current Time: Fri Nov 29 06:38:04 CST 2024