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

      1 使用dba账号在plsql developer上登录
      2 使用命令查询:

    select a.tablespace_name tablespace_name
    ,nvl(ceil((1 - b.free / a.total) * 100), 100) "usage_of_tablespace%"
    ,nvl(b.free, 0) "left_space(M)"
    ,c.extent_management "Extent_management"
    from (select tablespace_name, sum(nvl(bytes, 0)) / 1024 / 1024 total
    from dba_data_files
    group by tablespace_name) a
    ,(select tablespace_name, sum(nvl(bytes, 0)) / 1024 / 1024 free
    from dba_free_space
    group by tablespace_name) b
    ,dba_tablespaces c
    where a.tablespace_name = c.tablespace_name
    and c.tablespace_name = b.tablespace_name(+);


    3 结果:


  • 相关阅读:
    php2
    11-14php
    三层嵌套
    常见的浏览器兼容
    css中的一些问题及解决方法
    css
    html
    测试题
    正则表达式
    Math对象
  • 原文地址:https://www.cnblogs.com/t0404/p/10290952.html
Copyright © 2011-2022 走看看