调试procedure的时候,如果出现这个错误,那么可以这么做:
grant select on v_$statname to scott;
grant select on v_$sesstat to scott;
grant select on v_$session to scott;
grant select on v_$mystat to scott;
scott是用户名。
如果跟进一步,你想给某个用户调试存过的权限,那么要分两个步骤走:
1.create user
2.grant connect, resource to user
3.GRANT debug any procedure, debug connect session TO username
4.就是上面的几个动态视图的赋权了
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7370972/viewspace-1050128/ ,如需转载,请注明出处,否则将追究法律责任。