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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

SYS_CONTEXT

552509Nov 19 2007 — edited Nov 19 2007
Hi
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 17 2007
Added on Nov 19 2007
1 comment
412 views