052-009題解析

pxbibm發表於2014-03-31
 

View the Exhibit and examine the privileges granted to the SL_REP user. 
052-009題解析

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   

答案解析:

本題主要考的是許可權問題,主要是理解GRANT ANY OBJECT PRIVILEGE的系統許可權。
這個系統許可權可以把任何使用者下的表授權給其他使用者。

SQL> 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部落格 ” ,連結:http://blog.itpub.net/12798004/viewspace-1133245/,如需轉載,請註明出處,否則將追究法律責任。

相關文章