啟動 Oracle Data Guard 容錯移轉 - Amazon Relational Database Service

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

啟動 Oracle Data Guard 容錯移轉

您可以將 RDS for Oracle 僅供讀取複本容錯移轉為主要角色,將原主要資料庫執行個體容錯移轉為複本角色。

若要將 Oracle 僅供讀取複本容錯移轉為主要資料庫角色
  1. 登入 AWS Management Console,開啟位於 https://console.aws.amazon.com/rds/ 的 Amazon RDS 主控台。

  2. 在 Amazon RDS 主控台,選擇 Databases (資料庫)

    Databases (資料庫) 窗格隨即出現。每個僅供讀取複本會在 Role (角色) 欄中顯示 Replica (複本)

  3. 選擇您要容錯移轉為主要角色的僅供讀取複本。

  4. 對於 Actions (動作),選擇 Switch over replica (容錯移轉複本)。

  5. 選擇 I acknowledge (我確認)。然後選擇 Switch over replica (容錯移轉複本)。

  6. Databases (資料庫) 頁面上監控容錯移轉進度。

    監控 Oracle Data Guard 容錯移轉進度

    容錯移轉完成時,容錯移轉目標的角色會從 Replica (複本) 變成 Source (來源)。

    來源資料庫和複本資料庫會變更角色。

若要將 Oracle 複本容錯移轉為主要資料庫角色,請使用 AWS CLI switchover-read-replica 命令。下列範例會讓名為 replica-to-be-made-primary 的 Oracle 複本成為新的主要資料庫。

範例

針對 Linux、macOS 或 Unix:

aws rds switchover-read-replica \ --db-instance-identifier replica-to-be-made-primary

針對 Windows:

aws rds switchover-read-replica ^ --db-instance-identifier replica-to-be-made-primary

若要將 Oracle 複本容錯移轉為主要資料庫角色,請使用必要參數 DBInstanceIdentifier 呼叫 Amazon RDS API SwitchoverReadReplica 操作。此參數指定您要擔任主要資料庫角色之 Oracle 複本的名稱。