ORACLE之表空间
ORACLE之表空间SELECT DF.TABLESPACE_NAME "表空间名",TOTALSPACE "总空间G",FREESPACE "剩余空间G",ROUND((1 - FREESPACE / TOTALSPACE) * 100, 2) "使用率%"FROM (SELECT TABLESPACE_NAME,ROUND(SUM(BYTES) / 1024 / 1024 / 1024, 2) TOTALSPACEFROM DBA_DATA_FILESGROUP BY TABLESPACE_NAME) DF,(SELECT TABLESPACE_NAME,ROUND(SUM(BYTES) / 1024 / 1024 / 1024, 2) FREESPACEFROM DBA_FREE_SPACEGROUP BY TABLESPACE_NAME) FSWHERE DF.TABLESPACE_NAME = FS.TABLESPACE_NAME;