oracle_常用命令(表空间查询)
---查询表空间 对应的物理文件,名称 ,大小 ,已用的,利用率 SELECT B.FILE_NAME "FILE_NAME", B.TABLESPACE_NAME "TABLESPACE_NAME", B.BYTES / 1024 / 1024 "SIZE_M", (B.BYTES - SUM(NVL(A.BYTES, 0))) / 1024 / 1024 "USED_M", SUBSTR((B.BYTES - SUM(NVL(A.BYTES, 0))) / (B.BYTES) * 100, 1, 5) "UTILIZATION" FROM DBA_FREE_SPACE A, DBA_DATA_FILES B WHERE A.FILE_ID = B.FILE_ID GROUP BY B.TABLESPACE_NAME, B.FILE_NAME, B.BYTES ORDER BY B.TABLESPACE_NAME
create by cphmvp
email:cphmvp@163.com
爬虫技术交流_crawler QQ群 :167047843