实验 要求:权限级联 -----使用grant option 授权回收
1、使用create option为Jeff授予了对scott.emp的select对象;
2、Jeff将对scott.emp的select权限给Emi;
3、随后,撤销Jeff的select权限,此撤销操作会同时对Emi产生级联效应。
实验步骤如下: <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
一、 (管理员登陆模式下)创建用户 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;
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 。