Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Access to v$views

Re: Access to v$views

From: Chris Sutter <christrs_at_apci.net>
Date: Sun, 18 Jul 1999 23:04:44 GMT
Message-ID: <37935c41.38288305@207.126.101.101>


The reason this works this way is Oracle does not allow any operation on V$*Views* except select. To get around this they created a set of "normal" views called v_$*views*. Then, they created a set of public synonyms V$*View* for sys.V_$*View*. So no matter what user you are as long as you have select privilege on V_$*View* you can see into V$*View*. Weird, but it works.

Chris Sutter
christrs_at_apci.net
christrs_at_bjcmail.carenet.org

"Brian Peasland" <peasland_at_email.msn.com> wrote:

>
>>How do I give a developer access to all
>>of the v$views?
>
>
>The only way I know how to give them access to the v$ views is to grant them
>access for each view that you want them to be able to see. (or you can grant
>them DBA, but that's probably not what you want). When granting access to v$
>views, you have to follow a simple, but odd procedure. The user SYS owns
>these views, so you first have to log on as SYS. Then, you grant select on
>the underlying v_$ view. For instance, to grant user1 select on v$instance,
>do:
>
> SQL> connect sys/change_on_install
> SQL> grant select on v_$instance to user1;
>
>User1 should now be able to query v$instance. But he won't be able to query
>v_$instance. This is weird, but it's the way that it works.
>
>Hope that helps,
>Brian Peasland
>peasland_at_msn.com
>
>
Received on Sun Jul 18 1999 - 18:04:44 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US