關於設定 Oracle Data Guard 以取得 Oracle Exadata Database Service on Dedicated Infrastructure
發生災難時,您的 Oracle Exadata Database Service on Dedicated Infrastructure 主要資料庫可能會變成無法使用。待命資料庫是生產環境資料庫的複本,可在生產環境資料庫中斷時使用。若為主要資料庫設定 Oracle Data Guard ,會自動建立待命資料庫。為了獲得最高可用性,建議您在不同的 OCI 區域中設定主要和待命資料庫。也支援在相同的 OCI 區域中設定主要和待命資料庫。
Oracle Data Guard 可確保企業資料在 Oracle Database 中具有高可用性、資料保護以及災害復原。Oracle Data Guard 提供一組全方位的服務,可建立、維護、管理及監督一或多個待命資料庫,讓實際環境執行 Oracle 資料庫能夠承受災害和資料損毀。Oracle Data Guard 會將這些待命資料庫保留為主要生產資料庫的複本。如果主要資料庫因計畫性或非計畫性停機而無法使用,Oracle Data Guard 可以將任何待命資料庫切換為主要資料庫,將與停機關聯的停機時間降到最低。
本手冊說明如何使用 OCI 主控台設定 Oracle Exadata Database Service on Dedicated Infrastructure 的 Oracle Data Guard 。
架構
此架構顯示兩個位於不同區域的 Oracle Exadata Database Service on Dedicated Infrastructure 資料庫,在資料庫之間設定 Oracle Data Guard ,讓這兩個資料庫保持同步。
下圖說明此架構。
exadata-dedicated-cross-region-dataguard.png 圖解描述
exadata-dedicated- 跨區域 -dataguard.zip
或者,您的 Oracle Exadata Database Service on Dedicated Infrastructure 資料庫也可以位於相同區域內。
下圖說明此架構。
exadata-dedicated-region-dataguard.png 圖解描述
exadata-dedicated- 區域 -dataguard.zip
設定 Oracle Data Guard 時,建議您相應地設定 Oracle Exadata Database Service on Dedicated Infrastructure 主要和待命資料庫,以確保最大可用性:
- 最大可用性:不同 OCI 區域中的主要和待命資料庫。
- 更高的可用性:相同區域中的主要和待命資料庫,但可用性網域不同。
- 高可用性:相同區域和可用性網域中的主要和待命資料庫。
Before You Begin - 開始之前
開始之前,請先檢查此設定中所使用的主要軟體元件版本,並檢閱產品文件以供日後參考。
檢閱軟體需求
- 專用基礎架構上的 Oracle Exadata Database Service
- Exaimage 22.1.30 或更新版本 (來源資料庫)
- Exaimage 24.1.8 或更新版本 (目標資料庫)
- Oracle Database 19.25 或更新版本
複查說明文件
- Oracle Cloud Infrastructure 文件中的使用舊版 DRG 的遠端 VCN 對等互連
- Oracle Cloud Infrastructure 文件中的使用主控台在 Exadata Cloud Infrastructure 系統上啟用資料保全
- Oracle Cloud Infrastructure 文件中的使用客戶管理的金鑰建立新的 Oracle Exadata Database Service on Dedicated Infrastructure 資料庫
- Oracle Cloud Infrastructure 文件中的將 Oracle Exadata Database Service on Dedicated Infrastructure 資料庫從 Oracle Managed Keys 切換至客戶託管金鑰
- Oracle Cloud Infrastructure 文件中的設定 OCI Vault 的複製
組態的考量
在開始設定 Oracle Data Guard 之前,請先複查這些假設和考量。
- Oracle Exadata Database Service on Dedicated Infrastructure 主要和待命資料庫必須管理在相同的 OCI 租用戶中。
- 待命資料庫是實體待命資料庫。
- 主要資料庫最多支援使用新的資料保全群組模型 (19c 和更新版本) 的六個待命資料庫。如果您已有使用「資料保全關聯」模型的待命資料庫,可以將組態變更為「資料保全群組」。此模型切換只會變更 OCI 工具描述資料,不會影響資料庫。請參閱變更 Oracle Data Guard 關聯至 Oracle Data Guard 群組小節,瞭解詳細資訊。
- 主要和待命資料庫可以執行相同主要資料庫版本的不同版本更新,尤其是在執行維護和更新作業時。
- 對於執行 11g 和 12c 版本的資料庫,OCI 介面會將資料保全組態限制為每個主要資料庫 (稱為資料保全關聯) 的一個待命資料庫。如果需要一個以上的待命資料庫,則必須手動完成「資料保全」組態。資料庫版本 11g 和 12c 無法在待命資料庫上啟用自動備份。
- 必須啟用資料保全或作用中資料保全,才能設定待命資料庫。有了 Data Guard,待命資料庫會以掛載模式執行,而 Active Data Guard 則會以唯讀模式執行待命資料庫。「資料保全」是預設選項,屬於 Oracle Enterprise Edition 授權的一部分。設定 Active Data Guard 需要有適當的功能授權。
- 為了確保生產環境工作負載的錯誤隔離上限,建議在不同的 Exadata 基礎架構上設定主要和待命資料庫。資料保全群組模型可支援區域內和跨區域的待命資料庫。不支援設定連鎖待命資料庫。
- DBaaS 主要和待命 VM 叢集之間的「工具」和「Dbcs 代理程式」版本必須相同。請使用
dbaascli
或rpm utility
來驗證 DBaaS 工具和 Dbcs 代理程式版本。 - 您可以使用 OCI 介面為相同區域和不同區域中的資料庫設定 Oracle Data Guard ,這些區域使用通透資料加密 (TDE) 搭配 OCI Vault 的客戶管理金鑰。為使用或將使用 OCI Vault 儲存客戶管理金鑰的資料庫設定資料保全之前,請參閱驗證安全原則和動態群組小節。
附註:
資料庫設定為搭配 OCI Vault 使用客戶管理的金鑰之後,無論是否已設定 Oracle Data Guard ,都無法將它重新設定為使用 Oracle 管理的金鑰。
關於必要產品與角色
此解決方案需要下列產品:
- 專用基礎架構上的 Oracle Exadata Database Service
- Oracle Database
這些是每項產品所需的角色。
產品名稱:角色 | 必要項目 ... |
---|---|
Oracle Exadata Database Service on Dedicated Infrastructure :database admin |
建立主要資料庫的資料保全關聯。 |
Oracle Database :sys |
使用主要資料庫 sys 密碼建立資料保全關聯。
|
請參閱 Oracle 產品、解決方案和服務,以取得您需要的內容。