Select Owner,Tablespace_name,Segment_Name,Segment_Type,Sum(bytes)/1024/1024 sums From Dba_Extents
where owner='NBCHECK' and Segment_Type='TABLE'
Group By Owner,Tablespace_name,Segment_Name,Segment_Type
Order By sums
表空間的大小與使用者的配額大小是兩種不同的概念。表空間的大小是指實際的使用者表空間的大小,而配額大小指的是使用者指定使用表空間的的大小
把表空間檔案增大,還是出現這個問題,使用者在使用表空間的同時使用空間的限額,如果超出限制,就算有空的地方,也不會讓使用者使用。
遇到ORA-01536錯誤,首先要檢視使用者的表空間的限額
select * from dba_ts_quotas;
select * from user_ts_quotas;
max_bytes字段-1是代表沒有限制,其它值多少就是多少.
<meta. content="text/html; charset=utf-8" http-equiv="Content-Type"> <meta. content="OneNote.File" name="ProgId"> <meta. content="Microsoft OneNote 12" name="Generator">
dba_ts_quotas :描述所有使用者表空間的限額
<meta. content="text/html; charset=utf-8" http-equiv="Content-Type"> <meta. content="OneNote.File" name="ProgId"> <meta. content="Microsoft OneNote 12" name="Generator">
user_ts_quotas :描述目前使用者表空間的限額。
如果查詢結果中max_bytes字段不為-1,修改為無限制或者指定的大小。
<meta. content="text/html; charset=utf-8" http-equiv="Content-Type"> <meta. content="OneNote.File" name="ProgId"> <meta. content="Microsoft OneNote 12" name="Generator">
不對使用者做表空間限額控制:
GRANT UNLIMITED TABLESPACE TOuser;
這種方式是全局性的。 或者
alter useruserquota unlimited onuser_tablespace;
這種方式是針對特定的表空間的.
回收表空間限額控制:
revoke unlimited tablespace fromuser;
或者
alter useruserquota 0 onuser_tablespace;
ITPUB個人空間"F6P*Zt%HZ(BGo