【正文】
CS 和GES。 GCS 負責數(shù)據(jù)庫在實例間的傳遞,GES 負責鎖管理The following resource information is available in GRD:* Data Block Addresses (DBA). This is the address of the block being modified.* Location of most current version of the data block. This exists only if multiple nodes share the data block. * Modes of the data blocks ((N)Null, (S)Shared, (X)Exclusive ).* The Roles of the data blocks (local or global). This indicates the role in which the data block is being held by the instance.* SCN ?System Change Number.* Image of the Data Block ?it could be past image or current image. Current image represents the copy of the block held by the current instance. Past image represents the global dirty data block image maintained in the cache.These row locks or rowlevel locks are stored in the block, and each lock refers to the global transaction lock.Oracle 集群需要存儲的軟件和數(shù)據(jù) 項目 內(nèi)容 最少磁盤空間 Clusterware 軟件 集群軟件 500M(安裝完成后不變) voting disk(表決磁盤) 記錄集群節(jié)點信息 20M OCR(Oracle 集群注冊) 存儲集群配置信息 100M Oracle 數(shù)據(jù)庫軟件 數(shù)據(jù)庫軟件 (安裝完成后不變) RAC 數(shù)據(jù)庫 存儲所有數(shù)據(jù)庫文件 (使用過程中不斷增加) Recovery File(恢復文件) 快速恢復數(shù)據(jù) 2G Oracle 集群中各部分的存儲機制(非第三方集群文件系統(tǒng)) 項目 存儲系統(tǒng) 存儲位置 Clusterware 軟件 NFS(要求NAS設備)、extext3 等本地文件系統(tǒng) 本地磁盤、網(wǎng)絡磁盤(NFS) voting disk OCFSRaw device、NFS 共享磁盤、網(wǎng)絡磁盤(NFS) OCR OCFSRaw device、NFS 共享磁盤、網(wǎng)絡磁盤(NFS) 數(shù)據(jù)庫軟件 OCFS2(共享)、NFS(網(wǎng)絡)、extext3 等本地文件系統(tǒng) 本地磁盤、網(wǎng)絡磁盤(NFS)、共享磁盤(OCFS2) RAC 數(shù)據(jù)庫 OCFSASM、Raw device、NFS 共享磁盤、網(wǎng)絡磁盤(NFS) 恢復文件 OCFSASM、NFS 共享磁盤、網(wǎng)絡磁盤(NFS) 從存儲位置中可以看出,所有的內(nèi)容均可使用網(wǎng)絡磁盤,但是網(wǎng)絡磁盤要求有 NAS 設備。如果不使用 NAS 設備,除軟件外,其它的數(shù)據(jù)都必須存儲在共享磁盤上。對于 Oracle 數(shù)據(jù)庫軟件,如果要存儲在共享磁盤上(所有服務器共享一個 Oracle Home),需要使用 OCFS2 文件系統(tǒng)。 Clusterware 和 Oracle 數(shù)據(jù)庫存儲選項 存儲選項 支持的文件類型 Clusterware 數(shù)據(jù)庫 恢復文件 ASM 否 是 是 OCFS2 是 是 是 Raw Device 是 是 否 NFS 是 是 是 從上表中可以看出,想要使用單一文件系統(tǒng),必須使用 OCFS2 或 NFS 文件系統(tǒng)。但是,Oracle 10g 提供了非常方便的存儲管理系統(tǒng) ASM,因此,大多數(shù)情況下建議使用 OCFS2 來存儲 Clusterware 的數(shù)據(jù)和 Oracle 數(shù)據(jù)庫軟件,使用 ASM 來存儲數(shù)據(jù)庫文件。 綜上所述,在 Linux(x86)上安裝 Oracle 集群,推薦采用以下幾種策略之一: (1)將 Oracle 數(shù)據(jù)庫軟件安裝在本地磁盤(每個節(jié)點上一個拷貝),使用裸設備來存儲 Clusterware ,使用 ASM 來存儲數(shù)據(jù)庫和恢復文件。 項目 存儲系統(tǒng) 存儲位置 Clusterware 軟件 extext3 本地磁盤 voting disk Raw device 共享磁盤 OCR Raw device 共享磁盤 數(shù)據(jù)庫軟件 extext3 本地磁盤 RAC 數(shù)據(jù)庫 ASM 共享磁盤 恢復文件 ASM 共享磁盤 (2)數(shù)據(jù)全部使用 OCFS2 來存儲,并將 Oracle 數(shù)據(jù)庫軟件安裝在 OCFS2 上(所有節(jié)點共享一個 Oracle Home) 項目 存儲系統(tǒng) 存儲位置 Clusterware 軟件 extext3 本地磁盤 voting disk OCFS2 共享磁盤 OCR OCFS2 共享磁盤 數(shù)據(jù)庫軟件 OCFS2 共享磁盤 RAC 數(shù)據(jù)庫 OCFS2 共享磁盤 恢復文件 OCFS2 共享磁盤 (3)將 Oracle 數(shù)據(jù)庫軟件安裝在共享磁盤上(所有節(jié)點共享一個 Oracle Home),使用 ASM 存儲恢復文件和數(shù)據(jù)庫。 項目 存儲系統(tǒng) 存儲位置 Clusterware 軟件 extext3 本地磁盤 voting disk OCFS2 共享磁盤 OCR OCFS2 共享磁盤 數(shù)據(jù)庫軟件 OCFS2 共享磁盤 RAC 數(shù)據(jù)庫 ASM 共享磁盤 恢復文件 ASM 共享磁盤 (4)將 Oracle 數(shù)據(jù)庫軟件安裝在本地磁盤上(每個節(jié)點上一個拷貝),使用 NFS 存儲恢復文件和數(shù)據(jù)庫。 簡單,明了項目 存儲系統(tǒng) 存儲位置 Clusterware 軟件 extext3 本地磁盤 voting disk NFS 共享磁盤 OCR NFS 共享磁盤 數(shù)據(jù)庫軟件 Ext3 共享磁盤 RAC 數(shù)據(jù)庫 NFS 共享磁盤 恢復文件 NFS 共享磁盤 在大多數(shù)情況下,使用第三種策略對于管理和擴展及I/O負載均衡會更好。11 / 1