OCP-1Z0-053-V12.02-483题

来源:互联网 发布:mac 212 刷 编辑:程序博客网 时间:2024/06/17 05:24

483.Evaluate the following block of code:

BEGIN DBMS_NETWORK_ACL_ADMIN.CREATE_ACL ( acl =>

'mycompany-com-permissions.xml', principal => 'ACCT_MGR', is_grant => TRUE, privilege => 'connect');

DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL ( acl => 'mycompany-com-permissions.xml', host =>

'*.mycompany.com');

END;

What is the outcome of the above code?

A. It produces an error because a fully qualified host name needs to be specified.

B. It produces an error because the range of ports associated with the hosts has not been specified.

C. It creates an access control list (ACL) with the user ACCT_MGR who gets the CONNECT and RESOLVE privileges.

D. It creates an access control list (ACL) with the user ACCT_MGR who gets the CONNECT privilege but

not the RESOLVE privilege.

Answer: C

答案解析:

参考:http://blog.csdn.net/rlhua/article/details/15029727

创建访问控制列表(ACL)。ACL 是在XML 文件中保存的用户和权限的列表。以acl参数命名的XML 文档与XML DB中的/sys/acl/文件夹相关。在题中例中,ACCT_MGR被授予connect权限。ACL 中的用户名区分大小写,而且必须与会话的用户名相匹配。只有resolve和connect权限,connect权限包含resolve权限。可选参数可以指定这些权限的开始和结束时间戳。要将更多用户和权限添加到此ACL 中,可使用ADD_PRIVILEGE过程。

原创粉丝点击