解决在Oracle12c中通过SQL Developer工具debug存储过程时的错误: ORA-24247
来源:互联网 发布:手机阅卷软件 编辑:程序博客网 时间:2024/05/05 18:29
我们知道在调试Oracle的存储过程时,需要数据库管理员给用户赋debug权限,如下所示:
Connecting to the database USERXXX.
Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '192.168.10.101', '61116' )
ORA-24247: network access denied by access control list (ACL)
ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
ORA-06512: at line 1
Process exited.
Disconnecting from the database USERXXX.
这是因为,从Oracle 12c开始,如果通过基于JDWP(Java Debug Wire Protocol)协议的调试器(如SQL Developer, JDeveloper)调试PL/SQL存储过程, 需要给用户赋予JDWP ACL权限,允许其通过某台主机用调试工具连接数据库, 示例如下:
更多详情,可参阅https://galobalda.wordpress.com/2014/02/17/sql-developers-plsql-debugger-and-oracle-12c/
GRANT debug any procedure, debug connect session TO USERXXX;但是在Oracle12c中, 如果仅有此权限, 在debug时还会报如下错误:
Connecting to the database USERXXX.
Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '192.168.10.101', '61116' )
ORA-24247: network access denied by access control list (ACL)
ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
ORA-06512: at line 1
Process exited.
Disconnecting from the database USERXXX.
这是因为,从Oracle 12c开始,如果通过基于JDWP(Java Debug Wire Protocol)协议的调试器(如SQL Developer, JDeveloper)调试PL/SQL存储过程, 需要给用户赋予JDWP ACL权限,允许其通过某台主机用调试工具连接数据库, 示例如下:
BEGIN DBMS_NETWORK_ACL_ADMIN.APPEND_HOST_ACE ( host => '192.168.10.101', --指定host lower_port => null, upper_port => null, ace => xs$ace_type(privilege_list => xs$name_list('jdwp'), principal_name => 'USERXXX', --指定user principal_type => xs_acl.ptype_db) );END;
更多详情,可参阅https://galobalda.wordpress.com/2014/02/17/sql-developers-plsql-debugger-and-oracle-12c/
0 0
- 解决在Oracle12c中通过SQL Developer工具debug存储过程时的错误: ORA-24247
- 解决在Oracle12c中通过SQL Developer工具debug存储过程时的错误: ORA-24247
- Oracle12c通过SQL Developer工具调试procedure报错: ORA-24247解决方法
- 在pl/sql developer中测试存储过程的操作
- Oracle中ORA-06508错误解决,触发器调用存储过程
- 在SQL Developer中Debug一个procedure
- PL/SQL Developer中调试oracle的存储过程
- pl/sql developer中调试存储过程
- pl sql developer中如何调试存储过程以及调试包中创建的存储过程
- 解决PL/SQL Developer连接数据库时出现 “ORA-12541:TNS:无监听程序”错误。
- 解决PL/SQL Developer连接数据库时出现 “ORA-12541:TNS:无监听程序”错误。
- PL/SQL Developer的调试存储过程
- PL/SQL Developer的调试存储过程
- 解决导入过程中出现的ORA-02289错误
- PL/SQL Developer工具里无法调试存储过程
- Oracle12c 通过IP访问数据出现ORA-12505错误
- 解决ora-01652无法通过128(在temp表空间中)扩展temp段的过程
- 解决ora-01652无法通过128(在temp表空间中)扩展temp段的过程
- sqrt(2)*exp(i*(3*pi/4))?=-1 * 1i
- 对pump进程的拆分(进程拆分系列之四)
- MacVim配置
- jQuery ready函数实现原理
- 中国黑客产业链规模或高达上百亿 信息安全令人担忧
- 解决在Oracle12c中通过SQL Developer工具debug存储过程时的错误: ORA-24247
- GCD 学习(二)dispatch_queue_create创建Dispatch Queue
- Linux netstat命令详解
- Web下的整体测试
- 搭建Discuz论坛,安装后不显示内容
- Zend Framework1-Zend_Session
- Subsets II--LeetCode
- 分享一个较为完成的activity和fragment的生命周期
- 中国网民用户日渐增多,网站建设更是发挥了越来越大的用处