ORA-0131:Insufficient privileges.(DEBUG CONNECT SESSION)

tolilong發表於2013-10-27

ORA-0131:Insufficient privileges.

Note:Debugging requires the DEBUG CONNECT SESSION system privileges

[@more@]

後經查詢,是缺失 DEBUG CONNECT SESSION 系統許可權所致。

解決辦法:以SYS使用者登入資料庫,執行賦權操作:

SQL> grant DEBUG CONNECT SESSION to user_name;

不需要賦予DEBUG ANY PROCEDURE 也可以的。

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

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-1060991/,如需轉載,請註明出處,否則將追究法律責任。

相關文章