我能够在中运行PL/SQL过程吗?
PL/SQL过程
create or replace PROCEDURE greetings
AS
BEGIN
dbms_output.put_line('Hello World!');
END; 这里是DB日志:
Connecting to the database Oracle_XXXX.
Hello World!
Process exited.
Disconnecting from the database Oracle_XXXX.但是我无法调试PL/SQL过程并获得错误日志?
这里是错误DB日志:
Connecting to the database Oracle_XXXX.
Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '127.0.0.1', '63717' )
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 Oracle_XXXX.有人能建议我如何解决这个问题吗?
发布于 2021-09-13 14:27:59
Connecting to the database Oracle_XXXX.
Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '127.0.0.1', '63717' )
ORA-24247: network access denied by access control list (ACL)这是一个从数据库返回的错误。
它是说,在PL/SQL中,您试图连接到端口63717上的127.0.01,但是我们不允许从数据库中进行出站网络活动。
要使默认调试器在中工作,需要定义访问控制列表(ACL)规则。
您可以通过这个过程,或者您可以使用DBMS_DEBUG调试器API,它让second进行第二个数据库连接来进行调试,而不是让数据库连接回到客户端。
我在这里有关于这两种方法/路线的说明,https://www.thatjeffsmith.com/archive/2015/06/everything-you-ever-wanted-to-know-about-the-plsql-debugger/
具体来说,我非常喜欢Galo在这里的文章,https://galobalda.wordpress.com/2014/02/17/sql-developers-plsql-debugger-and-oracle-12c/
https://stackoverflow.com/questions/69152396
复制相似问题