首页 > 数据库技术 > 详细

PL/SQL Developer 报错Dynamic Performance Tables not accessible, Automatic Statistics disabled for this session You can disable statistics in the preference menu, or obtain select priviliges on the V$ses

时间:2019-06-20 10:03:22      阅读:199      评论:0      收藏:0      [点我收藏+]

可以从以下几个方面考虑:

1)单独给用户授动态性能视图的权限:

SQL> grant select on V_session  to user; SQL> grant select on V_session  to user_sec; SQL> grant select on V_sesstat  to user;
SQL> grant select on V_$statname to user;

2)可以使用下面这个“简单粗暴”的方法处理之。
SQL> grant SELECT ANY DICTIONARY to user;

3)以上两种方法是针对特定用户的处理方法,如果想让所有用户(不局限在上面的user_sec用户)都能够查询这三个动态性能视图,可以通过将查询权限授权给public方法来实现,操作如下。这样就可以保证所有开发人员都不会再出现上述的报错信息了。
SQL> grant select on V_session  to public; SQL> grant select on V_session  to public; SQL> grant select on V_sesstat  to public;
SQL> grant select on V_$statname to public;

3.第三种方法(推荐)
彻底禁掉PL/SQL Developer的这个功能。
方法如下:
导航到Tools --> Preferences --> Options
找到“Automatic Statistics”选项,将其前面的小对勾去掉,然后点击“Apply”和“OK”保存退出。

PL/SQL Developer 报错Dynamic Performance Tables not accessible, Automatic Statistics disabled for this session You can disable statistics in the preference menu, or obtain select priviliges on the V$ses

原文:https://www.cnblogs.com/ocp-100/p/11056714.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!