zoukankan      html  css  js  c++  java
  • 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

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

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

  • 相关阅读:
    实际项目管理-1
    arcengine 错误
    一些视频技术类网站
    winform 组件之dotnetbar10.5.3
    winform 弹框的组件
    一个好的开源网站
    写webservice 注意点
    ww
    js
    瀑布流
  • 原文地址:https://www.cnblogs.com/ocp-100/p/11056714.html
Copyright © 2011-2022 走看看