码迷,mamicode.com
首页 > 其他好文 > 详细

OCP-1Z0-052-V8 02-9题

时间:2018-12-16 11:52:07      阅读:174      评论:0      收藏:0      [点我收藏+]

标签:success   family   创建   follow   角色   edit   state   jsb   ast   

9. View the Exhibit and examine the privileges granted to the SL_REP user. 

技术分享图片

The EMP table is owned by the SCOTT user. The SL_REP user executes the following command:

SQL> GRANT SELECT ON scott.emp TO hr;

Which statement describes the outcome of the command?

 

A.The command executes successfully.

B.The command produces an error because the EMP table is owned by SCOTT.

C.The command produces an error because SL_REP has the GRANT ANY OBJECT PRIVILEGE without

ADMIN_OPTION.

D.The command produces an error because SL_REP does not have the SELECT privilege with

GRANT_OPTION on the EMP table.

Answer: A  
答案解析:
环境测试一下:
1、创建一个用户,并解锁
sys@TEST0924> create user SL_REP identified by 123 account unlock;
 
User created.
2、将connect、resource角色赋予
sys@TEST0924> grant connect,resource to SL_REP;
 
Grant succeeded.
3、将grant any object privilege 赋予
 
sys@TEST0924> grant grant any object privilege to SL_REP;
 
Grant succeeded.
4、SL_REP连接数据库,开始授予hr访问scott的emp表,赋予成功。所以选择A。
sys@TEST0924> conn SL_REP/123
Connected.
 
sl_rep@TEST0924> grant select on scott.emp to hr;
 
Grant succeeded.

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!希望你也加入到我们人工智能的队伍中来!http://www.captainbed.net

OCP-1Z0-052-V8 02-9题

标签:success   family   创建   follow   角色   edit   state   jsb   ast   

原文地址:https://www.cnblogs.com/sjwics/p/10125965.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!