ITPub博客

首页 > 数据库 > Oracle > 理解grant的with admin option

理解grant的with admin option

原创 Oracle 作者:hcl 时间:2008-10-23 15:36:24 0 删除 编辑

SQL> conn / as sysdba
已连接。
SQL> grant connect to hcl;

授权成功。

SQL> conn hcl/hcl
已连接。
SQL> grant connect to test;
grant connect to test
*
第 1 行出现错误:
ORA-01932: ADMIN 选项未授权给角色 'CONNECT'


SQL> grant create session to test;
grant create session to test
*
第 1 行出现错误:
ORA-01031: 权限不足


SQL> conn / as sysdba
已连接。
SQL> grant connect to hcl with admin option;

授权成功。

SQL> conn hcl/hcl
已连接。
SQL> grant create session to test;
grant create session to test
*
第 1 行出现错误:
ORA-01031: 权限不足


SQL> grant connect to hcl;

授权成功。

SQL> grant connect to test;

授权成功。

SQL>
SQL> grant create session to hcl with admin option;

授权成功。

SQL> conn hcl/hcl
已连接。
SQL> grant create session to test;

授权成功。

SQL> grant create session to test with admin option;

授权成功。

SQL> grant connect to test with admin option;

授权成功。

这样我们就可以理解with admin option的用户了。

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/42174/viewspace-1012307/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 多桌面小工具
请登录后发表评论 登录
全部评论

注册时间:2008-05-31

  • 博文量
    7
  • 访问量
    13707