oracle 清空臨時表空間

          清空臨時表空間
          1.startup --啟動數據庫

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

          3.alter database default temporary tablespace temp2;--改變缺省臨時表空間 為剛剛創建的新臨時表空間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; --重新創建臨時表空間

          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】中文站 閱讀(2971) 評論(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的預設還要再改一遍嗎?

          謝謝!  回復  更多評論   


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


          網站導航:
           
          <2008年3月>
          2425262728291
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345

          導航

          統計

          常用鏈接

          留言簿(8)

          隨筆分類(40)

          隨筆檔案(40)

          文章分類(33)

          文章檔案(34)

          相冊

          BLOG 聯盟

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 临武县| 肃南| 敦煌市| 凤山市| 息烽县| 乾安县| 札达县| 周宁县| 上饶市| 九龙县| 镇安县| 浦东新区| 礼泉县| 兴文县| 庆云县| 确山县| 凤山县| 汨罗市| 连城县| 乌拉特前旗| 襄樊市| 东明县| 芜湖县| 哈尔滨市| 湖南省| 抚松县| 六枝特区| 长泰县| 正宁县| 瓦房店市| 云浮市| 辽源市| 衡阳县| 西吉县| 永春县| 栖霞市| 迭部县| 亚东县| 安陆市| 会东县| 波密县|