【翻譯自mos文章】使用asm來部署 超大資料庫(10TB到PB 範圍)--針對oracle 10G,asm10tb

來源:互聯網
上載者:User

【翻譯自mos文章】使用asm來部署 超大資料庫(10TB到PB 範圍)--針對oracle 10G,asm10tb


使用asm來部署 超大資料庫(10TB到PB 範圍)

參考原文:
Deployment of very large databases (10TB to PB range) with Automatic Storage Management (ASM) (Doc ID 368055.1)


範圍:
本文適用於在所有平台上的asm配置,包括使用rac 和單一實例 環境。
本文適用於超大資料庫的建立,並且該資料庫會增長到超過10TB層級。


挑戰:
asm 中繼資料存放區

解決方案:

au(配置單位) 是asm磁碟組中的基本的分配單位。預設情況下,asm au的大小被設定為1MB

asm data extents 裸裝置,該裸裝置來存放asm file的內容。
在oracle database 10g裡邊,每一個data extent 是一個單獨的au(配置單位)
由於這個extent 和au 的  1對1的映射(map)關係,在一個超大的資料庫中,一個asm file extent map 可以增長到GB。在這個情況下,記憶體使用量和開啟檔案的效能上,效率是及其低下的。

asm 提供了2個隱含參數,這兩個參數允許你建立au大小為16MB 和 fine grain striping 大小為1MB(之前為128KB)  的 asm 磁碟組
這減少extent map size 到原來的1/16.  au 參數只能用在磁碟組 建立的時候。當一個磁碟組被建立後,你不能改變這個磁碟組的au的大小

為了改變au size(也就是data extent size),你必須reset 下面的asm 隱含參數:從1MB改為16MB,fine grain stripe size 改為1MB
asm執行個體必須被關閉,_asm_ausize and _asm_stripesize 必須在asm執行個體的init.ora參數檔案中被重設(reset),然後asm執行個體被重啟,以繼承該參數的新值。
o _asm_ausize=16777216
o _asm_stripesize=1048576
--->注意:以上值的單位為Byte

你必須修改asm file template ,為所有的file types 設定 stripe type 為‘FINE’,以使用1MB的striping。
這必須在asm diskgoup 被建立完之後做。


為了讓這兩個參數值生效,asm執行個體必須被重啟。

當設定了這個兩個隱含參數並重啟了asm 執行個體之後,任何被建立的asm 磁碟組將會使用新的au size 和FINE  stripe size

為了在建立asm 磁碟組時,使用正常的1MB au size 和 128K FINE stripe size,這兩個隱含參數應該被移除並且asm 需要被重啟。


例子:
下面的例子建立 了一個au size(即:data extents size ) 為16MB的asm 磁碟組,並且對所有的datafile 來說,FINE striping size 為1MB

1. 關閉 asm 執行個體

2. 在asm 的init.ora檔案中添加如下參數:
   _asm_ausize=16777216
   _asm_stripesize=1048576
3.重啟asm 執行個體。

4.建立一個磁碟組:
CREATE DISKGROUP diskgroup_name disk '/devices/diska1','/devices/diska2';

5. 將all asm file 模板 改為 FINE grained:
   o ALTER DISKGROUP diskgroup_name ALTER TEMPLATE <tmpl> ATTRIBUTES (FINE);
   o Repeat this command for all ASM file types. Attributes types are listed
     below:
   o CONTROLFILE, DATAFILE, ONLINELOG, ARCHIVELOG, TEMPFILE, BACKUPSET,
     PARAMETERFILE, DATAGUARDCONFIG, FLASHBACK, CHANGETRACKING, DUMPSET,
     XTRANSPORT, AUTOBACKUP


16MB的 ausize 和  1MB的FINE grain striping 能有效提供 1MB的 data striping ,同時,降低了asm file extent的過載。
這個配置 能在開啟 asm file時更快,並且更有效支援10TB 到PB 範圍內的asm database

注意:
Apply the fix for Bug 5100163 in 10.2.0.4

This patch should be applied if you have created ASM Diskgroups with the AU size greater than 1MB and have fewer than 3585 user files.
The following command must be ran on each Diskgroup after applying the patch:
        ALTER DISKGROUP <DG_NAME> CHECK ALL REPAIR


 




相關文章

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.