2012-12-21 42 views
2

我有一个新创建的表。当我尝试插入它时,我得到..Oracle SQL - 不能插入行

SQL Error: ORA-01950: no privileges on tablespace 'ADMINISTRATOR' 
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. 

为了解决这个问题,我试过几件事情......

GRANT UNLIMITED TABLESPACE TO MY_TABLE; 


grant RESOURCE,CONNECT,UNLIMITED TABLESPACE to USER_NAME; 


alter user "USER_NAME" 
quota unlimited on "ADMINISTRATOR" 

...但仍然是错误。这种失败的原因是什么,我该如何解决?

+3

您可能应该在USERS表空间中构建表... – Randy

+3

这是可以解决的,但我们需要一些诊断来帮助:谁拥有该表,该用户的默认表空间是什么。这个表是全球性的临时吗?它是否被延期创建?谁试图插入? –

+0

您是否尝试向USER_NAME授予无限制的桌面空间?你有错误还是成功了? –

回答

0

试试这个

ALTER DATABASE DATAFILE '/u01/app/oracle/your_tablespace_datafile_name.dbf' 自动扩展的最大范围不受限制;

+0

这不是空间问题。您是否看到:“表空间管理员*上没有**特权**” –