ORACLE用户建表:ORA-01950: no privileges on tablespace 解决
2010-11-02 18:34
531 查看
ORACLE用户建表:ORA-01950: no privileges on tablespace解决
SQL> create user gw identified by gw;
User created
SQL> grant create session to gw;
Grant succeeded
SQL> grant create table to gw;[/b]
Grant succeeded
SQL> connect gw/gw;[/b]
Connected.
SQL> create table gaowei_table(id number,name varchar2(10));[/b]
ERROR at line 1:
ORA-01950: no privileges on tablespace 'SYSTEM'
原因在于在SYSTEM表空间中没有为gw用户提供配额空间(在此默认的表空间为SYSTEM表空间),如下图所示:
此时只需要为gw在system表空间上设置配额就可以了,使用如下命令为其配额:
SQL>[/b] ALTER [/b]USER "GW" [/b]QUOTA 4 M [/b]ON "SYSTEM"[/b]
配额结果如下图所示:
然后执行创建表命名,成功,如下:
SQL> show user;
USER is "GW"
SQL> create table gaowei_table(id number,name varchar2(10))[/b];[/b][/b]
Table created.
OK,问题解决,所以在新建用户后,不光要为用户分配一定的Create等权限,还要为用户在相应的表空间中设置磁盘配额。
本文出自 “艳阳天的小窝” 博客,请务必保留此出处http://yytian.blog.51cto.com/535845/414142
SQL> create user gw identified by gw;
User created
SQL> grant create session to gw;
Grant succeeded
SQL> grant create table to gw;[/b]
Grant succeeded
SQL> connect gw/gw;[/b]
Connected.
SQL> create table gaowei_table(id number,name varchar2(10));[/b]
ERROR at line 1:
ORA-01950: no privileges on tablespace 'SYSTEM'
原因在于在SYSTEM表空间中没有为gw用户提供配额空间(在此默认的表空间为SYSTEM表空间),如下图所示:
此时只需要为gw在system表空间上设置配额就可以了,使用如下命令为其配额:
SQL>[/b] ALTER [/b]USER "GW" [/b]QUOTA 4 M [/b]ON "SYSTEM"[/b]
配额结果如下图所示:
然后执行创建表命名,成功,如下:
SQL> show user;
USER is "GW"
SQL> create table gaowei_table(id number,name varchar2(10))[/b];[/b][/b]
Table created.
OK,问题解决,所以在新建用户后,不光要为用户分配一定的Create等权限,还要为用户在相应的表空间中设置磁盘配额。
本文出自 “艳阳天的小窝” 博客,请务必保留此出处http://yytian.blog.51cto.com/535845/414142
相关文章推荐
- 关于ORA-01950: no privileges on tablespace 的解决
- [转]ORA-01950: no privileges on tablespace 解决办法
- ORA-01950: no privileges on tablespace 解决方法
- Oracle 10g 异常:ORA-01950: no privileges on Tablespace
- 创建表事报错:ORA-01950: no privileges on tablespace 'tablespace_name‘ 解决
- Oracle 10g 异常:ORA-01950: no privileges on Tablespace
- ORA-01950: no privileges on tablespace 'USERS'--解决办法
- Oracle错误:ORA-01950:no privileges on tablespace 'USERS'
- ORA-01950: no privileges on tablespace 'xxxxxx'
- ORA-01950:no privileges on tablespace 'USERS'
- ORA-01950:no privileges on tablespace 'USERS'
- ORA-01950: no privileges on tablespace
- ORA-01950: no privileges on tablespace 'SNOOPY'
- ORA-01950:no privileges on tablespace 'USERS'
- ORA-01950: no privileges on tablespace
- ORA-01950: no privileges on tablespace 'USERS'错误
- ORA-01950: no privileges on tablespace 'USERS'错误
- ORA-01950:no privileges on tablespace 'USERS'
- ORA-01950:no privileges on tablespace 'USERS'
- ORA-01950: no privileges on tablespace 'USERS'错误