PLSQL Developer中Dynamic Performance Tables not accessible之问题解决
错误信息:
Dynamic Performance Tables not accessible,
Automatic Statistics Disabled for this session
You can disable statistics in the preference menu,or obtanin select
priviliges on the v$session,v$sesstat and v$statname tables
使用PLSQL Developer查询数据时,第一次总是报这个错误。
有两种现象:一、同一PLSQL Developer不同的用户如DBA登录查询不报这个错误;二、同一个用户不同机器的PLSQL Developer查询有的不报这个错误有的报这个错误。前者说明用户权限的问题,后者说明是属于PLSQL Developer的问题,当然归根结底还是权限的问题。
PLSQL Developer默认打开了统计功能, 在 Tools->Preferences->Options里 把Automatic Statistics前的那个勾子去掉,保存就可以了。
归根结底是该用户没有足够的权限,可以根据上述设置解决此问题,或者给该用户授权:
grant select any dictionary to username;
PS:你可能会遇到该用户没有 select any dictionary 权限也没有报此错误啊,呵呵,那该用户可能会具有更高级的权限/角色如DBA,那当然没此问题咯!