dbTalk Databases Forums  

how to browse all sys_context(...) values?

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss how to browse all sys_context(...) values? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Frank Bergemann
 
Posts: n/a

Default how to browse all sys_context(...) values? - 04-06-2010 , 09:51 AM






Hi,
is there a way to browse all e.g. sys_context(USER, <xy>) elements (or
sys_context('USERENV', <xy> elements) and displaying their values - w/
o knowing up-front, which <xy> are there?
- thanx!
cheers,
Frank

Reply With Quote
  #2  
Old   
Mark D Powell
 
Posts: n/a

Default Re: how to browse all sys_context(...) values? - 04-07-2010 , 08:23 AM






On Apr 6, 10:51*am, Frank Bergemann <FBergem... (AT) web (DOT) de> wrote:
Quote:
Hi,
is there a way to browse all e.g. sys_context(USER, <xy>) elements (or
sys_context('USERENV', <xy> elements) and displaying their values - w/
o knowing up-front, which <xy> are there?
- thanx!
cheers,
Frank
Not that I am aware of though many of the data items can be found in v
$session. I believe most of the sys_context variables are stored in
the user PGA. Therefore there is no one control structure in the SGA
where a v$ or dba_ view could be built upon without Oracle having to
go back and reference every session PGA, which would be very
expensive, to get the information.

Now if you only want the information for a the current session rather
than for the entire instance I still do not think any such view exists
because I believe the data comes from different sturctures and the
sys_content function logic knows where to go to get the individual
data items.


HTH -- Mark D Powell --

Reply With Quote
  #3  
Old   
Malcolm Dew-Jones
 
Posts: n/a

Default Re: how to browse all sys_context(...) values? - 04-12-2010 , 07:44 PM



Frank Bergemann (FBergemann (AT) web (DOT) de) wrote:
: Hi,
: is there a way to browse all e.g. sys_context(USER, <xy>) elements (or
: sys_context('USERENV', <xy> elements) and displaying their values - w/
: o knowing up-front, which <xy> are there?
: - thanx!
: cheers,
: Frank


select * from session_context;


(Depending on your database version of course.)

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.