ORA-01950错误的解决方法

ORA-01950错误的解决方法
当我使用一个新建的用户(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 zeng quota 50M on users;
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.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26110315/viewspace-717144/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26110315/viewspace-717144/

你可能感兴趣的:(ORA-01950错误的解决方法)