Skip to main content

How to Convert/Revert a Physical Standby Database to Snapshot Standby with DGMGRL

This post explains how to seamlessly convert a Physical Standby database into a Snapshot Standby — and later revert it back to a Physical Standby — using DGMGRL, enabling you to fully leverage the flexibility and capabilities of Oracle Data Guard.

When a snapshot standby is switched back to a physical standby, any changes made locally during its read-write phase are discarded. The redo data accumulated from the primary database is then applied, restoring synchronization between the two databases.

Because redo data isn’t applied in real time and local transactions can occur independently, the snapshot standby gradually drifts out of sync with the primary. However, this doesn’t affect data protection — the standby can be reconverted to a physical standby at any time, at which point all pending redo is applied to bring it fully up to date.

Snapshot standby databases deliver the same disaster recovery and data protection capabilities as physical standbys, with the added advantage of supporting temporary read-write operations. They are especially useful for testing, patch validation, or reporting scenarios where a writable clone of the production environment is needed.

The snapshot standby feature makes it possible to perform read-write operations on a standby database. To set up a snapshot standby, you first create a physical standby and then convert it into a snapshot standby.

System Overview

The environment consists of one primary and two physical standby databases configured under Oracle Data Guard. The details are as follows:
 
Server: server-graz — Database: GRAZ (Primary) 
Server: server-wien — Database: WIEN (Physical Standby) 
Server: server-tirol — Database: TIROL (Physical Standby → to be converted to Snapshot Standby)

GMGRL> show configuration;

Configuration - stby

  Protection Mode: MaxPerformance
  Members:
  GRAZ  - Primary database
    WIEN  - Physical standby database 
    TIROL - Physical standby database 

Fast-Start Failover:  Disabled

Configuration Status:
SUCCESS   (status updated 30 seconds ago)

Manually Converting a Physical Standby to a Snapshot Standby

The following steps outline the manual process for converting a physical standby database into a snapshot standby:

  1. Stop Redo Apply if it is currently active.

  2. Ensure the database is mounted but not open.

  3. Verify that a Fast Recovery Area (FRA) is configured. (Flashback Database does not need to be explicitly enabled.)

  4. Execute the conversion command:

    alter database convert to snapshot standby;
  5. Open the snapshot standby in read/write mode:

    alter database open read write;

Conversion with DGMGRL Utility

