讓使用者擁有儲存過程的除錯許可權
許久以來,認為只要對使用者賦予grant debug any procedure許可權,使用者就擁有任何儲存過程及函式的除錯許可權,其實不然,並沒有達到想要的結果!讓使用者擁有儲存過程的除錯許可權,必須同時擁有下列許可權!
1)grant debug any procedure
2)grant debug connect session
Privileges for Debugging PL/SQL and Java Stored Procedures
Starting with Oracle Database 10g, a new privilege model applies to
debugging PL/SQL and Java code running within the database. This model
applies whether you are using Oracle JDeveloper, Oracle Developer, or
any of the various third-party PL/SQL or Java development environments,
and it affects both the DBMS_DEBUG and DBMS_DEBUG_JDWP APIs.
For a session to connect to a debugger, the effective user at the time
of the connect operation must have the DEBUG CONNECT SESSION system
privilege. This effective user may be the owner of a definer's rights
routine involved in making the connect call.
When a debugger becomes connected to a session, the session login user
and the currently enabled session-level roles are fixed as the privilege
environment for that debugging connection. Any DEBUG or EXECUTE
privileges needed for debugging must be granted to that combination of
user and roles.
To be able to display and change Java public variables or variables
declared in a PL/SQL package specification, the debugging connection
must be granted either EXECUTE or DEBUG privilege on the relevant code.
To be able to either display and change private variables or breakpoint
and execute code lines step by step, the debugging connection must be
granted DEBUG privilege on the relevant code
Caution:
The DEBUG privilege effectively allows a debugging session to do
anything that the procedure being debugged could have done if that
action had been included in its code.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/196700/viewspace-694583/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 如何在儲存過程中擁有role的許可權儲存過程
- EXECUTE IMMEDIATE 儲存過程中 許可權不足及EXECUTE IMMEDIATE的除錯避坑儲存過程除錯
- MySQL儲存過程的許可權問題MySql儲存過程
- all許可權使用者無法執行儲存過程儲存過程
- oracle儲存過程許可權繼承小結Oracle儲存過程繼承
- plsqlDevloper 儲存過程的除錯SQLdev儲存過程除錯
- 檢視、儲存過程以及許可權控制練習儲存過程
- openGauss 支援儲存過程除錯儲存過程除錯
- 低權使用者呼叫高權使用者建立的儲存過程出錯儲存過程
- 讓root使用者有super許可權
- [20180502]PLDEVELOP與儲存過程除錯.txtdev儲存過程除錯
- Vim儲存時許可權不足
- Windows 反除錯技術——OpenProcess 許可權過濾Windows除錯
- [20190118]toad下如何除錯儲存過程和函式.txt除錯儲存過程函式
- 關於SQL server2008除錯儲存過程的完整步驟SQLServer除錯儲存過程
- win10 儲存excel報錯 許可權問題怎麼解決Win10Excel
- mysql 新增、刪除使用者和許可權分配MySql
- Nginx報錯:Permission denied,沒有許可權!Nginx
- 如何讓普通使用者獲取root使用者的許可權
- mysql 給了使用者所有許可權ALL PRIVILEGES,但是該使用者沒有grant許可權MySql
- 儲存過程_造使用者資料儲存過程
- SQLServer查詢使用者儲存過程SQLServer儲存過程
- UserService 刪除使用者查詢許可權 deleteUserPermission分析delete
- oracle的儲存過程Oracle儲存過程
- Gate 超級管理員擁有全部許可權踩坑點
- jdbc使用call呼叫儲存過程報錯JDBC儲存過程
- Laravel 日誌有時候有許可權有時候沒有許可權?Laravel
- mssql sqlserver 批量刪除所有儲存過程的方法分享SQLServer儲存過程
- PostgreSQL_通過schema控制使用者許可權SQL
- linux使用者許可權Linux
- Oracle儲存過程乾貨(一):儲存過程基礎Oracle儲存過程
- SQL 儲存過程裡呼叫另一個儲存過程SQL儲存過程
- 讓人頭疼的BCProxy許可權
- Spring security(五)-完美許可權管理系統(授權過程分析)Spring
- vim儲存只讀檔案時獲得sudo許可權
- win10系統host修改後儲存提示沒有許可權怎麼辦Win10
- 儲存過程與儲存函式儲存過程儲存函式
- 使用者和組的許可權
- SQLSERVER儲存過程SQLServer儲存過程