When Do Clients Need Active Data Guard?
-
Reporting Off the Standby:
-
When the client wants to run reports, analytics, or queries without slowing down the primary database.
-
-
Offload Backups:
-
When the client wants to take RMAN backups from the standby instead of the primary.
-
-
High Availability with Extra Use:
-
When the client wants the standby to stay fully synchronized with the primary and still do useful work.
-
-
Minimize Primary Load:
-
When the primary database is very busy, and they want to reduce performance impact by offloading read-only tasks
Key DBA Considerations:
-
Requires Active Data Guard license.
-
Standby remains transactionally consistent with the primary.
-
Supports flashback, RMAN backups, and queries simultaneously.
Enable Active Data Guard
Lets 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 - 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;with apply means the background manage recovery processes is up and running in Active dataTest Active Data Guard
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 dg_test(sno number(2),sname varchar2(10));
SQL>select username from dba_users;we can perform select queries on Data Guard Standby.
for Active Data Guard you need to buy license 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;
No comments:
Post a Comment
Please do not enter any spam link in the comments