Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all articles
Browse latest Browse all 1640

Grant ACL to user for sending mail

$
0
0


Step – 1 :: create ACL scrip change “principal” name(Schema/User name).

begin
  dbms_network_acl_admin.create_acl(
    acl         => 'utl_smtp.xml',
    description => 'Allow mail to be send',
    principal   => 'USER',
    is_grant    => TRUE,
    privilege   => 'connect'
    );
    commit;
end;

Step – 2::
begin
  dbms_network_acl_admin.add_privilege (
  acl       => 'utl_smtp.xml',
  principal => 'USER',
  is_grant  => TRUE,
  privilege => 'connect'
  );
  commit;
end;

Step - 3 ::
begin
  dbms_network_acl_admin.assign_acl(
  acl  => 'utl_smtp.xml',
  host => '12.345.67.89',
  lower_port => 25,
  upper_port => 25
  );
  commit;
end;

Viewing all articles
Browse latest Browse all 1640

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>