Skip to Main Content

Oracle Database Discussions

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!

Service name from user level through any query

232885Sep 21 2007 — edited Sep 24 2007
Hi

One of my user want to find the oracle service name through SQL query from user level. This user is not a DBA.

With DBA privs this querry

SELECT NAME, VALUE FROM V$PARAMETER WHERE NAME = 'service_names';

brings the correct result. But user he will not have the access to read the V$PARAMETER table which is part of sys object.

select sys_context('USERENV','SERVICE_NAME') from dual;

SYS_CONTEXT('USERENV','SERVICE_NAME')
--------------------------------------------------------------------------------
SYS$USERS

this query is not giving my the correct result. Is there any way we can grab the service name from user level.

Your cooperation is highly appreciated.

Rao
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 22 2007
Added on Sep 21 2007
9 comments
17,267 views