Set up local disaster recovery

Discover how to use peer deployments to implement your disaster recovery solution within the same region in OCI GoldenGate.

High Availability is a system's ability to remain operational and accessible at a high percentage of time. To achieve High Availability with OCI GoldenGate, you can create a peer deployment in the same region as your primary deployment (local standby).

Before you begin

To successfully complete this quickstart, you must have:

  • A free or paid Oracle Cloud Infrastructure account
  • Access to OCI GoldenGate
  • An existing OCI GoldenGate deployment in any OCI region

Task 1: Enable disaster recovery

  1. In the Oracle Cloud console, open the navigation menu, select Oracle Database, and then GoldenGate.
  2. On the GoldenGate Overview page, in the GoldenGate menu, click Deployments.
  3. On the Deployments page, select a deployment for which to enable disaster recovery.
  4. On the deployment Details page, switch to the Disaster recovery tab.
  5. On the Disaster recovery page, click Add peer.
  6. In the Add peer deployment panel,
    • Deselect Automatically select the best availability domain placement to view Availability domain and Fault domain options.

      Note:

      In a region with multiple Availability Domains (AD), you can select an AD that is different from the primary deployment. After you select an AD, you can optionally select a Fault Domain (FD).

    • Select Automatically select the best availability domain placement for the service to select the best AD/FD combination.
  7. Click Add.

Depending on the amount of storage used by the primary deployment, the Standby peer deployment becomes Active after some time.

Task 2: Switchover

Switchover is when the standby peer deployment becomes the primary deployment and the primary becomes the standby.
  1. After the Standby peer deployment is Active, select Switchover from the its Actions menu.
  2. In the Switchover dialog, click Switchover to confirm the action.

Both primary and standby deployments statuses change to Updating while the switchover process is in progress. The switchover operation duration depends on the amount of storage used by the primary deployment. After switchover completes, the deployments become Active again and you can log in to the new primary deployment. Processes that are set to Auto-start automatically restart in the new primary deployment.