1、使用create option为Jeff授予了对scott.emp的select对象;
2、Jeff将对scott.emp的select权限给Emi;
3、随后,撤销Jeff的select权限,此撤销操作会同时对Emi产生级联效应。
实验步骤如下:一、 (管理员登陆模式下)创建用户Jeff和Emi:
create user Jeff identified by Jeff;
create user Emi identified by Emi;
二、 (管理员登陆模式下)分别给他们登陆的权限:
grant create session to Jeff
grant create session to Emi
三、 (管理员登陆模式下)分别给他们分配表空间:
alter user Jeff quote 2m on users;
四、(管理员登陆模式下)将查询权限授予Jeff:
grant select on scott.emp to Jeff with grant option;
五、(Jeff登陆模式下)将查询权限授予Emi:
grant select on scott.emp to Jeff with grant option;(Emi可将权限继续传递)
grant select on scott.emp to Jeff;(Emi不可将权限继续传递)
六、(管理员登陆模式下)将Jeff的select权限收回:
revoke select on scott.emp from Jeff;
七、验证:
在Jeff登陆模式下不可查询表scott.emp;在Emi登陆模式下同样不可查询表scott.emp。