Saturday, September 26, 2026
  • About Us
  • Contact
DBAInsight
  • Guides
    • 23ai
    • RMAN
    • 26ai
    • Patch Update
    • RMAN
    • MySQL
    • Oracle GoldenGate
  • Cloud Technology
  • Case Studies
  • Troubleshooting
  • Training & Certification
NEWSLETTER
No Result
View All Result
DBAInsight
Home Guides

How to Perform Oracle Data Guard Switchover Manually in 5 Easy Steps

September 28, 2025
in Guides
0
How to Perform Oracle Data Guard Switchover Manually in 5 Easy Steps
0
SHARES
231
VIEWS

Table of Contents

Toggle
  • Introduction
    • Related posts
    • Oracle Database Monitoring Tools: 10 Best Tools for DBAs in 2026
    • Oracle Database Release Roadmap 2026: Current Support Status, 19c, 21c and 26ai
  • What Is a Switchover in Oracle Data Guard?
  • Prerequisites for Manual Switchover
  • Step-by-Step Manual Switchover Procedure
    • 1. Verify Primary Database Readiness
    • 2. Initiate Switchover on Primary
    • 3. Activate Standby as New Primary
    • 4. Start Managed Recovery on New Standby
    • 5. Verify Role Transition
  • Post-Switchover Checks
  • Best Practices for Manual Switchover
  • Conclusion

Introduction

Oracle Data Guard Switchover Manual Method is a vital technique that database administrators must master when maintaining mission-critical systems. A switchover is a planned role reversal where the primary database becomes the standby and vice versa, ensuring business continuity without data loss.

Although Oracle Data Guard Broker automates this procedure, many organizations still rely on the manual method. This approach provides administrators with greater control, visibility, and assurance, especially in environments where compliance, security, or custom monitoring scripts are in use. Understanding the manual steps also helps DBAs during troubleshooting scenarios when automation might fail.

Related posts

Oracle Database Monitoring Tools

Oracle Database Monitoring Tools: 10 Best Tools for DBAs in 2026

September 22, 2026
Oracle Database Release Roadmap 2026: Current Support Status, 19c, 21c and 26ai

Oracle Database Release Roadmap 2026: Current Support Status, 19c, 21c and 26ai

September 21, 2026
Oracle Data Guard Switchover Manual Method diagram showing role change between Primary and Standby databases with redo apply and SQL commands.

What Is a Switchover in Oracle Data Guard?

A switchover is different from a failover:

  • Switchover → Planned, graceful role change. No data loss occurs.
  • Failover → Unplanned due to outages. Can lead to potential data gaps.

Switchover is often done for:

  • Routine maintenance on servers or storage.
  • Load balancing across sites.
  • Testing disaster recovery procedures.
  • Ensuring that standby databases remain reliable and ready for real failovers.

Prerequisites for Manual Switchover

Before starting, ensure the following:

  1. Primary and Standby Synchronization – Verify that the standby database has applied all redo logs from the primary.
  2. No Active Sessions – Minimize application connections during switchover.
  3. ARCHIVELOG Mode Enabled – Both primary and standby databases must run in ARCHIVELOG mode.
  4. Ensuring a reliable and optimized network is critical during a switchover. For a deeper dive into setting up a Dedicated Log Shipping Network in Oracle Data Guard
  5. Force Logging Enabled: Ensure the primary database is in FORCE LOGGING mode so all changes are captured in redo:
  6. No Offline Datafiles: Check for any datafiles in OFFLINE status, since they can prevent a clean switchover:
  7. Database Role Status – Check current roles with:
SELECT DATABASE_ROLE, SWITCHOVER_STATUS FROM V$DATABASE;

Step-by-Step Manual Switchover Procedure

1. Verify Primary Database Readiness

On the primary database, check switchover status:

SELECT SWITCHOVER_STATUS FROM V$DATABASE;

Expected value: TO STANDBY

If not ready, ensure redo logs are fully applied on the standby.


2. Initiate Switchover on Primary

Execute:

ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY;
SHUTDOWN IMMEDIATE;
STARTUP MOUNT;

At this point, the primary database becomes a standby.


3. Activate Standby as New Primary

On the standby database, run:

ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;
ALTER DATABASE OPEN;

This promotes the standby to the new primary database.


4. Start Managed Recovery on New Standby

Go back to the former primary (now standby) and start redo apply:

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;

5. Verify Role Transition

On both databases, run:

SELECT DATABASE_ROLE FROM V$DATABASE;

New Primary → PRIMARY

Old Primary → PHYSICAL STANDBY


Post-Switchover Checks

  • Validate log shipping and apply using V$ARCHIVED_LOG and V$DATAGUARD_STATUS.
  • Ensure applications are redirected to the new primary.
  • Update monitoring tools and scripts with the new roles.

Best Practices for Manual Switchover

  • lways test manual switchover in UAT or staging before production.
  • Document each step with timestamps for audit and compliance.
  • Automate health checks to confirm log apply, network connectivity, and listener status before attempting switchover.
  • Keep a rollback plan ready in case switchover fails.
  • Use Data Guard Broker for routine tasks but know the manual method as a fallback.

Conclusion

Performing an Oracle Data Guard Switchover Manual Method is an essential skill every DBA should master. While Oracle Data Guard Broker automates the process, knowing how to handle a switchover manually provides deeper insight and ensures you can respond effectively in complex environments where automation may fail.

By carefully checking prerequisites such as force logging, offline datafiles, and redo synchronization, and by following the correct sequence of SQL commands, administrators can confidently switch roles between the primary and standby databases. This not only ensures business continuity but also enhances overall disaster recovery readiness.

In practice, manual switchovers are often used during planned maintenance windows, DR drills, or system upgrades. Developing expertise in this process builds confidence in managing critical systems and reduces risk during high-stakes operations. With proper planning, verification, and adherence to best practices, the switchover will be smooth, reliable, and free of data loss — strengthening your organization’s high availability strategy.

Tags: manual Data Guard switchoverOracle Data Guard switchoverOracle Disaster RecoveryOracle High AvailabilityOracle standby database
Previous Post

Oracle 19c Database Upgrade from 11.2.0.4 to 19c Using DBUA

Next Post

Oracle Data Guard Physical Standby: Configure RAC Primary to RAC Standby with a Dedicated Log-Shipping Network

Next Post
Oracle Data Guard Physical Standby: Configure RAC Primary to RAC Standby with a Dedicated Log-Shipping Network

Oracle Data Guard Physical Standby: Configure RAC Primary to RAC Standby with a Dedicated Log-Shipping Network

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

POPULAR NEWS

  • Oracle Patch 38632161: Step-by-Step Guide to Upgrade Oracle 19c to Release Update 19.30

    Oracle Patch 38632161: Step-by-Step Guide to Upgrade Oracle 19c to Release Update 19.30

    0 shares
    Share 0 Tweet 0
  • How To Download And Install The Latest OPatch

    0 shares
    Share 0 Tweet 0
  • How to Install Oracle 19c Database on Red Hat Enterprise Linux 9

    0 shares
    Share 0 Tweet 0
  • Oracle Database 19.32 Release Update (RU) Patching Guide – Patch 39472050

    0 shares
    Share 0 Tweet 0
  • Installing Oracle Database 26AI on Red Hat Enterprise Linux 9

    0 shares
    Share 0 Tweet 0
  • About Us
  • Contact

© 2026 DBAInsight - Smarter Databases. Sharper Insights. DBAInsight.

No Result
View All Result
  • Home
  • Cloud & Modern DBs
  • Guides
  • Cloud Technology
  • Case Studies
  • Troubleshooting
  • Training & Certification

© 2026 DBAInsight - Smarter Databases. Sharper Insights. DBAInsight.

Add as a preferred source on Google
Add as preferred source on Google