2017-04-22 109 views
0

我想建立一个用户在我的Oracle 11g数据库这样建立在Oracle 11g中用户 - 无权限问题

create user BARRY6 IDENTIFIED by password123; 
grant connect to BARRY6; 
grant create session to BARRY6; 
grant UNLIMITED TABLESPACE to BARRY6; 
commit; 

这应该创建一个用户,并为他们提供基本的权限。 所有命令都可以成功执行,但是我无法与此用户连接。 我得到一个错误

An error was encountered performing the requested operation: 

    ORA-01031: insufficient privileges 
    01031. 00000 - "insufficient privileges" 
    *Cause: An attempt was made to perform a database operation without 
       the necessary privileges. 
    *Action: Ask your database administrator or designated security 
       administrator to grant you the necessary privileges 
    Vendor code 1031 

当我查看USER_ROLE_PRIVS表,还有在表中没有权限,我的用户

回答

0

这是发生,因为角色我试图登录作为是SYSDBA。虽然它应该是默认的。

我知道,愚蠢的,但它发布的解决方案,以防其他人创造一个用户,他们犯这个简单的错误。这是由加载sys连接引起的,只是改变密码而不改变角色