用户回收权限只能回收自己授出的权限。即使该用户拥有该对象,该对象上的权限被间接授出,也不能直接回收权限。For example

用户test拥有表ttest用户授予test4下列权限:

TEST@ abc >grant select,insert,update on t to test4 with grant option;

 

Grant succeeded.

 

用户test4又授予用户test9下列权限:

TEST4@ abc >grant select,insert,update on test.t to test9;

 

Grant succeeded.

 

此时,用户test9拥有test用户下表t上的selectupdateinsert权限。该权限是由test4用户授予的!

用户test试图收回test9的这一权限:

TEST@ abc >revoke select,update,insert on t from test9;

revoke select,update,insert on t from test9

*

ERROR at line 1:

ORA-01927: cannot REVOKE privileges you did not grant

 

提示不能撤回未授予的权限!即使test是表的拥有者!

此时,若用户test撤回test4的该权限,test9关于该表t的权限也被自动撤回。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub/25744374/viewspace-720889/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub/25744374/viewspace-720889/

更多推荐

table owner不能间接撤回表上的权限