zoukankan      html  css  js  c++  java
  • Oracle数据库top10物理段

    select owner, name, type, mega, tbs
      from (select owner,
                   case
                     when segment_type = 'LOBSEGMENT' then
                      logical_name
                     else
                      segment_name
                   end as name,
                   segment_type as type,
                   round(bytes / 1024 / 1024) as mega,
                   tablespace_name as tbs
              from (select a.owner,
                           a.segment_name,
                           a.segment_type,
                           b.table_name || '.' || b.column_name as logical_name,
                           bytes,
                           a.tablespace_name
                      from dba_segments a, dba_lobs b
                     where a.owner = b.owner(+)
                       and a.segment_name = b.segment_name(+)
                       and a.bytes > 1020 * 1024 * 1024)
             order by bytes desc);

  • 相关阅读:
    不能创建会计分录
    java反射,代码优化
    mybatis$和#的区别
    开发中积累的单词800
    mybatis递归,一对多代码示例
    mysql树形结构递归查询
    redis实现分布式锁工具类 灰常好用
    js代码小优化
    spring源码分析 contextConfigLocation属性的位置
    data:image/png;base64这什么玩意
  • 原文地址:https://www.cnblogs.com/james1207/p/3313123.html
Copyright © 2011-2022 走看看