Stay organized with collections
Save and categorize content based on your preferences.
This page describes how to perform a switchover to a peer Autonomous Database in
Google Cloud. You can perform a switchover through both
Google Cloud and OCI.
If the Primary Autonomous Database is down, you can perform a switchover from
the peer (Standby) database.
Before you begin
Ensure that you have the following roles and permissions required to perform a
switchover:
roles/autonomousDatabaseAdmin
Perform a Switchover
To switchover to a peer database, do the following:
Click the name of the primary Autonomous Database on which you want to
perform a switchover operation.
On the Autonomous Database details page, click the
Disaster Recovery tab.
In the Peer database section, for the peer database that you want to
switchover to, click more_vertView actions,
and then click Switchover.
In the Confirm switchover to peer dialog, enter the peer database
name and click Confirm.
On the Disaster recovery tab, in the Peer database section, the
Status field shows you the progress of the switchover operation.
After the switchover is complete, the peer database becomes the "Primary"
and its Status field shows "Available". Whereas, the former Primary
Autonomous Database becomes the "Standby".
If you initiated the switchover in the OCI console, you can still see the
progress of the switchover in the Google Cloud console.
gcloud
Use the gcloud oracle-database autonomous-databases switchover
command to perform a switchover.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[],[],null,["# Perform a switchover\n\nThis page describes how to perform a switchover to a peer Autonomous Database in\nGoogle Cloud. You can perform a switchover through both\nGoogle Cloud and OCI.\n\nIf the Primary Autonomous Database is down, you can perform a switchover from\nthe peer (Standby) database.\n\nBefore you begin\n----------------\n\nEnsure that you have the following roles and permissions required to perform a\nswitchover:\n\n- `roles/autonomousDatabaseAdmin`\n\nPerform a Switchover\n--------------------\n\nTo switchover to a peer database, do the following: \n\n### Console\n\n1. Go to the **Autonomous Database** page.\n\n [Go to Autonomous Database](https://console.cloud.google.com/oracle/autonomous-databases/)\n2. Click the name of the primary Autonomous Database on which you want to\n perform a switchover operation.\n\n3. On the **Autonomous Database details** page, click the\n **Disaster Recovery** tab.\n\n4. In the **Peer database** section, for the peer database that you want to\n switchover to, click more_vert **View actions** ,\n and then click **Switchover**.\n\n5. In the **Confirm switchover to peer** dialog, enter the peer database\n name and click **Confirm**.\n\n On the **Disaster recovery** tab, in the **Peer database** section, the\n **Status** field shows you the progress of the switchover operation.\n After the switchover is complete, the peer database becomes the \"Primary\"\n and its **Status** field shows \"Available\". Whereas, the former Primary\n Autonomous Database becomes the \"Standby\".\n\n If you initiated the switchover in the OCI console, you can still see the\n progress of the switchover in the Google Cloud console.\n\n### gcloud\n\nUse the `gcloud oracle-database autonomous-databases switchover`\ncommand to perform a switchover. \n\n gcloud oracle-database autonomous-databases switchover \u003cvar translate=\"no\"\u003eDATABASE_ID\u003c/var\u003e\n --project=\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e\n --location=\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e\n --peer-autonomous-database=projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/locations/\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e/autonomousDatabases/\u003cvar translate=\"no\"\u003ePEER_DATABASE_ID\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eDATABASE_ID\u003c/var\u003e: the ID of your database.\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your Google Cloud project.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region of your peer database.\n- \u003cvar translate=\"no\"\u003ePEER_DATABASE_ID\u003c/var\u003e: the ID of your peer database.\n\nWhat's next\n-----------\n\n- [View peer database details](/oracle/database/docs/view-peer-databases).\n- [Create a peer database](/oracle/database/docs/create-peer-database)."]]