dbTalk Databases Forums  

iterating over SYS_CONTEXT?

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


Discuss iterating over SYS_CONTEXT? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mh@pixar.com
 
Posts: n/a

Default iterating over SYS_CONTEXT? - 05-08-2009 , 06:48 PM






is there a way to iterate over the information in SYS_CONTEXT()?
i.e. I don't want to have a huge

select sys_context('USERENV', 'foo'), sys_context('USERENV','bar'),
etc...

Many TIA!
Mark

--
Mark Harrison
Pixar Animation Studios

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

Default Re: iterating over SYS_CONTEXT? - 05-08-2009 , 09:19 PM






mh (AT) pixar (DOT) com wrote:
: is there a way to iterate over the information in SYS_CONTEXT()?
: i.e. I don't want to have a huge

: select sys_context('USERENV', 'foo'), sys_context('USERENV','bar'),
: etc...


select * from session_context;

Reply With Quote
  #3  
Old   
Michel Cadot
 
Posts: n/a

Default Re: iterating over SYS_CONTEXT? - 05-09-2009 , 01:00 AM




<mh (AT) pixar (DOT) com> a écrit dans le message de news: 3x3Nl.29417$Ws1.3130 (AT) nlpi064 (DOT) nbdc.sbc.com...
Quote:
is there a way to iterate over the information in SYS_CONTEXT()?
i.e. I don't want to have a huge

select sys_context('USERENV', 'foo'), sys_context('USERENV','bar'),
etc...

Many TIA!
Mark

--
Mark Harrison
Pixar Animation Studios
For predefined USERENV context, afaik, no.
For your own custom context, yes:
have a look at v$context and v$globalcontext

Regards
Michel




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.