【OCP最新题库解析(052)--题5】Which two are true about roles?_面试

       

    该系列专题为2018年4月OCP-052考题变革后的最新题库。题库为小麦苗解答,若解答有不对之处,可留言,也可联系小麦苗进行修改。

 

Q题目

 

 

Which two are true about roles?

A. A role can be password-protected.

B. Only one default role can be granted to a user.

C. A role can be granted only multiple system privileges not multiple object privileges.

D. A role can be granted to another role.

E. A role can be created only by a user with the SYSDBA privilege.

 

 

     A答案

 

 

Answer:AD 

对于B选项,一个user可以被赋予多个role。

对于C选项,角色可以被赋予多个系统权限和多个对象权限。

对于E选项,只要有CREATE ROLE系统权限就可以创建角色。

 

自定义角色顾名思义就是自己定义的角色,根据自己的需要来定义。一般是dba来建立,如果用别的用户来建立,则需要具有create role的系统权限。在建立角色时可以指定验证方式(不验证,数据库验证等)。

1.建立角色(不验证)

如果角色是公用的角色,可以采用不验证的方式建立角色。

create role 角色名 not identified;

2.建立角色(数据库验证)

采用这样的方式时,角色名、口令存放在数据库中。当激活该角色时,必须提供口令。在建立这种角色时,需要为其提供口令。

create role 角色名 identified by 密码;

 

【OCP最新题库解析(052)--题5】Which two are true about roles?_面试_02