Oracle 11g 新特性 -- DB_ULTRA_SAFE 參數 說明

來源:互聯網
上載者:User

一.DB_BLOCK_CHECKSUM 參數說明

在Oracle 10.2.0.3 之前:

DB_BLOCK_CHECKSUM有2個選項: TRUE 和 FALSE,預設值為TRUE。

在Oracle 10.2.0.3 中:

DB_BLOCK_CHECKSUM有3個選項:OFF | TYPICAL | FULL,預設為TYPICAL.

在Oracle 11g中:

DB_BLOCK_CHECKSUM有5個選項:OFF | FALSE | TYPICAL | TRUE | FULL,預設值為TYPICAL.

但是在Oracle 11g中新增了一個參數:DB_ULTRA_SAFE,其用來管理DB_BLOCK_CHECKSUM參數。 DB_ULTRA_SAFE參數在第二節說明。

關於Oracle 11g新增的參數,可以參考官網:

What's New in Oracle Database Reference?

http://docs.oracle.com/cd/E11882_01/server.112/e25513/whatsnew.htm

Oracle 11g 官網對DB_BLOCK_CHECKSUM 參數的說明:

DB_BLOCK_CHECKSUM determineswhether DBWn and the direct loader will calculate a checksum (anumber calculated from all the bytes stored in the block) and store it in thecache header of every data block when writing it to disk. Checksums areverified when a block is read - only if this parameter is TYPICAL or FULLand the last write of the block stored a checksum.

--DB_BLOCK_CHECKSUM 參數決定了DBWn進程和直接路徑讀取進程是否為塊計算checksum並將該checksum存放在每個資料區塊的cache header並寫入到磁碟中。當該資料區塊被讀取時,該checksum會受到驗證, 前提是DB_BLOCK_CHECKSUM 被設定為TYPICAL 或 FULL,且最近一次該塊的寫出中存有checksum。

In FULL mode,Oracle also verifies the checksum before a change application fromupdate/delete statements and recomputes it after the change is applied. Inaddition, Oracle gives every log block a checksum before writing it to thecurrent log.

--在FULL模式下,Oracle還會當塊要發生變化應用前對該塊驗證checksum,並會在DML update/insert/delete語句引起變化被應用到塊後再次計算該checksum。此外,Oracle會對寫入到當前redo記錄檔的每一個redo block計算checksum。

Starting withOracle Database 11g, most of the log block checksum is done by the generatingforeground processes, while the LGWR performs the rest of the work, for betterCPU and cache efficiency. Prior to Oracle Database 11g, the LGWR solelyperformed the log block checksum.

If thisparameter is set to OFF, DBWn calculates checksums only forthe SYSTEM tablespace, but not for user tablespaces. In addition, nolog checksum is performed when this parameter is set to OFF.

--若該參數設定為OFF,則 DBWn進程僅為system資料表空間上的對象計算checksum, 而對於普通資料表空間不計算。

Checksums allowOracle to detect corruption caused by underlying disks, storage systems, or I/Osystems. If set to FULL, DB_BLOCK_CHECKSUM also catchesin-memory corruptions and stops them from making it to the disk. Turning onthis feature in TYPICAL mode causes only an additional 1% to 2%overhead. In the FULL mode it causes 4% to 5% overhead. Oracle recommendsthat you set DB_BLOCK_CHECKSUM to TYPICAL.

--checksum讓Oracle具備檢測由底層磁碟、儲存子系統、IO子系統引起的壞塊。若設定為FULL, 則DB_BLOCK_CHECKSUM還會捕捉記憶體訛誤並避免將存在邏輯訛誤的塊被寫入到磁碟上。設定DB_BLOCK_CHECKSUM為TYPICAL模式可能引起1%-2%的效能損耗,設定為FULL mode可能引起4%-5%的效能損耗。Oracle推薦使用者佈建DB_BLOCK_CHECKSUM為TYPICAL。

For backwardcompatibility the use of TRUE (implying TYPICAL)and FALSE (implying OFF) values is preserved.

  • 1
  • 2
  • 下一頁

聯繫我們

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