ocp考试资料群:569933648 验证码:ocp ocp 12c 19c考试题库解析与资料群:钉钉群号:35277291
全部博文(486)
分类: oracle
2019-09-10 13:03:28
user1 grants select, insert, and update privileges on user1.emp to user2.
sys executes this command:
sql> revoke update on user1.emp from user1;
what will be the outcome?
a)it will fail because user1 is the owner of user1.emp.
b)it will succeed but neither user1 nor user2 will be able to perform select, insert, or update on user1.emp.
c)it will succeed and only user1 will be unable to perform select, insert, or update on user1.emp.
d)it will succeed and neither user1 nor user2 will be able to perform insert or update on user1.emp, but both will be able to query user1.emp.
e)it will succeed and only user2 will be unable to perform select, insert, or update on user1.emp.
answer: a
赵:sys 不能收回对象属主的权限。
考点:系统权限和对象权限的级联授予和级联收回。对象权限可以级联收回,系统权限不能级联收回。
系统权限的级联授予 with admin option
对象权限的级联授予 with grant option
系统权限和对象的级联收回
(1) 系统权限: a 赋予一个系统权限给 b,b 再授予 c.然后 a 将该权限从 b 回收. 此后,c 仍然有该权限.
(2) 对象权限: a 赋予一个对象权限给 b,b 再授予 c.然后 a 将该权限从 b 回收. 此后,c 也失去了该权限.