亚洲AV日韩AⅤ综合手机在线观看,激情婷婷久久综合色,欧美色五月婷婷久久,久久国产精品99久久人人澡

  • <abbr id="uk6uq"><abbr id="uk6uq"></abbr></abbr>
  • <tbody id="uk6uq"></tbody>
  • 表空間不足時Oracle管理Recyclebin

    時間:2024-08-30 21:12:57 Oracle認證 我要投稿
    • 相關推薦

    關于表空間不足時Oracle管理Recyclebin

      我們知道,在Oracle 10g中,drop table如果沒有加 purge選項.實際數(shù)據(jù)并沒有刪除,因而沒有釋放表空間.那么當被刪除的對象占用了所有空間時,會發(fā)生什么? 出門一起來看看!

      YXYUP@dbatest>selecttablespace_name,sum(bytes)/1024/1024 from dba_data_files where tablespace_name=’TBS’ group by tablespace_name;

      TABLESPACE_NAME SUM(BYTES)/1024/1024

      TBS 17

      Elapsed: 00:00:00.02

      YXYUP@dbatest>selectsegment_name,bytes/1024/1024,tablespace_name from user_segments;

      SEGMENT_NAME BYTES/1024/1024 TABLESPACE_NAME

      TEST_BAK 6 TBS

      TEST01 6 TBS

      Elapsed: 00:00:00.07

      YXYUP@dbatest>createtable test02 tablespace tbs as select * from dba_objects;

      create table test02 tablespace tbs as select * from dba_objects

      *

      ERROR at line 1:

      ORA-01652: unable to extend temp segment by 128 in tablespace TBS

      Elapsed: 00:00:00.73

      YXYUP@dbatest>droptable test01;

      Table dropped.

      Elapsed: 00:00:00.04

      YXYUP@dbatest>showrecyclebin;

      ORIGINAL NAME RECYCLEBIN NAME OBJECT TYPE DROP TIME

      TEST01 BIN$VPH4ibnKVd/gQAB/AQA0Nw==$0 TABLE 2008-08-21:14:56:55

      YXYUP@dbatest>

      YXYUP@dbatest>select* from tab;

      TNAME TABTYPE CLUSTERID

      BIN$VPH4ibnKVd/gQAB/AQA0Nw==$0 TABLE

      TEST_BAK TABLE

      Elapsed: 00:00:00.01

      YXYUP@dbatest>createtable test02 tablespace tbs as select * from dba_objects;

      Table created.

      Elapsed: 00:00:00.84

      YXYUP@dbatest>showrecyclebin;

      YXYUP@dbatest>select* from tab;

      TNAME TABTYPE CLUSTERID

      TEST_BAK TABLE

      TEST02 TABLE

      Elapsed: 00:00:00.01

      上面測試可以看出,當表空間空閑空間不足時,Oracle就會將recyclebin中的表給徹底刪除,然后騰出空間來放要創(chuàng)建的新對象.

      那么,如果recyclebin中有多個被drop的對象時,Oracle會怎么清理呢,是全部清除,還是怎樣? 通過下面的測試我們行到答案.

      YXYUP@dbatest>showrecyclebin;

      YXYUP@dbatest>select* from tab;

      TNAME TABTYPE CLUSTERID

      TEST_BAK TABLE

      TEST02 TABLE

      Elapsed: 00:00:00.01

      YXYUP@dbatest>droptable test02;

      Table dropped.

      Elapsed: 00:00:00.04

      YXYUP@dbatest>droptable test_bak;

      Table dropped.

      Elapsed: 00:00:00.02

      YXYUP@dbatest>select* from tab;

      TNAME TABTYPE CLUSTERID

      BIN$VPH4ibnLVd/gQAB/AQA0Nw==$0 TABLE

      BIN$VPH4ibnMVd/gQAB/AQA0Nw==$0 TABLE

      Elapsed: 00:00:00.01

      YXYUP@dbatest>showrecyclebin;

      ORIGINAL NAME RECYCLEBIN NAME OBJECT TYPE DROP TIME

      TEST02 BIN$VPH4ibnLVd/gQAB/AQA0Nw==$0 TABLE 2008-08-21:15:14:43

      TEST_BAK BIN$VPH4ibnMVd/gQAB/AQA0Nw==$0 TABLE 2008-08-21:15:14:51

      YXYUP@dbatest>createtable test01 tablespace tbs as select * from dba_objects;

      Table created.

      Elapsed: 00:00:00.79

      YXYUP@dbatest>select* from tab;

      TNAME TABTYPE CLUSTERID

      BIN$VPH4ibnMVd/gQAB/AQA0Nw==$0 TABLE

      TEST01 TABLE

      Elapsed: 00:00:00.01

      YXYUP@dbatest>flashbacktable TEST02 to before drop ;

      flashback table TEST02 to before drop

      *

      ERROR at line 1:

      ORA-38305: object not in RECYCLE BIN

      Elapsed: 00:00:00.00

      YXYUP@dbatest>flashbacktable TEST_BAK to before drop ;

      Flashback complete.

      Elapsed: 00:00:00.02

      YXYUP@dbatest>select* from tab;

      TNAME TABTYPE CLUSTERID

      TEST_BAK TABLE

      TEST01 TABLE

      Elapsed: 00:00:00.01

      通過上面測試可以看出.

      當recyclebin中有多個被刪除的同時,并在表空間不足以放下要創(chuàng)建的新對象時,Oracle會FIFO的方式從回收站中自動徹底刪除.

    【表空間不足時Oracle管理Recyclebin】相關文章:

    Oracle數(shù)據(jù)庫臨時表管理技巧06-15

    Oracle認證:Oracle避免全表掃描方式10-04

    Oracle認證:空間管理三個技巧05-13

    Oracle避免全表掃描方式10-22

    xp系統(tǒng)注冊表空間不足的解決方法是什么07-06

    Oracle重做日志文件管理技巧08-31

    Oracle認證:ORACLE綁定變量BINDPEEKING08-25

    Oracle認證:Oracle控制件文件修復07-27

    Oracle認證:Oracle內(nèi)存結(jié)構研究-PGA篇09-22

    電腦磁盤空間不足怎么辦09-08