向其他用户授予对v $ session的SELECT访问权限 [英] grant SELECT access to v$session to other users

查看:193
本文介绍了向其他用户授予对v $ session的SELECT访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想向Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

但是当我运行此查询时:

but when I run this query:

SELECT owner, object_type FROM dba_objects WHERE object_name = 'V$SESSION';

我收到此错误:

00942. 00000 -  "table or view does not exist"

推荐答案

Oracle v $视图被命名为V_ $ VIEWNAME,并且它们具有V $ VIEWNAME格式的同义词,因此您不能授予同义词特权.如果您想授予V $视图的权限,则必须按以下方式授予它

Oracle v$ views are named V_$VIEWNAME and they have synonyms in format V$VIEWNAME and you can’t give privilege on a synonym. If you want to give permission to a V$ view you must give it like below

SQL> grant select on v_$session to hr;

这篇关于向其他用户授予对v $ session的SELECT访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