ocp考试资料群:569933648 验证码:ocp ocp 12c 19c考试题库解析与资料群:钉钉群号:35277291
全部博文(486)
分类: oracle
2019-09-25 10:19:54
in one of your databases:
1.user1 and user2 have no system privileges.
2.role1 only has these privileges:
?create session
?create table
?create view
examine these commands:
sql> conn / as sysdba
connected.
sql> grant create table, role1 to user1 with admin option;
grant succeeded.
sql> conn user1/oracle_4u
connected.
sql> grant role1 to user2;
grant succeeded.
which command would you execute and as which user, to revoke the create table privilege from user2?
a)revoke create table from user2 as sys
b)revoke create table from role1 as sys
c)revoke create table from role1 as user1
d)revoke create table from user1 as sys
answer: b
只有 sys 用户才能够从 role 中 revoke 权限,而 user1 只能把 role 授权给其它用户,或者从其它用户回收 role。