v$waitstat 和 save undo segment header /save undo block

來源:互聯網
上載者:User

比如等待中也有
  
SQL> select * from v$waitstat;
  
CLASS                   COUNT       TIME
------------------ ---------- ----------
data block                  2          1
sort block                  0          0
save undo block             0          0
segment header              1          0
save undo header            0          0
free list                   0          0
extent map                  0          0
1st level bmb               0          0
2nd level bmb               0          0
3rd level bmb               0          0
bitmap block                0          0
  
CLASS                   COUNT       TIME
------------------ ---------- ----------
bitmap index block          0          0
file header block           0          0
unused                      0          0
system undo header          0          0
system undo block           0          0
undo header                 0          0
undo block                  0          0
  
已選擇18行。
  
SQL>  
  
在 x$bh.class 中  
5 : save  undo  segment  header  
3:save undo block
  
其表示的是defferd rollback segment 的 block (參考oracle  concepts)
  
SQL> select count(*) from x$bh where class = 3;
  
   COUNT(*)
----------
          0
  
SQL> select count(*) from x$bh where class = 5;
  
   COUNT(*)
----------
          0
  
SQL> delete rainy.t where rownum < 11;
  
已刪除10行。
  
SQL> alter tablespace users offline;
  
資料表空間已更改。
  
SQL>  select count(*) from x$bh where class = 5;
  
   COUNT(*)
----------
          1
  
SQL>  select count(*) from x$bh where class = 3;
  
   COUNT(*)
----------
          1
  
SQL>  alter tablespace users online;
  
資料表空間已更改。
  
SQL> select count(*) from rainy.t;
  
   COUNT(*)
----------
         90
  
SQL>  select count(*) from x$bh where class = 5;
  
   COUNT(*)
----------
          0
  
SQL>  select count(*) from x$bh where class = 3;
  
   COUNT(*)
----------
          0
  
SQL>

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.