设为首页收藏本站language→→ 语言切换

鸿鹄论坛

 找回密码
 论坛注册

QQ登录

先注册再绑定QQ

查看: 1850|回复: 5
收起左侧

[题库] Oralce OCP题库原创解析(44)

[复制链接]
发表于 2012-3-12 16:48:15 | 显示全部楼层 |阅读模式
View the Exhibit to observe the privileges granted to the MGR_ROLE role. The SCOTT user has been
granted the CONNECT and RESOURCE roles only.
The database administrator (DBA) grants MGR_ROLE to the SCOTT user by using this command:
SQL> GRANT MGR_ROLE TO SCOTT WITH ADMIN OPTION;
Which statement is true about the SCOTT user after he is granted this role?

                               
登录/注册后可看大图
A) The SCOTT user can grant the MGR_ROLE role and the privileges in it to other users.
B) The SCOTT user can grant the privileges in the MGR_ROLE role to other users but not with ADMIN_OPTION.
C) The SCOTT user can grant only the MGR_ROLE role to other users but not the privileges in it.
D) The SCOTT user can grant the privileges in the MGR_ROLE role to other users but cannot revoke privileges from them.

Answer: C
With admin option选项使被授予角色的用户有将该角色再授予别人的权力,但不具有将角色中的权限单独授予别人的权利。当然具有将该角色再收回的权力。此外,对角色赋予权限的时候不能加上with admin option或者with grant option选项。
假如a将系统权限授予b,b将此权限授予c,当a从b处收回系统权限时,不会收回c的系统权限。
假如a将对象权限授予b,b将此权限授予c,当a从b处收回对象权限时,同时收回c的对象权限。
假如a将角色授予b,b将此角色授予c,当a从b处收回该角色时,不会收回c的角色(包括角色中的对象权限和系统权限)。

发表于 2014-10-21 12:49:23 | 显示全部楼层
学学一下,加油
板凳 2014-10-21 12:49:23 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2018-1-7 12:10:08 | 显示全部楼层
感谢大神分享
6# 2018-1-7 12:10:08 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2024-4-24 22:51 , Processed in 0.065884 second(s), 8 queries , Redis On.  

  Powered by Discuz!

  © 2001-2024 HH010.COM

快速回复 返回顶部 返回列表