不可轻言放弃,否则对不起自己!
oracle案例-1
上一篇 /
下一篇 2011-06-07 14:58:28
/ 个人分类:数据库
案例:ORA-01536
表像
执行刷库脚本,创建表报错
SQL> SQL> SQL> 2 3 4 5 6 CREATE TABLE "ECTOSIINFO"
*
ERROR at line 1:
ORA-01536: space quota exceeded for tablespace 'MMSG'
原因分析
1、查看错误码
01536, 00000, "space quota exceeded for tablespace '%s'"
// *Cause: The space quota for the segment owner in the tablespace has
// been exhausted and the operation attempted the creation of a
// new segment extent in the tablespace.
// *Action: Either drop unnecessary objects in the tablespace to reclaim
// space or have a privileged user increase the quota on this
// tablespace for the segment owner.
显示可能为表空间段扩展问题。
2、查看表空间使用率
观察一下表空间是否已经满了,无法自动扩展或者扩展已达配额
TABLESPACE_NAME USED_SPACE TABLESPACE_SIZE USED_PERCENT
------------------------------ ---------- --------------- ------------
MMSG 13384 4194302 .319099578
MMSG_TMP 0 64000 0
MMSG表空间使用率很低啊,3.27G的空间只使用了104M
3、查看表空间限额
表空间限额和表空间是两个不同的概念,表空间限额约束了表空间的使用情况,如果表空间200M,表空间限额只分配20M,剩下的180M的空间能够被数据库所使用的空间就被浪费掉了。
SQL>select tablespace_name,username,bytes,max_bytes from dba_ts_quotas;
TABLESPACE_NAME USERNAME BYTES MAX_BYTES
------------------------------ ------------------------------ ---------- ----------
收藏
举报
TAG: