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;)
  • 相关阅读:
    Matplotlib Date Index Formatter 日期索引格式化学习
    Matplotlib 日期格式转换
    Matplotlib基础 可视化绘图 学习笔记
    Python 修饰符@用法
    Linux下基于shell脚本实现学生信息管理系统
    JavaScript的popup框
    HTML语言发展史
    CSS grid 模板
    JavaScript中的正则表达式
    position的四个属性值
  • 原文地址:https://www.cnblogs.com/CandiceW/p/10312619.html
Copyright © 2011-2022 走看看