Heim >Datenbank >MySQL-Tutorial >Oracle中用sys用户建表权限不足

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:09:381641Durchsuche

过程如下: 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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn