1. <ul id="0c1fb"></ul>

      <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
      <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区

      RELATEED CONSULTING
      相關(guān)咨詢
      選擇下列產(chǎn)品馬上在線溝通
      服務(wù)時(shí)間:8:30-17:00
      你可能遇到了下面的問題
      關(guān)閉右側(cè)工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
      使用spool輸出csv格式查看系統(tǒng)表空間使用情況

      SET SPOOL ON pre off entmap off

      我們提供的服務(wù)有:網(wǎng)站建設(shè)、做網(wǎng)站、微信公眾號(hào)開發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、海湖新ssl等。為上千余家企事業(yè)單位解決了網(wǎng)站和推廣的問題。提供周到的售前咨詢和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的海湖新網(wǎng)站制作公司

      SET ECHO OFF

      SET TRIMOUT OFF

      set feedback off

      set heading on

      set colsep ,

      set trimspool on

      set headsep off

      set numw 10

      set linesize 200

      set pagesize 10000

      col tablespace_name format a15

      col total_space format a10

      col free_space format a10

      col used_space format a10

      col used_rate format 99.99

      spool /home/oracle/test.csv

      select a.tablespace_name,a.total_space_Mb||'m' total_space,b.free_space_Mb||'m'

      free_space,a.total_space_Mb-b.free_space_Mb||'m' used_space,

      (1-(b.free_space_Mb/a.total_space_Mb))*100 used_rate,a.total_blocks,b.free_blocks from

      (select tablespace_name,sum(bytes)/1024/1024 total_space_Mb,sum(blocks) total_blocks from dba_data_files

      group by tablespace_name) a,

      (select tablespace_name, sum((bytes)/1024/1024) free_space_Mb,sum(blocks) free_blocks from dba_free_space

      group by tablespace_name) b

      where a.tablespace_name=b.tablespace_name order by used_rate desc;

      spool off

      注(SET ECHO OFF不顯示終端輸入的start、@、@@等執(zhí)行腳本命令、SET TERMOUT OFF在spool的時(shí)候結(jié)果不在終端顯示、SET TRIMOUT OFF刪除尾部空格)

      結(jié)果如下:

       使用spool輸出csv格式查看系統(tǒng)表空間使用情況



      更多Oracle精彩內(nèi)容 請(qǐng)關(guān)注我:
       使用spool輸出csv格式查看系統(tǒng)表空間使用情況 


      本文名稱:使用spool輸出csv格式查看系統(tǒng)表空間使用情況
      瀏覽路徑:http://www.ef60e0e.cn/article/jhgesc.html
      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区
      1. <ul id="0c1fb"></ul>

        <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
        <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

        太谷县| 浦城县| 潼南县| 九龙县| 安乡县| 武夷山市| 凤山市| 济宁市| 水富县| 澜沧| 宁津县| 冀州市| 兴安县| 山阳县| 兴宁市| 渭源县| 朝阳县| 莱州市| 宜丰县| 蒙阴县| 九江市| 利津县| 南开区| 武邑县| 隆安县| 兴文县| 凌云县| 灯塔市| 都兰县| 临朐县| 旬阳县| 卢湾区| 天水市| 秦安县| 博客| 汉中市| 建宁县| 贺兰县| 石门县| 大田县| 大埔区|