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博客 ” ,链接:http://blog.itpub.net/42174/viewspace-1012307/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/42174/viewspace-1012307/