oracle 清空臨時表空間

          清空臨時表空間
          1.startup --啟動數(shù)據庫

          2.create temporary tablespace TEMP2 TEMPFILE '/home2/oracle/oradata/sysmon/temp02.dbf' SIZE 512M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED; --創(chuàng)建中轉臨時表空間

          3.alter database default temporary tablespace temp2;--改變缺省臨時表空間 為剛剛創(chuàng)建的新臨時表空間temp2

          4.drop tablespace temp including contents and datafiles;--刪除原來臨時表空間

          5.create temporary tablespace TEMP TEMPFILE '/home2/oracle/oradata/sysmon/temp01.dbf' SIZE 512M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED; --重新創(chuàng)建臨時表空間

          6.alter database default temporary tablespace temp;--重置缺省臨時表空間為新建的temp表空間

          7.drop tablespace temp2 including contents and datafiles;--刪除中轉用臨時表空間

          8.alter user roll temporary tablespace temp; --重新指定用戶表空間為重建的臨時表空間

          posted on 2007-01-09 16:40 【Xine】中文站 閱讀(2964) 評論(1)  編輯  收藏 所屬分類: Oracle Elite

          評論

          # re: oracle 清空臨時表空間[未登錄] 2008-03-18 21:29 Jason

          實在很感謝站長高手的如此詳盡的教學! 讓小弟受用無窮~
          順便請教第8點
          alter user roll temporary tablespace temp;

          不是已經alter database default temporary tablespace temp;將整個預設值改回了嗎?
          那user的預設還要再改一遍嗎?

          謝謝!  回復  更多評論   


          只有注冊用戶登錄后才能發(fā)表評論。


          網站導航:
           
          <2025年5月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          導航

          統(tǒng)計

          常用鏈接

          留言簿(8)

          隨筆分類(40)

          隨筆檔案(40)

          文章分類(33)

          文章檔案(34)

          相冊

          BLOG 聯(lián)盟

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 遂川县| 临湘市| 万山特区| 沙坪坝区| 长顺县| 盖州市| 运城市| 德阳市| 叙永县| 普定县| 枣庄市| 瑞昌市| 嵊州市| 南投市| 苍南县| 弋阳县| 卢龙县| 茶陵县| 江西省| 托克逊县| 凤凰县| 孟州市| 若羌县| 绥芬河市| 和平县| 宝坻区| 武城县| 开封市| 比如县| 泾阳县| 灵寿县| 合作市| 疏附县| 纳雍县| 郓城县| 石狮市| 新平| 小金县| 湖北省| 凌源市| 读书|