标签:
SELECT A.tablespace_name ,A.bytes /1024/1024 AS "表空间大小(M)" ,( A.bytes - B.bytes )/1024/1024 AS "已使用空间(M)" ,B.bytes / 1024 / 1024 AS "空闲空间(M)" ,Round((( A.bytes - B.bytes ) / A.bytes ) * 100, 2) AS "使用比率" FROM (SELECT tablespace_name ,SUM(bytes) bytes FROM dba_data_files GROUP BY tablespace_name) A, (SELECT tablespace_name, SUM(bytes) bytes, Max(bytes) largest FROM dba_free_space GROUP BY tablespace_name) B WHERE A.tablespace_name = B.tablespace_name ORDER BY (( A.bytes - B.bytes)/A.bytes) DESC
当查找完之后显示表空间的使用率为99.99%.
这时就需要检查这个表空间是否自动扩展,如果是自动扩展,继续检查最大的扩展空间,如果已经达到最大扩展空间,这是就需要DBA增加空间。
select FILE_ID,FILE_NAME,tablespace_name,AUTOEXTENSIBLE,INCREMENT_BY from dba_data_files where tablespace_name=‘BIDW‘ ORDER BY FILE_ID DESC
Oralce11g:ORA-06153:表BI_DW.DW_NBZ_POLICY_MAIN无法通过8192(在表空间BIDW中) 扩展
标签:
原文地址:http://www.cnblogs.com/AngelaFS/p/5894984.html