oracle 清空臨時表空間

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

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

          3.alter database default temporary tablespace temp2;--改變?nèi)笔∨R時表空間 為剛剛創(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;--刪除中轉(zhuǎn)用臨時表空間

          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

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

          不是已經(jīng)alter database default temporary tablespace temp;將整個預(yù)設(shè)值改回了嗎?
          那user的預(yù)設(shè)還要再改一遍嗎?

          謝謝!  回復(fù)  更多評論   


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


          網(wǎng)站導(dǎo)航:
           
          <2008年3月>
          2425262728291
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345

          導(dǎo)航

          統(tǒng)計

          常用鏈接

          留言簿(8)

          隨筆分類(40)

          隨筆檔案(40)

          文章分類(33)

          文章檔案(34)

          相冊

          BLOG 聯(lián)盟

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 九江县| 凌海市| 惠州市| 济宁市| 泽普县| 云南省| 麻江县| 新邵县| 泰安市| 峨山| 巴南区| 石城县| 酒泉市| 临朐县| 米脂县| 牡丹江市| 长白| 法库县| 吉首市| 德格县| 革吉县| 阿勒泰市| 宁国市| 济源市| 台前县| 玉田县| 个旧市| 天全县| 施秉县| 贞丰县| 大冶市| 亳州市| 平乡县| 富宁县| 营口市| 开江县| 临海市| 天等县| 新绛县| 始兴县| 周至县|