ORA-0131:Insufficient privileges.
Note:Debugging requires the DEBUG CONNECT SESSION system privileges.
后经查找,是缺失 DEBUG CONNECT SESSION 系统权限所致。
解决办法:以SYS用户登录数据库,执行赋权操作:
1
|
SQL> grant DEBUG CONNECT SESSION to user_name; |
附1:有网友指出还需赋予DEBUG ANY PROCEDURE的权限,经测试,该权限可不用赋予!
附2:可以从数据字典role_sys_privs表查看该权限相关信息:
1
2
3
4
5
6
7
8
9
|
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 |
简单记录,以作备忘!