分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

               

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

OCP 1Z0 052 V8 02 9题

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、创建一个用户,并解锁
[email protected]> create user SL_REP identified by 123 account unlock;

User created.
2、将connect、resource角色赋予
[email protected]> grant connect,resource to SL_REP;

Grant succeeded.
3、将grant any object privilege 赋予

[email protected]> grant grant any object privilege to SL_REP;

Grant succeeded.
4、SL_REP连接数据库,开始授予hr访问scott的emp表,赋予成功。所以选择A。
[email protected]> conn SL_REP/123
Connected.

[email protected]> grant select on scott.emp to hr;

Grant succeeded.

           

给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow

OCP 1Z0 052 V8 02 9题

相关文章:

  • 2021-05-29
  • 2021-07-03
  • 2021-04-01
  • 2021-08-14
  • 2021-12-08
  • 2021-04-17
  • 2021-08-14
  • 2021-04-22
猜你喜欢
  • 2021-08-10
  • 2021-10-27
  • 2021-11-02
  • 2021-08-30
  • 2021-04-13
  • 2021-04-27
  • 2021-10-21
相关资源
相似解决方案