zoukankan      html  css  js  c++  java
  • DBMS_NETWORK_ACL_ADMIN (OCP 053 第七题)

    You create an access control list(ACL)using the DBMS_NETWORK_ACL_ADMIN package

     

    It is a list of users and network privileges stored in the XML file according to which a group
    of users can connect to one or more hosts.

    (The DBMS_NETWORK_ACL_ADMIN package provides the interface to administer the network Access Control
    List(ACL).
    Examples
    Example1

    Grant the connect and resolve privileges for hostwww.us.oracle.comto SCOTT.
    BEGIN
    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL(acl=>'www.xml',
    description=>'WWW ACL',
    principal=>'SCOTT',
    is_grant=>true,
    privilege=>'connect');
    DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl=>'www.xml',
    principal=>'SCOTT',
    is_grant=>true,
    privilege=>'resolve');
    DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(acl=>'www.xml',
    host=>'www.us.oracle.com');
    END;
    /
    COMMIT;


    Example 2

    Grant the resolve privilege forwww.us.oracle.comto ADAMS.Since an ACL forwww.us.oracle.comexists
    already,just add the privilege for ADAMS.
    BEGIN
    DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl=>'www.xml',
    principal=>'ADAMS',
    is_grant=>true,
    privilege=>'resolve');
    END;
    /
    COMMIT;


    Example 3

    Assign the ACLwww.xmlto www-proxy.us.oracle.com so that SCOTT and ADAMS can access
    www-proxy.us.oracle.com also.
    BEGIN
    DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(acl=>'www.xml',
    host=>'www-proxy.us.oracle.com');
    END;
    /
    COMMIT;)
  • 相关阅读:
    STL map用法总结(multimap)
    Ice Cream Tower
    位运算 进制转化 STL中bitset用法
    《算法导论》插入排序
    C++输入/输出流
    kuangbin大佬模板(侵删)- hdu 2222
    poj 3461
    动态规划入门-01背包问题
    Dropping water balloons (入门dp)
    TSP
  • 原文地址:https://www.cnblogs.com/CandiceW/p/10312619.html
Copyright © 2011-2022 走看看