对象权限传递和系统权限同理
grant select on A to lisi with grant option;
若sys-\->A-->B??呢
角色:权限的集合。分配给用户
创建一个角色
create role myrole;
放权限到角色
grant create session to myrole;
grant create table to myrole;
创建用户
create user zhangsan identified by zhangsan;
把角色授予给zhangsan
grant myrole to zhangsan;
删除角色
drop role myrole;
登录zhangsan查看用户权限.
grant unlimited tablespace to myrole;
无法将UNLIMITED TABLESPACE授予角色,只能赋予给用户,因为权限太大了
注意
有些系统权限无法直接赋予角色
create table create any table
[alter table] alter any table
[drop table] drop any table
表是属于某一个用户的。
角色不论谁创建,都是大家共用的,角色不属于某个具体用户