🔥問題描述
之前進到PL/SQL時,輸入「select * from (table)」,總會跳出
「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」
按完OK後,還是會正常顯示出table。
雖然可以正常查詢table,但每次都要按下OK才能查看table
有點浪費時間,所以就決定去尋找解法
🔥原因
有這個錯誤訊息的原因是因為我們開啟了PL/SQL Developer的「自動統計」(Automatic stastics)功能
PL/SQL在使用者執行過程中,收集使用者統計的資訊
但由於目前登入的使用者沒有訪問【v$session,v$sesstat andv$statname】的許可權
導致無法收集使用者的統計資訊,所以會有這個錯誤提示視窗。
🔥解決辦法
Configure>Preferences>Options>【Automatic Statistics】
取消打勾,點選Apply、OK,儲存並退出
如果這個文章有幫助到你,請不吝幫我拍手讓我知道,感謝你的閱讀 😄
written by Boom / 2021.03.22