Home » SQL & PL/SQL » SQL & PL/SQL » How to Get the Program Name in 11g version (Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production)
How to Get the Program Name in 11g version [message #690160] |
Fri, 08 November 2024 13:15  |
wtolentino
Messages: 422 Registered: March 2005
|
Senior Member |
|
|
In 12c and later version of the oracle database I can use this built-in function to get the program name:
sys_context('USERENV','CLIENT_PROGRAM_NAME')
In 11g what is the similar parameters or function that I can use? Please help.
Thank you,
Warren
|
|
|
|
|
|
|
Re: How to Get the Program Name in 11g version [message #690165 is a reply to message #690164] |
Sat, 09 November 2024 00:49   |
 |
Michel Cadot
Messages: 68757 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
The problem is not with V$MYSTAT (or SYS.V_$MYSTAT) which is granted SELECT to PUBLIC (default settings in 11g) but with V$SESSION:
SQL> select grantee from dba_tab_privs where owner='SYS' and table_name='V_$MYSTAT' and privilege='SELECT' order by 1;
GRANTEE
------------------------------
APEX_030200
PLUSTRACE
PUBLIC
SELECT_CATALOG_ROLE
4 rows selected.
SQL> select grantee from dba_tab_privs where owner='SYS' and table_name='V_$SESSION' and privilege='SELECT' order by 1;
GRANTEE
------------------------------
APEX_030200
APPQOSSYS
CTXSYS
ORACLE_OCM
PERFSTAT
SELECT_CATALOG_ROLE
6 rows selected.
SQL> @v
Oracle version: 11.2.0.4.181016 EE - JVM v1.6.0_43 - timezone files v11
[Updated on: Sat, 09 November 2024 00:49] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Sat May 03 12:50:03 CDT 2025
|