Oracle Dataguard Stop Start

Hi,

You should stop and start your dataguard sometimes in case of need.

 

To stop dataguard you can use following query. When dataguard is stopped, MRP ( Media Recovery Process ) won’t run.

alter database recover managed standby database cancel;

 

To start dataguard you can use following query. When dataguard is started, MRP ( Media Recovery Process ) will run.

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;

But there will be some lag about 3-5 minutes in dataguard like following.

 

 

set lines 1000 

select name,value from v$dataguard_stats;
 NAME                VALUE 
-------------------------------- ------------------------- 
transport lag        +00 00:03:52 
apply lag            +00 00:03:54 
apply finish time    +00 00:00:00.001
estimated startup time 16 second

If you don’t want any lag you should start dataguard with using logfile option. You should add standby logs to the standby database in this case.

 

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;   

There won’t be any lag in this case like following.

set lines 1000

select name,value from v$dataguard_stats;
			      NAME		      VALUE		
-------------------------------- ------------------------- 
			     transport lag	       +00 00:00:00
			     apply lag		       +00 00:00:00		 
			     apply finish time	       +00 00:00:00.001
		             estimated startup time    1	second

 

 

  

Do you want to learn Oracle Database for Beginners, then read the following articles.

https://ittutorial.org/oracle-database-19c-tutorials-for-beginners/

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

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