oracle 清空臨時(shí)表空間

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

          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)臨時(shí)表空間

          3.alter database default temporary tablespace temp2;--改變?nèi)笔∨R時(shí)表空間 為剛剛創(chuàng)建的新臨時(shí)表空間temp2

          4.drop tablespace temp including contents and datafiles;--刪除原來(lái)臨時(shí)表空間

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

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

          7.drop tablespace temp2 including contents and datafiles;--刪除中轉(zhuǎn)用臨時(shí)表空間

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

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

          評(píng)論

          # re: oracle 清空臨時(shí)表空間[未登錄](méi) 2008-03-18 21:29 Jason

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

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

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


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


          網(wǎng)站導(dǎo)航:
           
          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          導(dǎo)航

          統(tǒng)計(jì)

          常用鏈接

          留言簿(8)

          隨筆分類(lèi)(40)

          隨筆檔案(40)

          文章分類(lèi)(33)

          文章檔案(34)

          相冊(cè)

          BLOG 聯(lián)盟

          搜索

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 长丰县| 万盛区| 许昌县| 镇安县| 南城县| 平凉市| 万安县| 攀枝花市| 政和县| 阜新| 姜堰市| 大冶市| 和田县| 新蔡县| 江北区| 扶绥县| 囊谦县| 永德县| 溆浦县| 青州市| 赣州市| 阜新市| 乐亭县| 宁晋县| 曲周县| 凤凰县| 阿拉尔市| 福建省| 子洲县| 郎溪县| 江油市| 长葛市| 师宗县| 东乌珠穆沁旗| 交城县| 遵义县| 景泰县| 盱眙县| 巫山县| 夹江县| 开江县|