本文共 804 字,大约阅读时间需要 2 分钟。
ORA-01950: no privileges on tablespace 解决办法 源:http://hi.baidu.com/winlei/item/c23bb81af0568708e65c3601 评: em操作 表空间配额不足 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; Grant succeeded SQL> connect gw/gw; Connected. SQL> create table gaowei_table(id number,name varchar2(10)); ERROR at line 1: ORA-01950: no privileges on tablespace 'SYSTEM' 原因在于在SYSTEM表空间中没有为gw用户提供配额空间(在此默认的表空间为SYSTEM表空间),如下图所示: 此时只需要为gw在system表空间上设置配额就可以了,使用如下命令为其配额: SQL> ALTERUSER "GW" QUOTA 4 M ON "SYSTEM" 配额结果如下图所示: 然后执行创建表命名,成功,如下: SQL> show user; USER is "GW" SQL> create table gaowei_table(id number,name varchar2(10)); Table created. OK,问题解决,所以在新建用户后,不光要为用户分配一定的Create等权限,还要为用户在相应的表空间中设置磁盘配额。转载地址:http://ueswn.baihongyu.com/