Oracle並行交易回復相關參數及視圖

來源:互聯網
上載者:User

標籤:

/******相關參數****/
fast_start_parallel_rollback
1.取值有3種:false,low,high
2.各值含義:false  ---禁用並行復原功能
                 low    ---並行復原最大為2*cpu_count
                 high   ---並行復原最大為4*cpu_count
3.此參數適用於system crash之前未執行完畢的並行dml或並行ddl
4.決定並行復原的並行度  
5.此參數應用前滾完成之後復原階段即對於undo block操作
 

/******相關視圖****/ 
v$fast_start_servers
1.查看實行並行事務恢複的恢複子進程的工作狀態
2.子進程狀態:idle,recovering
   已應用的undo block個數
   事務id
   子進程的進程id  
   
v$fast_start_transactions
查看恢複的進度幾個重要的列:
usn  --恢複事務的undo segment number
state ---恢複事務的狀態:即正在恢複,恢複完成,未恢複
pid   ---恢複事務的進程id
udnoblocksdone --已應用的undo block個數
undoblockstotal --總共的undo block個數
xid  ---事務id
parentusn --並行dml事務的父事務的undo segment number    


/******相關sql****/
select 
   undoblockstotal "Total",
   undoblocksdone "Done",
   undoblockstotal-undoblocksdone "ToDo",
   to_char(sysdate,‘yyyy-mm-dd hh24:mi:ss‘)
from v$fast_start_transactions;

 

Oracle並行交易回復相關參數及視圖

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.