zoukankan      html  css  js  c++  java
  • Oracle 查询表空间使用情况

    摘自博客:http://wwwdd2315.blog.163.com/blog/static/66661889201182711442660/

    感谢!

    通过查询dba_free_space表可以了解一个tablespace的空间使用情况。

    TABLESPACE_NAME:
        Name of the tablespace containing the extent
    FILE_ID:
        ID number of the file containing the extent
    BLOCK_ID:
        Starting block number of the extent
    BYTES:
        Size of the extent in bytes
    BLOCKS:
        Size of the extent in ORACLE block

    1。查询表空间的free space

    Sql代码 
      1. SQL> select  
      2.   2      tablespace_name,  
      3.   3      count(*) as extends,  
      4.   4      round(sum(bytes)/1024/1024, 2) as MB,  
      5.   5      sum(blocks) as blocks  
      6.   6  from dba_free_space group by tablespace_name;  
      7.   
      8. TABLESPACE    EXTENDS         MB     BLOCKS  
      9. ---------- ---------- ---------- ----------  
      10. UNDOTBS1           16     771.69      49388  
      11. SYSAUX             46       8.44        540  
      12. BLOBS             375     805.63      51560  
      13. USERS             645      67.69       4332  
      14. SYSTEM              1       4.75        304  
      15. INDX             1871    1071.56      68580  
      16. WCAUDIT             1     499.94      31996 
  • 相关阅读:
    从Unity3D编译器升级聊起Mono
    RxJava系列6(从微观角度解读RxJava源码)
    RxJava系列5(组合操作符)
    RxJava系列4(过滤操作符)
    RxJava系列3(转换操作符)
    RxJava系列2(基本概念及使用介绍)
    RxJava系列1(简介)
    给 Android 开发者的 RxJava 详解
    深入浅出RxJava就这一篇就够了
    android非法字符的判定、表情符号的判定
  • 原文地址:https://www.cnblogs.com/zhangyabin---acm/p/3374114.html
Copyright © 2011-2022 走看看