我正在尝试将我们的s3服务与Oracle应用程序集成。在以下链接之后:http://www.oracle.com/technetwork/developer-tools/apex/application-express/integration-086636.html#S3
我构建了一个应用程序,它应该连接Amazon服务,并且应该返回存储桶的内容。
此外,在这篇非常有用的文章之后,我添加了ACL规则以允许与amazon服务进行通信:
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上的execute。无论如何,每当我运行app时,我都会收到以下错误消息:
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 397Oracle 11g,Apex 4.2
任何帮助都非常感谢。
发布于 2013-09-11 13:47:59
您仍然得到ORA-24247,因此这表明对您的ACL来说有些东西是不正确的。您提供了哪些用户的连接权限?
您将需要将连接权限授予
APEX_040200https://stackoverflow.com/questions/18741810
复制相似问题