didn't understand
A reader, January 31, 2017 - 2:46 am UTC
How grant execute to sys.dbms_session on function?
Is there privilege of function to grant?
January 31, 2017 - 4:38 pm UTC
You just:
grant execute on sys.dbms_session to <your user>
Subash Sharda, February 03, 2021 - 12:14 pm UTC
In order to set any user defined context variable or namespace, you need to create the new namespace in (which is held in SYS).
The namespace can be created by a user who has appropriate privs.
CREATE [ OR REPLACE ] CONTEXT namespace
USING [ schema. ] package
[ INITIALIZED { EXTERNALLY | GLOBALLY }
| ACCESSED GLOBALLY
] ;
specifies which schema.package is trusted to use dbms_session. set_context
Immediately after creating the namespace in the above statement I was able to set context variable for the namespace.
Hope this helps.