zoukankan      html  css  js  c++  java
  • 查看表空间的sql语句

    select a.tablespace_name as 表空间,
           a.bytes / 1024 / 1024 as 总容量MB,
           (a.bytes - b.bytes) / 1024 / 1024 "使用容量MB",
           b.bytes / 1024 / 1024 "剩余容量MB",
           round(((a.bytes - b.bytes) / a.bytes) * 100, 2) "使用百分比"
      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

  • 相关阅读:
    MD5 Hashing in Java
    Caching in Presto
    ORC 文件存储格式
    Presto 性能优化点
    数据分页问题
    ES
    ES
    ES
    ES
    ES
  • 原文地址:https://www.cnblogs.com/guanghuiqq/p/2680051.html
Copyright © 2011-2022 走看看