PL/SQL Developer 报错Dynamic Performance Tables not accessible, Automatic Statistics disabled for this

能够从如下几个方面考虑:session

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”保存退出。
spa

相关文章
相关标签/搜索