1

我正在尝试将我们的 s3 服务与 Oracle Apex 应用程序集成。点击此链接后: http ://www.oracle.com/technetwork/developer-tools/apex/application-express/integration-086636.html#S3

我构建的应用程序假设连接亚马逊服务并应该返回存储桶的内容。

此外,我在这篇非常有用的文章之后添加了 ACL 规则以允许与亚马逊服务进行通信:

http://blog.whitehorses.nl/2010/03/17/oracle-11g-access-control-list-and-ora-24247/

我创建了以下异常:

begin
   dbms_network_acl_admin.create_acl (
         acl         => 'utl_http.xml',
         description => 'HTTP Access',
         principal   => 'my_user',
         is_grant    => TRUE,
         privilege   => 'connect',
         start_date  => null,
         end_date    => null
       );

  dbms_network_acl_admin.add_privilege (
         acl        => 'utl_http.xml',
         principal  => 'my_user',
         is_grant   => TRUE,
         privilege  => 'resolve',
         start_date => null,
         end_date   => null
       );


       dbms_network_acl_admin.assign_acl (
         acl        => 'utl_http.xml',
         host       => ' *.amazonaws.com’,
             lower_port => 80,
         upper_port => 80
       );

  commit;

end;

我还为我的用户授予了在 utl_http 上执行的权限。无论如何,每当我运行应用程序时,我都会收到以下错误消息:

ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1130 ORA-24247: network access denied by access control list (ACL)
    Technical Info (only visible for developers)
    is_internal_error: false
    ora_sqlcode: -29273
    ora_sqlerrm: ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1130 ORA-24247: network access denied by access control list (ACL)
    component.type: APEX_APPLICATION_PAGE_PROCESS
    component.id: 5598811807578444
    component.name: Web Service Request
    error_backtrace:
    ORA-06512: at "SYS.UTL_HTTP", line 1130
    ORA-06512: at "APEX_040200.WWV_FLOW_WEB_SERVICES", line 550
    ORA-06512: at "APEX_040200.WWV_FLOW_WEB_SERVICES", line 1171
    ORA-06512: at "APEX_040200.WWV_FLOW_PROCESS", line 397

甲骨文 11g,Apex 4.2

非常感谢任何帮助。

4

1 回答 1

2

你仍然得到ORA-24247这表明你的 ACL 有一些不正确的地方。您为哪些用户提供了连接权限?
您需要将连接权限授予

  • 解析模式用户
  • 当前安装 apex 的技术 apex 用户。对于顶点 4.2,这是APEX_040200
于 2013-09-11T13:47:59.570 回答