RMAN備份filesperset用法

來源:互聯網
上載者:User

用filesperset控製備份集的尺寸

當指定filesperset參數時,rman比較filesperset與自動計算出來的值(對每個已指派通道的檔案數目)

並取其中較小的那個值來保證所有的通道被使用。

如果指定或者通過組合backupSpec語句暗示的檔案數目比filesperset要大,

那麼rman建立多個備份組來維護正確的速率(ratio);

如果沒有指定filesperset,rman比較計算出來的值(檔案數目除以已指派的通道)和預設值64,並取其中較小的那個值來保證所有通道可用。

Rman通常嘗試建立足夠的備份組以使所有已指派的通道有事可做。

一個例外是通道比要備份的檔案還要多

allocate channel 提供備份並發度,若平均檔案數<filesperset則會按照 平均檔案數/備份組 進行備份,若超過則按照filesperset的數量產生備份組;例如:

1、run {
allocate channel ch1 type disk;
allocate channel ch2 type disk;
backup datafile 3,4,5,6 filesperset 3;
release channel ch1;
release channel ch2;
}
平均數是 4(檔案數)/2(channel數) = 2 ,小於filesperset 3,則產生2個備份組,每個備份組包含2個資料檔案

2、run {
allocate channel ch1 type disk;
allocate channel ch2 type disk;
backup datafile 3,4,5,6 filesperset 1;
release channel ch1;
release channel ch2;
}

則產生4個備份組,每個包含一個資料檔案

聯繫我們

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