调试存储过程:ORA-0131 Insufficient privileges 处理
昨天,一开发同事反映说在PL/SQL Developer工具里无法调试存储过程,报错信息如下:
ORA-0131:Insufficient privileges.
Note:Debugging requires the DEBUG CONNECT SESSION system privileges.
后经查找,是缺失 DEBUG CONNECT SESSION 系统权限所致。
解决办法:以SYS用户登录数据库,执行赋权操作:
附1:有网友指出还需赋予DEBUG ANY PROCEDURE的权限,经测试,该权限可不用赋予!
附2:可以从数据字典role_sys_privs表查看该权限相关信息:
SQL> conn / as sysdba; Connected. SQL> select * from role_sys_privs where privilege like 'DEBUG%' order by 2; ROLE PRIVILEGE ADM ---------------- ------------------------ --- DBA DEBUG ANY PROCEDURE YES JAVADEBUGPRIV DEBUG ANY PROCEDURE NO DBA DEBUG CONNECT SESSION YES JAVADEBUGPRIV DEBUG CONNECT SESSION NO
简单记录,以作备忘!