夢幻之旅

          DEBUG - 天道酬勤

             :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            671 隨筆 :: 6 文章 :: 256 評論 :: 0 Trackbacks
          select tablespace_name,sum(bytes)/1024/1024/1024 GB
          from dba_data_files group by tablespace_name
          union all
          select tablespace_name,sum(bytes)/1024/1024/1024 GB
          from dba_temp_files group by tablespace_name order by GB;


          select 
          b.
          file_id file_id
          b.tablespace_name, 
          b.bytes, 
          b.maxbytes,
          (b.bytes
          -sum(nvl(a.bytes,0))) used, 
          sum(nvl(a.bytes,0)) unused, 
          sum(nvl(a.bytes,0))/(b.bytes)*100 percentage 
          from dba_free_space a,dba_data_files b 
          where a.file_id=b.file_id 
          group by b.tablespace_name,b.file_id,b.bytes,b.maxbytes
          order by b.file_id;
          posted on 2011-04-19 13:09 HUIKK 閱讀(205) 評論(0)  編輯  收藏 所屬分類: DataBase
          主站蜘蛛池模板: 邵阳市| 临猗县| 孝感市| 萨迦县| 进贤县| 朝阳区| 乐昌市| 赤城县| 安吉县| 平顶山市| 遂溪县| 旺苍县| 申扎县| 天水市| 白沙| 华宁县| 遂宁市| 肥东县| 唐海县| 临潭县| 那坡县| 东台市| 抚宁县| 双峰县| 农安县| 梅州市| 临江市| 邛崃市| 政和县| 禄丰县| 化隆| 马鞍山市| 新闻| 洮南市| 祁门县| 呈贡县| 富民县| 高尔夫| 天祝| 吐鲁番市| 民乐县|