Skip to content

Instantly share code, notes, and snippets.

@adriens
Last active July 13, 2017 09:24
Show Gist options
  • Select an option

  • Save adriens/86705299203e4dd2e0123096c3c40665 to your computer and use it in GitHub Desktop.

Select an option

Save adriens/86705299203e4dd2e0123096c3c40665 to your computer and use it in GitHub Desktop.
begin
dbms_network_acl_admin.create_acl (
acl => 'utl_https_slack.xml',
description => 'Slack HTTPS Access',
principal => 'SLACK',
is_grant => TRUE,
privilege => 'connect',
start_date => null,
end_date => null
);
dbms_network_acl_admin.add_privilege (
acl => 'utl_https_slack.xml',
principal => 'SLACK',
is_grant => TRUE,
privilege => 'resolve',
start_date => null,
end_date => null
);
dbms_network_acl_admin.assign_acl (
acl => 'utl_https_slack.xml',
host => '*.slack.com',
lower_port => 443,
upper_port => 443
);
commit;
end;
/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment