OCP-052考試題庫匯總(57)-CUUG內部解答版
- 2019 年 10 月 7 日
- 筆記
Examine these facts about a databases:
1.USERS is the database default tablespace.
2.USER1,USER2,and USER3 have the CREATE SESSION privilege
3.They also have UNLIMITED QUOTA on the default tablespace USERS.
4.They have no other provileges.
Examine these commands:
SQL>conn / as sysdba
Connected.
SQL>GRANT CREATE TABLE TO user1 WITH ADMIN OPTION
Grant succeeded
SQL>conn user1/oracle_4U
Connected.
SQL>GRANT CREATE TABLE TO user2;
Grant succeeded.
SQL>GRANT CREATE TABLE TO user3 WITH ADMIN OPTION;
Grant succeeded.
Which two are true?
A)If sys revokes CREATE TABLE from USER1,it is not revoked from USER2 and USER3
B)Any user with CREATE TABLE WITH ADMIN OPTION can revoke CREATE TABLE from USER1
C)If sys revokes CREATE TABLE from USER1,it is revoked from USER2 but not from USER3
D)Only sys and USER1 can revoke CREATE TABLE from USER3
E)Only sys can revoke CREATE TABLE from USER1.
Answer: AB
趙:注意與上題的區別是,中間切換到了 user1 對 user2 和 user3 進行的授權,而不是 SYS 直接授權的。
經測試,SYS 和 USER1 可以收回 USER3 的 CREATE TABLE 權限,但 USER2 不能收回 USER3 的建表權。
USER3 可以收回 USER1 和 USER2 的 CREATE TABLE 權限。此題 D 選項雖是對的,但是其中用了 ONLY,沒有 B 選項好。