ORACLE权限关于with admin option和with grant
来源:互联网 发布:2015手机淘宝最新版 编辑:程序博客网 时间:2024/05/21 13:22
ORACLE权限关于with admin option和with grant option的用法,希望对大家有帮助! with admin option是用在系统权限上的,with grant option是用在对象权限上的。 SQL语句: GRANT CREATE SESSION TO emi WITH ADMIN OPTION;
GRANT CREATE SESSION TO role WITH ADMIN OPTION;
GRANT role1 to role2 WITH ADMIN OPTION;
GRANT select ON customers1 TO bob WITH GRANT OPTION;
GRANT select ON customers1 TO hr_manager(role) WITH GRANT OPTION;
(级联的意思就是第一个用户的权限再授予其他用户,如果第一个用户被取消了该权限,那么通过其他通过第一个用户授予该权限的用户也被波及到,权限同时被取消,不级联的话其他用户就不会被波及。)
1、with admin option
with admin option的意思是被授予该权限的用户有权将某个权限(如create any table)授予其他用户或角色,取消是不级联的。
如授予A系统权限create session with admin option,然后A又把create session权限授予B,但管理员收回A的create session权限时,B依然拥有create session的权限。但管理员可以显式收回B create session的权限,即直接revoke create session from B.
2、with grant option
with grant option的意思是:权限赋予/取消是级联的,如将with grant option用于对象授权时,被授予的用户也可把此对象权限授予其他用户或角色,不同的是但管理员收回用with grant option授权的用户对象权限时,权限会因传播而失效,如grant select on table with grant option to A,A用户把此权限授予B,但管理员收回A的权限时,B的权限也会失效,但管理员不可以直接收回B的SELECT ON TABLE 权限。
例如:grant create any table to global with admin option;
此句中的with admin option是什么意思?
- ORACLE权限关于with admin option和with grant
- oracle 关于with admin option和with grant option说明
- ORACLE权限关于with admin option和with grant option的用法
- Oracle权限关于with admin option和with grant option的用法
- oracle权限关于with admin option和with grant option的用法
- Oracle中 with admin option 和with grant option
- Oracle 级联with admin option 和 with grant option 区别
- oracle权限with admin option和with grant option的用法
- ORACLE权限中with admin option 、with grant option的用法
- with admin option 和 with grant option的区别
- 授权中的with admin option和with grant option
- oracle11g with admin option 和with grant option区别
- with admin option、with grant option区别
- with admin option&with grant option
- with admin option 与 with grant option
- with admin option & with grant option
- grant with admin option and grant with grant option
- oracle授权时“with admin option”与“with grant option”的区别
- C#中,newandOverride
- 网页上的一些事——拒绝“坏人”
- ogre框架
- (转)
- (转)
- ORACLE权限关于with admin option和with grant
- Android学习指南
- 如何设置快速的debian源
- 相邻两方格内的两个整数之和为质数-经典算法详解
- Hadoop源代码的边角料:HDFS的数据通信机制
- ubuntu文本界面乱码解决方法
- c# 处理正则表达式
- 使用DirectInput进行交互
- c中的eof