ORA-01932 选项未授权给角色'CONNECT'

当SYS用户登入:

create user tony identified by 123;

grant connect to tony;

然后tony用户登入:

create user jinge identified by 123;

grant connect to jinge;

这个时候提示ORA-01932选项未授权给角色'CONNECT'

 

with admin option 用于系统权限授权,with grant option 用于对象授权。

给一个用户授予系统权限带上with admin option 时,此用户可把此系统权限授予其他用户或角色,但收回这个用户的系统权限时,这个用户已经授予其他用户或角色的此系统权限不会因传播无效,如授予A系统权限create session with admin option,然后A又把create session权限授予B,但管理员收回A的create session权限时,B依然拥有create session的权限,但管理员可以显式收回B create session的权限,即直接revoke create session from B.

而with grant option用于对象授权时,被授予的用户也可把此对象权限授予其他用户或角色,不同的是但管理员收回用with grant option授权的用户对象权限时,权限会因传播而失效,如grant select on table with grant option to A,A用户把此权限授予B,但管理员收回A的权限时,B的权限也会失效,但管理员不可以直接收回B的SELECT ON TABLE 权限。  

 

alter user jinge identified by 111;

提示权限不足;

参考:http://blog.csdn.net/robinson_0612/article/details/5989565

sys:超级用户

system:除了不能完成备份恢复,以及升级之外的数据库所有管理

但两个都是dba角色

select * from v$pwfile_users;


SYS用户grant create public synonym to scott;

select * from user_sys_privs;

没有提示,但没授权成功;

参考:http://www.itpub.net/thread-991487-1-1.html

你可能感兴趣的:(ORA-01932 选项未授权给角色'CONNECT')