ORA-01536: space quota exceeded for tablespace

ORA-01536: space quota exceeded for tablespace

当Oracle数据库用户的权限不是dba时,对其默认表空间的“限额”可能为无,这时需要把限额改为“无”即可。

今天在插入数据的时候碰到了ORA-01536,这个是因为一个用户在使用表空间时候受到了权限的限制.修改这个用户的使用这个表空间的空间的权限就可以了.

方法一

ALTER USER <username> QUOTA <integer> [K/M] ON <tablespacename>

方法二

ALTER USER <username> QUOTA UNLIMITED ON <tablespacename>

查找原因

select username, tablespace_name, bytes, max_bytes
from dba_ts_quotas
where username = '<the_user_getting_the_error>'
and tablespace_name = '<the_tablespace_the_error_is_occuring_on>';

O:\>sqlplus greatfinish/finish@ora8

SQL*Plus: Release 9.2.0.1.0 - Production on 星期三 5月 31 19:32:25 2006

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.


连接到:
Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
With the Partitioning option
JServer Release 8.1.7.4.0 - Production

greatfinish@ORA8> insert into NEWSDAT.T_ART_IMAGES select * from NEWSDAT.T_ART_IMAGES@qa.world;
insert into NEWSDAT.T_ART_IMAGES select * from NEWSDAT.T_ART_IMAGES@qa.world
                                        *
ERROR 位于第 1 行:
ORA-01536: space quota exceeded for tablespace 'RSMOTR'


greatfinish@ORA8> insert into NEWSDAT.T_ARTICLES select * from NEWSDAT.T_ARTICLES@qa.world;
insert into NEWSDAT.T_ARTICLES select * from NEWSDAT.T_ARTICLES@qa.world
                                      *
ERROR 位于第 1 行:
ORA-01536: space quota exceeded for tablespace 'RSMOTR'


greatfinish@ORA8> alter user NEWSDAT quota unlimited on RSMOTR;

用户已更改。

greatfinish@ORA8> insert into NEWSDAT.T_ART_IMAGES select * from NEWSDAT.T_ART_IMAGES@qa.world;

已创建1296行。

greatfinish@ORA8> insert into NEWSDAT.T_ARTICLES select * from NEWSDAT.T_ARTICLES@qa.world;

已创建3246行。

greatfinish@ORA8> commit;

提交完成。

greatfinish@ORA8>

转载于:https://my.oschina.net/gxchan/blog/549927

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值