SYS_CONTEXT
552509Nov 19 2007 — edited Nov 19 2007Hi
I have the below query
SELECT UPPER(sys_context('USERENV', 'SERVER_HOST')||' / '|| sys_context('USERENV', 'INSTANCE_NAME')||' / '||sys_context('USERENV', 'CURRENT_SCHEMA')) FROM dual;
When I run this query in schema SPRO_STAG(10g) or TEST_USER(9i) it is not giving me any errors. However, when i run this query in SEPROC( 9i) it is giving me the below error.
ORA-02003: invalid USERENV parameter
Why is it happening like this? Do i need some privileges to use SYS_CONTEXT or USER_ENV? Please help me out
Regards
Vibhuti