多选题
下面哪个GRANT命令在根容器中执行,给公共用户C##RWR提供了访问所有PDB和根容器中任何表的能力?
A、
grant select any table to c##rwr container=current;
B、
grant select any table to c##rwr container=all;
C、
grant select any table to c##rwr;
D、
grant select any table to c##rwr container=cdb$root;
【正确答案】
B
【答案解析】
GRANT语句必须包括CONTAINER=ALL。
A、C和D是不正确的。A是不正确的,因为指定CONTAINER=CURRENT,就只在当前容器中给C##RWR授予特权。C是不正确的,因为没有CONTAINER关键字,就在本地授予特权。D是不正确的,因为CONTAINER的值必须是CURRENT或ALL;不能指定PDB或根容器名称。
提交答案
关闭