Remove ACL and privileges, Drop ACL in oracle

 Remove ACL and privileges, Drop ACL in oracle

See the Network and ACL assignments as below -

                                

o   Unassign ACL

        begin
            dbms_network_acl_admin.unassign_acl(
            acl  => 'utl_mail_test.xml',
            host => '172.16.20.18',
             lower_port  => 25,
            upper_port  => NULL
            );
            commit;
        end;
            /

o   Remove Privilege (In ACL principals - Users, privileges - right)

        begin
            dbms_network_acl_admin.delete_privilege (
            acl       => 'utl_mail_test.xml',
            principal => 'FINN',
            is_grant  => TRUE,
            privilege => 'connect'
            );
            commit;
        end;
        /

o   Drop ACL

        begin
            dbms_network_acl_admin.drop_acl (
            acl         => 'utl_mail_test.xml'
            );
            commit;
        end; 
          /

                        


 Some more articles you might also be interested in :-

    Create and configure ACL in oracle database

    The common errors during ACL configuration

    Remove ACL and Privileges

             





Comments

Popular posts from this blog

ORA-02050: transaction rolled back, some remote DBs may be in-doubt

Distributed transaction, Oracle Distributed Transactions, distributed transaction in oracle