今天一开发同事反应新建的测试用户无法执行存储过程,使用plsq远程连接执行存储过程报错如下:
报错信息是:ORA-0131:Insufficient privileges,就是用户没有存储过程的调试执行权限:DEBUG CONNECT SESSION
需要具有DBA权限的用户登录授权即可:
Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.4.0
Connected as test29@Audit11g31Server
SQL> conn zhul/zhulei
Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.4.0
Connected as zhul@Audit11g31Server
SQL> grant DEBUG CONNECT SESSION to test29;
Grant succeeded
SQL> grant DEBUG CONNECT SESSION to bmi_xbsh;
Grant succeeded
SQL> grant DEBUG CONNECT SESSION to bmi_cs01;
Grant succeeded
SQL> grant DEBUG CONNECT SESSION to bmi_cs02;
Grant succeeded
SQL>
授权完成后,测试用户再次执行存储过程可以正常执行了。