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

  • 相关阅读:
    实验一 命令解释程序的编写
    试验二
    实验一 命令解释程序的编写(重交)
    Sqlserver数据库帮助类(EFTools)
    js验证
    sqlserver中从日期字段取得月份
    IIS不可用或者有问题解决方法
    professional email address collections
    从psd文件到html
    空白符对HTML结构的影响与解决方案
  • 原文地址:https://www.cnblogs.com/ocp-100/p/11056714.html
Copyright © 2011-2022 走看看