实验要求:权限级联-----使用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" />

一、     (管理员登陆模式下)创建用户JeffEmi

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不可将权限继续传递)

六、(管理员登陆模式下)将Jeffselect权限收回:

revoke select on scott.emp from Jeff

七、验证:

Jeff登陆模式下不可查询表scott.emp;在Emi登陆模式下同样不可查询表scott.emp