Execute the commands on primary database:
[oracle@server-tirol admin]$ dgmgrl sys/*********
DGMGRL for Linux: Release 19.0.0.0.0 - Production on Sat Oct 25 18:33:34 2025
Version 19.28.0.0.0

Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.

Welcome to DGMGRL, type "help" for information.
Connected to "TIROL"
Connected as SYSDBA.
DGMGRL> show configuration;

Configuration - stby

  Protection Mode: MaxPerformance
  Members:
  GRAZ  - Primary database
    WIEN  - Physical standby database 
    TIROL - Physical standby database 

Fast-Start Failover:  Disabled

Configuration Status:
SUCCESS   (status updated 59 seconds ago)

DGMGRL> convert database 'TIROL' to snapshot standby;
Converting database "TIROL" to a Snapshot Standby database, please wait...
Database "TIROL" converted successfully
DGMGRL> show configuration;

Configuration - stby

  Protection Mode: MaxPerformance
  Members:
  GRAZ  - Primary database
    WIEN  - Physical standby database 
    TIROL - Snapshot standby database 

Fast-Start Failover:  Disabled

Configuration Status:
SUCCESS   (status updated 47 seconds ago)

DGMGRL> 
Verifying the Snapshot Standby Conversion
[oracle@server-tirol ~]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Sat Oct 25 18:35:45 2025
Version 19.28.0.0.0

Copyright (c) 1982, 2025, Oracle.  All rights reserved.


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.28.0.0.0

SQL> select status,instance_name,database_role,open_mode from v$database,v$instance;

STATUS	     INSTANCE_NAME    DATABASE_ROLE    OPEN_MODE
------------ ---------------- ---------------- --------------------
OPEN	     TIROL	      SNAPSHOT STANDBY READ WRITE

Reverting a Snapshot Standby to a Physical Standby

The ability to revert a snapshot standby back to a physical standby is made possible by a restore point that Oracle automatically creates during the initial conversion. This restore point allows the database to be seamlessly rolled back to its previous physical standby state. However, this mechanism does not apply to logical standby databases, which we’ll cover in a separate post.

SQL> set pages 400 lines 200
SQL> col time form a20
SQL> col name form a50
SQL> select name,scn,to_char(time,'dd.mm.yyyy hh24:mi:ss') as time from v$restore_point

NAME							  SCN TIME
-------------------------------------------------- ---------- --------------------
SNAPSHOT_STANDBY_REQUIRED_10/25/2025 18:33:51	      1335709 25.10.2025 18:33:51
Execute the commands on primary database:
[oracle@server-graz ~]$ dgmgrl sys/Welcome1
DGMGRL for Linux: Release 19.0.0.0.0 - Production on Sat Oct 25 19:09:27 2025
Version 19.28.0.0.0

Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.

Welcome to DGMGRL, type "help" for information.
Connected to "GRAZ"
Connected as SYSDBA.
DGMGRL> show configuration;

Configuration - stby

  Protection Mode: MaxPerformance
  Members:
  GRAZ  - Primary database
    WIEN  - Physical standby database 
    TIROL - Snapshot standby database 

Fast-Start Failover:  Disabled

Configuration Status:
SUCCESS   (status updated 51 seconds ago)

DGMGRL> convert database 'TIROL' to physical standby;
Converting database "TIROL" to a Physical Standby database, please wait...
Oracle Clusterware is restarting database "TIROL" ...
Connected to "TIROL"
Continuing to convert database "TIROL" ...
Database "TIROL" converted successfully

DGMGRL> show configuration;

Configuration - stby

  Protection Mode: MaxPerformance
  Members:
  GRAZ  - Primary database
    WIEN  - Physical standby database 
    TIROL - Physical standby database 

Fast-Start Failover:  Disabled

Configuration Status:
SUCCESS   (status updated 56 seconds ago)

Comments

Popular posts from this blog

In-Place Upgrade from Oracle Linux 7 to 8 Using LEAPP

Upgrading from Oracle Linux 7 to Oracle Linux 8 is important to keep your system secure, stable, and supported. Oracle Linux 7 is now out of support, which means it no longer receives updates, security patches, or fixes. Moving to Oracle Linux 8 ensures you continue getting updates, new features, and better performance. The LEAPP tool makes this upgrade easier by allowing an in-place upgrade, so you don’t need to reinstall the system from scratch. It checks if your system is ready, identifies potential issues, and helps guide you through the upgrade process. This guide will walk you through the basic steps and requirements to successfully upgrade Oracle Linux 7 to Oracle Linux 8 using LEAPP. Oracle Lifetime Support Policy Regarding upgrading Oracle Linux 7 to Oracle Linux 8, here are a few key points to consider: Review the official documentation thoroughly before starting the upgrade process Ensure you have a complete backup in place, as this is an in-place upgrade and you may n...

Step-by-Step Guide to Renewing OLVM Certificates in Version 4.3

Managing certificates is a critical administrative task in Oracle Linux Virtualization Manager (OLVM) environments, as expired certificates can result in host disconnections, authentication failures, and service disruptions. In this article, we will cover the process of renewing certificates in OLVM version 4.3 before they expire, ensuring secure communication between the engine and managed KVM hosts. For this procedure, we will use the OlvmKvmCerts utility provided by Oracle to renew the required certificates. In OLVM 4.3, although some engine-related certificates can be renewed using the engine-setup command, not all certificates are automatically refreshed. Certain components require manual renewal because the certificate renewal process in this version is not fully automated. It is important to note that this limitation has been addressed in  OLVM 4.4.10.7-1.0.24 and later.  Additionally, OLVM 4.3 has been unsupported since October 2022, and OLVM 4.4 reached end of su...

Oracle 19c: Data Guard Physical Standby Setup Guide

In this blog post, we’ll walk through the process of creating a Data Guard Physical Standby database in Oracle Database 19c, where ASM (Automatic Storage Management) and OMF (Oracle Managed Files) are used for storage management.  Setting up a standby database with Data Guard enhances the high availability, disaster recovery, and data protection capabilities of your Oracle environment.  By leveraging ASM and OMF, we simplify file management and ensure optimal performance and flexibility. This guide provides a step-by-step approach, from preparing the primary database to configuring the standby environment, ensuring a smooth and reliable setup. Environment Overview In this setup, we have two database servers configured for a Data Guard Physical Standby environment: Primary Server : server-graz – This server hosts the primary database named graz . Standby Server : server-salzburg – This server will act as the physical standby. Both servers are configured to use ASM (Au...