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

相關文章
相關標籤/搜索