Tuesday, October 20, 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

Oracle Data Guard Broker: Convert Physical Standby to Snapshot Standby and Back (Step-by-Step Guide)

July 17, 2026
in Guides
0
Convert Physical Standby to Snapshot Standby
0
SHARES
124
VIEWS

SEO Title: Oracle Data Guard Broker: Convert Physical Standby to Snapshot Standby and Back
Meta Description: Learn how to convert an Oracle Physical Standby database to a Snapshot Standby and back using Data Guard Broker (DGMGRL). Includes commands, use cases, and best practices.


Table of Contents

Toggle
  • Oracle Data Guard Broker: Convert Physical Standby to Snapshot Standby and Back
      • Related posts
      • How to Fix ORA-01105 and ORA-01174 in Oracle RAC: DB_FILES Parameter Mismatch
      • How to Identify Static Initialization Parameters in Oracle Database 19c
    • What is a Snapshot Standby?
    • Architecture
  • Prerequisites
  • Convert Physical Standby to Snapshot Standby
  • Perform Your Testing
  • Convert Snapshot Standby Back to Physical Standby
  • Verify the Role
  • Best Practices
  • Advantages of Snapshot Standby
  • Summary

Oracle Data Guard Broker: Convert Physical Standby to Snapshot Standby and Back

One of the most useful features of Oracle Data Guard is the ability to temporarily convert a Physical Standby database into a Snapshot Standby. This allows the standby database to become fully read-write for testing, development, or reporting without affecting the primary database.

Related posts

How to Fix ORA-01105 and ORA-01174 in Oracle RAC: DB_FILES Parameter Mismatch

How to Fix ORA-01105 and ORA-01174 in Oracle RAC: DB_FILES Parameter Mismatch

October 19, 2026
Static Initialization

How to Identify Static Initialization Parameters in Oracle Database 19c

October 16, 2026

Once testing is complete, the database can easily be converted back into a Physical Standby, where Oracle automatically discards the temporary changes and resumes redo apply.

In this article, we’ll walk through how to perform this conversion using Oracle Data Guard Broker (DGMGRL).


What is a Snapshot Standby?

A Snapshot Standby is a temporary read-write version of your Physical Standby database.

Unlike a Physical Standby:

  • Supports INSERT, UPDATE, DELETE, and DDL operations
  • Allows application testing against production-like data
  • Suspends redo apply while changes are made
  • Continues receiving archived redo from the primary
  • Automatically rolls back all local changes when converted back

This makes it ideal for:

  • Application testing
  • Patch validation
  • User acceptance testing (UAT)
  • Performance testing
  • Reporting with temporary data modifications

Architecture


Prerequisites

Before converting:

  • Data Guard Broker must be configured.
  • Flashback Database must be enabled.
  • The standby database should be synchronized with the primary.
  • Broker configuration should show SUCCESS.

Verify:

DGMGRL> show configuration;

Example:

Configuration - DGCONFIG

Protection Mode: MaxPerformance

Members:
orcl      - Primary database
orcldr    - Physical standby database

Fast-Start Failover: DISABLED

Configuration Status:
SUCCESS

Convert Physical Standby to Snapshot Standby

Log in to the standby using DGMGRL.

dgmgrl /

Connect as SYS:

DGMGRL> CONNECT SYS/Banana@orcldr

Convert the standby:

DGMGRL> CONVERT DATABASE 'orcldr' TO SNAPSHOT STANDBY;

Broker output:

Converting database "orcldr" to a Snapshot Standby database...
Operation succeeded.

The standby is now:

  • Read-write
  • Open for testing
  • No redo apply

Verify:

DGMGRL> SHOW DATABASE 'orcldr';

You’ll see:

Role: SNAPSHOT STANDBY

Perform Your Testing

At this point you can:

  • Create tables
  • Modify data
  • Install application patches
  • Run performance tests
  • Execute batch jobs
  • Validate upgrades

Example:

CREATE TABLE TEST_TABLE AS
SELECT * FROM DBA_USERS;

INSERT INTO TEST_TABLE VALUES (...);

COMMIT;

All these changes exist only on the Snapshot Standby.


Convert Snapshot Standby Back to Physical Standby

Once testing is complete:

Start DGMGRL.

dgmgrl /

Connect:

DGMGRL> CONNECT SYS/Banana@orcldr

Run:

DGMGRL> CONVERT DATABASE 'orcldr' TO PHYSICAL STANDBY;

Broker output:

Converting database "orcldr" to a Physical Standby database...
Operation succeeded.

Oracle now:

  1. Uses Flashback Database.
  2. Removes every local change made during Snapshot mode.
  3. Restores the original standby state.
  4. Applies all accumulated redo.
  5. Synchronizes with the primary.

Verify the Role

Check:

DGMGRL> SHOW DATABASE 'orcldr';

Expected:

Role: PHYSICAL STANDBY

Also verify redo apply:

DGMGRL> SHOW DATABASE VERBOSE 'orcldr';

Look for:

  • Apply State: APPLY-ON
  • Transport Lag: 0
  • Apply Lag: 0

Best Practices

  • Ensure Flashback Database is enabled before conversion.
  • Keep the Snapshot Standby period as short as practical to minimize redo backlog.
  • Verify sufficient Fast Recovery Area (FRA) space before converting.
  • Confirm the broker configuration is healthy (SUCCESS) before and after the conversion.
  • Monitor redo apply after converting back to ensure the standby catches up with the primary.

Advantages of Snapshot Standby

FeatureBenefit
Read-write databaseEnables realistic testing
Production dataTest using current data
Automatic rollbackNo manual cleanup required
No impact on primaryProduction remains online
Easy conversionSingle DGMGRL command
Supports UATSafe application validation

Summary

Oracle Data Guard Broker makes it remarkably simple to switch between a Physical Standby and a Snapshot Standby with just a single command. This feature is ideal for testing, patch validation, and development activities because it provides a temporary read-write environment while preserving the integrity of the standby database.

Once your work is complete, converting back to a Physical Standby automatically discards all temporary changes using Flashback Database and resumes redo apply, allowing the standby to quickly synchronize with the primary again.

If you’re managing Oracle Data Guard environments, Snapshot Standby is a powerful capability that lets you safely test changes without disrupting production or maintaining a separate testing environment.

Tags: Convert Physical StandbyConvert Snapshot StandbyDGMGRLOracle Data GuardOracle Data Guard BrokerPhysical StandbySnapshot Standby
Previous Post

Oracle True Cache vs Redis: Which One Actually Fits Your Workload

Next Post

Exadata Cloud@Customer: What Provisioning Actually Looks Like on the Ground

Next Post
Exadata Cloud@Customer: What Provisioning Actually Looks Like on the Ground

Exadata Cloud@Customer: What Provisioning Actually Looks Like on the Ground

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
  • Oracle Database 19.32 Release Update (RU) Patching Guide – Patch 39472050

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

    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