ORA-01950错误的解决方法

来源:互联网 发布:湖南省2016年经济数据 编辑:程序博客网 时间:2024/05/22 04:44
当我使用一个新建的用户(zeng)创建完一个表,插入记录的时候出现如下的错误。
SQL> insert into account_manager values('1000','smith','2012-FEB-03',10000,4000,'N');
insert into account_manager values('1000','smith','05-FEB-12',10000,4000,'N')
*
ERROR at line 1:
ORA-01950: no privileges on tablespace 'USERS'
[oracle@zeng ~]$ oerr ora 01950
01950, 00000, "no privileges on tablespace '%s'"
// *Cause:  User does not have privileges to allocate an extent in the
//          specified tablespace.
// *Action: Grant the user the appropriate system privileges or grant the user
//          space resource on the tablespace.
原因是在指定的表空间(这里是users)没有配额。
给该用户授予一定的表空间配额。
SQL> alter user 用户名 quota 50M on 表空间名;
User altered.
SQL> conn zeng/oracle
Connected.
SQL> insert into account_manager values
  2   ('10000','smith','05-FEB-12',10000,3000,'N');
1 row created.
SQL> commit;
Commit complete.
0 0
原创粉丝点击