How to get LIST_CONTEXT
796454Sep 7 2010 — edited Sep 8 2010Hello 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!