ACL CONFIGURATION (utl_http)
To be done by Oracle SYS
Login using sys user
GRANT EXECUTE ON utl_http TO <Replication-Schema>;
Then follow below steps.
1) Drop ACL if already exist.
begin
DBMS_NETWORK_ACL_ADMIN.drop_acl(acl => 'utl_http');
END;
2) Create an access control list
BEGIN
dbms_network_acl_admin.create_acl(
acl => 'utl_http.xml',
description => 'Enable',
principal =>'AUTOMATION',
is_grant=> true,
privilege => 'connect');
commit;
end;
3) Assign ACL
begin
dbms_network_acl_admin.assign_acl (
acl=> 'utl_http.xml',
host=>'192.9.200.31',
lower_port=>'25');
commit;
end;
4) Add privilege
begin
DBMS_NETWORK_ACL_ADMIN.add_privilege (
acl =>'utl_http.xml',
principal =>'AUTOMATION',
is_grant=> TRUE,
privilege=> 'connect');
COMMIT;
end;
BEGIN
Dbms_Network_Acl_Admin.Assign_Acl (Acl => 'utl_http.xml',Host => '*');
END;