Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get LIST_CONTEXT

796454Sep 7 2010 — edited Sep 8 2010
Hello guys,

Trying to use DBMS_SESSION.LIST_CONTEXT without any luck. According to this:
DBMS_SESSION.LIST_CONTEXT - Returns a list of active namespaces and contexts for the current session
I expect to see a list of all created context namespaces/attributes but instead of that I get nothing :(

That's what I do.

I create context:
create context user_env_vals using sys_manage_context accessed globally;

Assign value:
dbms_session.set_context(namespace => 'user_env_vals',
attribute => cName,
value => cValue,
client_id => g_session_id);

Trying to get value through (and see data):
select sys_context('user_env_vals', cName) into v_var_char from dual;

Trying to do the following and get context_info.count = 0, info_count = 0:
DBMS_SESSION.LIST_CONTEXT (context_info,
info_count);

What am I doing wrong?

Thank you!
This post has been answered by MichaelS on Sep 8 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 6 2010
Added on Sep 7 2010
2 comments
905 views