Home >Database >Mysql Tutorial >Oracle中用sys用户建表权限不足

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:09:381626browse

过程如下: SQLgt; show user;USER is SYSSQLgt; create user test identified by test; User created. SQLgt; create table

过程如下:

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用户是刚刚建立,没有建表的权限。

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn