自然就拥有了它的角色所拥有的权利;
oracle创建用户ORA-01045:user lacks CREATE SESSION privilege;logon denied..的问题(二)
创建角色:
create role 角色名 [no identified|identified by 口令|externally]
not identified:指出授予该角色的用户在使用时不需要检验;
identified by:指出授予该角色的用户在使用set role命令时需要检验;
www.2cto.com
收回权限:revoke 权限 from 角色名;
//角色就是权限的集合;
实例:
create role student_role
/
grant create table,create session,create view to student_role
/
grant student_role to scott
/
revoke create view from student_role
/
角色的某个权限被收回的时候,被授予该角色的用户的该权限也相应被收回;