Oracle中用sys用户建表权限不足


过程如下:

SQL> show user;
USER is "SYS"
SQL> create user test identified by test;

User created.

SQL> create table test.t(id int);
create table test.t(id int)
*
ERROR at line 1:
ORA-01950: no privileges on tablespace 'USERS'

原因:标题首先有点标题党的嫌疑,这里主要是为了引起注意,我第一次碰到这个问题时候,苦思不得其解.

在建对象的时候前面加上了schema,这里是test,那么意味着以test用户的身份去建表,而test用户是刚刚建立,没有建表的权限。

相关内容