ORA-0131:debugging requires the debug connect session system privilege


今天在進行procedure執行的時候,用的是PL/SQL工具中的test,調試方法進行執行,因為有輸入參數,但是報了個錯:
“note:debugging requires the debug connect session system privilege”.
原因是用戶權限不夠,使用以下命令授予權限:
GRANT debug any procedure, debug connect session TO username
其實只需要授予debug connect session 就可以了,已經過測試。
另外,如果查詢某個角色包含哪些系統權限的話,可以查詢:
(1)、系統權限:
select * from role_sys_privs;
ROLE_SYS_PRIVSROLE_SYS_PRIVS:describes system privileges granted to roles. Information is provided only about roles to which the user has access
(2)、對象權限:
select * from role_tab_privs;
ROLE_TAB_PRIVSROLE_TAB_PRIVS:describes table privileges granted to roles. Information is provided only about roles to which the user has access.
(3)、角色里都包含哪些角色:
select * from role_role_privs
ROLE_ROLE_PRIVSROLE_ROLE_PRIVS:describes the roles granted to other roles. Information is provided only about roles to which the user has access.
參考文獻:1.http://space.itpub.net/23230551/viewspace-661979


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM