zoukankan      html  css  js  c++  java
  • 查看ORACLE各表空间使用情况

    --各表空间分配情况 
    select tablespace_name, sum(bytes) / 1024 / 1024
      from dba_data_files
     group by tablespace_name;
    
    --各表空间空闲情况
    select tablespace_name, sum(bytes) / 1024 / 1024
      from dba_free_space
     group by tablespace_name;
    
    --列表查看各表空间情况
    select a.tablespace_name, total, free, total - free used
      from (select tablespace_name, sum(bytes) / 1024 / 1024 total
              from dba_data_files
             group by tablespace_name) a,
           (select tablespace_name, sum(bytes) / 1024 / 1024 free
              from dba_free_space
             group by tablespace_name) b
     where a.tablespace_name = b.tablespace_name;

    手机扫一扫,欢迎关注公众号

    关注程序员成长

    成长的乐趣,在于分享!
    大龄程序员,一路走来,感慨颇多。闲暇时写写字,希望能给同行人一点帮助。
    本文版权归作者growithus和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    Java运行环境(win10)
    maven封装jar包遇到的问题
    eclipse安装STS遇到的问题
    Redis IO多路复用的理解
    操作系统文章推荐
    jdk1.8新特性
    Maven笔记
    博主推荐
    MySQL文章推荐
    多线程文章推荐
  • 原文地址:https://www.cnblogs.com/growithus/p/11012309.html
Copyright © 2011-2022 走看看