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 聯盟

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 连云港市| 榆林市| 双牌县| 平昌县| 华阴市| 利津县| 姚安县| 扶余县| 自贡市| 新平| 庆元县| 台山市| 红安县| 宝鸡市| 壤塘县| 潼关县| 巴中市| 敦煌市| 天等县| 洪江市| 潜山县| 莫力| 灵武市| 虞城县| 嘉定区| 搜索| 社旗县| 城步| 都昌县| 赤城县| 旬阳县| 淳安县| 东方市| 博湖县| 和平县| 上思县| 平乐县| 武功县| 青龙| 乾安县| 杭锦后旗|