zoukankan      html  css  js  c++  java
  • 表空间、数据文件对应关系

    select t2.ts#,a.tablespace_name,a.file_id, a.file_name,a.bytes / 1024 / 1024 as total_mb,
           t.fee_mb,
           a.autoextensible
      from sys.dba_data_files a
      left join (select ts#,name from v$tablespace )  t2
      on a.tablespace_name=t2.name
      left join (select b.tablespace_name,b.file_id,sum(b.bytes)/1024/1024 as fee_mb from sys.dba_free_space b group by  b.tablespace_name,b.file_id) t
        on a.file_id = t.file_id
        where a.tablespace_name='TEST0309';

    select t2.ts#,a.tablespace_name,a.file_id, a.file_name,a.bytes / 1024 / 1024 as total_mb,
           nvl(t.fee_mb,0),
           a.autoextensible
      from sys.dba_data_files a
      left join (select ts#,name from v$tablespace )  t2
      on a.tablespace_name=t2.name
      left join (select b.tablespace_name,b.file_id,sum(b.bytes)/1024/1024 as fee_mb from sys.dba_free_space b group by  b.tablespace_name,b.file_id) t
        on a.file_id = t.file_id
        where a.tablespace_name='TEST0312';

    select t2.ts#,a.tablespace_name,a.file_id, a.file_name,a.bytes / 1024 / 1024 as total_mb,
           nvl(t.free_mb,0) free_mb,
           a.autoextensible
      from sys.dba_data_files a
      left join (select ts#,name from v$tablespace )  t2
      on a.tablespace_name=t2.name
      left join (select b.tablespace_name,b.file_id,sum(b.bytes)/1024/1024 as free_mb from sys.dba_free_space b group by  b.tablespace_name,b.file_id) t
        on a.file_id = t.file_id
        where a.tablespace_name='TEST0319';

  • 相关阅读:
    Facebook发布神经蛋分离法,可从嘈杂环境中提取音视频
    前线观察 | AWS re:Invent 2018见闻实录
    SSO
    8-5 Navicat工具与pymysql模块
    saltstack
    nginx 集群介绍
    Docker 持久化存储
    Docker 多机网络
    《深入理解JAVA虚拟机》笔记1
    jquery 学习日记之选择器
  • 原文地址:https://www.cnblogs.com/iyoume2008/p/6526878.html
Copyright © 2011-2022 走看看