使用oracle的utl_http包需要设置acl
例如用户是dabao
BEGIN
dbms_network_acl_admin.create_acl(acl => '/sys/acls/utlpkg.xml',
description => '/sys/acls/utlpkg.xml',
principal => 'dabao',
is_grant => TRUE,
privilege => 'connect');
dbms_network_acl_admin.add_privilege(acl => '/sys/acls/utlpkg.xml',
principal => 'dabao',
is_grant => TRUE,
privilege => 'connect');
dbms_network_acl_admin.assign_acl(acl => '/sys/acls/utlpkg.xml', host => '*');
COMMIT;
END;
oracle的存储过程直接调用http接口
declare
req utl_http.REQ;
re