Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

8/29/2021 Convert Physical Standby into Active Data Guard

DBA Genesis Support Home Remote DBA Support Books Courses Contact

All Articles Database Administration Performance Tuning DBA Scripts Data Guard More

Arun Kumar 1 min read

Convert Physical Standby into Active


Data Guard
In very simple terms, when you open Physical Standby in read only mode, it is known as
Active Data Guard. But, Active Data Guard needs license for and you must check with
Oracle for same before implementing it.

Enable Active Data Guard: Let us Open Physical Standby and test active data guard

On standby:

===========

SQL> alter database recover managed standby database cancel;

SQL> alter database open;

SQL> select name, open_mode, database_role from v$database;

SQL> alter database recover managed standby database disconnect;

Verify MRP is running in the background: Use below query to check if MRP is running
in the background or not

On standby (active data guard):

===============================

SQL> select process, status, sequence# from v$managed_standby;

Test configuration: As our active data guard is open for read only queries and
background recover is active, let us create a table on primary and see if it is reflected on
standby

On primary:

===========

SQL> create table test(sno number(2),sname varchar2(10));

SQL> insert into test values (1, 'John ');

SQL> commit;

SQL> alter system switch logfile;


Hi, Need Help?

On standby:

https://www.support.dbagenesis.com/post/convert-physical-standby-into-active-data-guard 1/2
8/29/2021 Convert Physical Standby into Active Data Guard

===========

SQL> select * from test;

Revert back to physical standby: If you want to convert active data guard back to
physical standby, follow below commands

On standby:

===========

SQL> alter database recover managed standby database cancel;

SQL> shutdown immediate;

SQL> startup mount;

SQL> select name, open_mode, database_role from v$database;

SQL> alter database recover managed standby database disconnect;

SQL> select process, status, sequence# from v$managed_standby;

Standby Database

Data Guard

1,559 views

Recent Posts See All

Oracle Data Guard Oracle Data Guard Client Connectivity in


Protection Modes Physical Standby… Data Guard Configuration

1,036 2 4,439 8 1,545 1

support@dbagenesis.com

© 2020 by DBA Genesis

Hi, Need Help?

https://www.support.dbagenesis.com/post/convert-physical-standby-into-active-data-guard 2/2

You might also like