zoukankan      html  css  js  c++  java
  • 模糊查询SSD_DATA盘谁使用率高?

    select sum(bytes / 1024 / 1024 / 1024),
           d.owner,
           d.segment_name,
           d.segment_type
      from dba_segments d
     where d.owner in
           (select c.username
              from dba_users c
             where c.default_tablespace in
                   (select distinct a.TABLESPACE_NAME
                      from dba_data_files a
                     where file_name like '+SSD_DATA%')
               and c.account_status = 'OPEN'
               and c.default_tablespace not in ('USERS', 'SYSAUX', 'SYSTEM')
               and c.username not in ('OGG', 'QUERY'))
     group by d.owner, d.segment_name, d.segment_type
     order by 1 desc

  • 相关阅读:
    2019年计划书单
    redis 分布式锁实现
    filter-grok,dissect匹配数据
    nohup-长期运行进程
    filter
    kill
    watch
    free
    jar
    tree
  • 原文地址:https://www.cnblogs.com/ss-33/p/8601624.html
Copyright © 2011-2022 走看看