启用PL/SQL时,每次第一次打开表的时候会提示"动态执行表不可访问,本会话的自动统计被禁止,V$SESSION,V$SESSTAT,V$STATNAME没有被授权“,原因是当前用户没有权限访问这几张表,所以没有办法进行统计.当然要给授权了.授权SQL如
下:
下:
grant select on v_$statname to store;
grant select on v_$sesstat to store;
grant select on v_$session to store;
grant select on v_$mystat to store;
store就是要被授权的用户名