首页 > 数据库 > Oracle > 052-009题解析
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: ASQL> CREATE USER SL_REP IDENTIFIED BY SL_REP ACOUNT UNLCOK;
SQL> GRANT connect,resource TO SL_REP;
SQL> GRANT grant any object privilege TO SL_REP;
另一个回话中
SQL> conn SL_REP/SL_REP
SQL > GRANT SELECT ON scott.emp TO hr;
可以成功授权。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12798004/viewspace-1133245/ ,如需转载,请注明出处,否则将追究法律责任。