
通过可视化工具(如PL/SQL Developer、Oracle SQL Developer)调试Oracle的存储过程时,如果遇到如下错误信息:
...
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
ORA-06512: at line 1
This session requires DEBUG CONNECT SESSION and DEBUG ANY PROCEDURE user privileges.
...
则说明当前用户权限不足,需要管理员给其赋debug权限,语句示例如下:
- GRANT debug any procedure, debug connect session TO USERXXX;