国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

如何查看各個表空間占用磁盤情況

2024-07-21 02:09:16
字體:
來源:轉載
供稿:網友
如何查看各個表空間占用磁盤情況?


軟件環境: 
1、windows nt4.0+oracle 8.0.4
2、oracle安裝路徑為:c:/orant

sql語句: 

      /*     中文環境    */

     col 表空間名 format a20;

     select 
     b.file_id  文件id號,
     b.tablespace_name  表空間名,
     b.bytes  字節數,
     (b.bytes-sum(nvl(a.bytes,0)))  已使用,
     sum(nvl(a.bytes,0))  剩余空間,
     sum(nvl(a.bytes,0))/(b.bytes)*100  剩余百分比 
     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 
     order by b.file_id;


    /*    英文環境    */

               col tablespace_name format a20;

     select 
     b.file_id  file_id,
     b.tablespace_name  tablespace_name,
     b.bytes  bytes,
     (b.bytes-sum(nvl(a.bytes,0)))  used,
     sum(nvl(a.bytes,0))  free,
     sum(nvl(a.bytes,0))/(b.bytes)*100         percent
     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 
     order by b.file_id;


     



 文件id號 表空間名                          字節數    已使用  剩余空間 剩余百分比
--------- ------------------------------ --------- --------- --------- ----------
        1 system                          20971520   9971712  10999808  52.451172
        2 user_data                        3145728    432128   2713600  86.263021
        3 rollback_data                    5242880   1640448   3602432  68.710938
        4 temporary_data                   2097152      2048   2095104  99.902344
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 南江县| 吴桥县| 建昌县| 蓬溪县| 昌平区| 新巴尔虎左旗| 渑池县| 巢湖市| 秦安县| 山东省| 上蔡县| 左云县| 潢川县| 华阴市| 汉中市| 遂宁市| 绥化市| 南阳市| 塔城市| 昭通市| 永州市| 安徽省| 上蔡县| 墨竹工卡县| 任丘市| 南阳市| 上饶市| 桓仁| 淅川县| 华蓥市| 加查县| 炉霍县| 临城县| 右玉县| 哈尔滨市| 辽阳市| 葵青区| 西充县| 南京市| 原平市| 绥阳县|