OCP考试专项 [1z0-062]-Q1:CDB与PDB权限

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了OCP考试专项 [1z0-062]-Q1:CDB与PDB权限相关的知识,希望对你有一定的参考价值。

In your multitenant container database (CDB) containing pluggable database (PDBs), you
granted the CREATE TABLE privilege to the common user C##ADMIN in root and all PDBs.
You execute the following command from the root container:
SQL > REVOKE create table FROM C##ADMIN;
What is the result?

A. It executes successfully and the CREATE TABLE privilege is revoked from C##ADMIN in root only.
B. It fails and reports an error because the CONTAINER=ALL clause is not used.
C. It excludes successfully and the CREATE TABLE privilege is revoked from C##ADMIN in root and all PDBs.
D. It fails and reports an error because the CONTAINER=CURRENT clause is not used.
E. It executes successfully and the CREATE TABLE privilege is revoked from C##ADMIN in all PDBs.

Answer: A
Explanation: 在多租户环境里面,REVOKE…FROM…命令默认缺省选项为 container=current ,也就是回收当前容器数据库的权限。题目告知是在根容器(CDB$ROOT)里面执行的语句,因此只会回收根容器的权限。知识拓展如下图

以上是关于OCP考试专项 [1z0-062]-Q1:CDB与PDB权限的主要内容,如果未能解决你的问题,请参考以下文章

OCP考试专项 [1z0-071]-Q5: SCALAR SUBQUERY 标量子查询(2020.06.16)

12c OCP考试专项 [1z0-071]-Q12: 全局临时表(2020.06.17)

12c OCP考试专项 [1z0-071]-Q11: 主键/外键/数据类型/列值(2020.06.17)

12c OCP考试专项 [1z0-071]-Q16: 对象权限的授权(2020.06.18)

12c OCP考试专项 [1z0-071]-Q17: 对象权限的授权(2020.06.18)

1z0-062 数据库OCP题库5