{"id":2233,"date":"2025-01-17T14:16:31","date_gmt":"2025-01-17T14:16:31","guid":{"rendered":"https:\/\/w3buddy.com\/?p=2233"},"modified":"2026-01-15T13:19:12","modified_gmt":"2026-01-15T07:49:12","slug":"start-and-stop-mrp-in-oracle-data-guard","status":"publish","type":"post","link":"https:\/\/w3buddy.com\/blog\/start-and-stop-mrp-in-oracle-data-guard\/","title":{"rendered":"Start and Stop MRP in Oracle Data Guard"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In Oracle Data Guard, the Managed Recovery Process (MRP) is essential for maintaining the synchronization of a standby database with the primary database. MRP applies redo logs from the primary database to the standby in real time, ensuring that the standby database is up-to-date and ready to take over in the event of a failure.<br><br>This guide will walk you through the steps to start and stop the MRP process in Oracle Data Guard, as well as provide useful tips for monitoring its status.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Starting MRP in Oracle Data Guard<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Starting the MRP process on the physical standby database is a crucial step to ensure that it remains synchronized with the primary database.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Ensure the Standby Database is Mounted<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The standby database must be in MOUNT mode to begin the recovery process. You can check this by running:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-sql\">SQL> SELECT DATABASE_ROLE FROM V$DATABASE;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The result should return PHYSICAL STANDBY.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Start the MRP Process<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use the following command to initiate the MRP process:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-sql\">SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command starts applying redo logs from the primary database to the standby database.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Start Real-Time Apply (Optional)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to ensure that the logs are applied immediately as they are generated (minimizing lag), enable real-time apply with this command:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-sql\">SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE REALTIME APPLY;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">4. Verify the MRP Process is Running<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To confirm that the MRP process has started, run the following:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-sql\">SQL> SELECT PROCESS, STATUS FROM V$MANAGED_STANDBY;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The status should show that the MRP process is actively applying redo logs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Stopping MRP in Oracle Data Guard<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are situations where you may need to stop the MRP process, such as for maintenance or troubleshooting. Here&#8217;s how to do it:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Stop the MRP Process<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To stop the MRP process, run:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-sql\">SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command halts the application of redo logs on the standby database.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Verify the MRP Process is Stopped<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After canceling the MRP process, check its status:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-sql\">SQL> SELECT PROCESS, STATUS FROM V$MANAGED_STANDBY;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The status should show CANCELLED, confirming that the process has stopped.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Monitoring the MRP Process<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Monitoring the status of the MRP process is essential for ensuring that the standby database remains synchronized with the primary.<br><br><strong>V$MANAGED_STANDBY<\/strong>: This view shows the status of all recovery processes on the standby database, including MRP.<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-sql\">SQL> SELECT PROCESS, STATUS, THREAD#, SEQUENCE# FROM V$MANAGED_STANDBY;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">V$ARCHIVED_LOG: Use this view to track the archived logs that are being applied to the standby database.<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-sql\">SQL> SELECT * FROM V$ARCHIVED_LOG WHERE DEST_ID = 2;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Data Guard Broker: If you&#8217;re using Oracle Data Guard Broker, you can manage and monitor Data Guard configurations through the DGMGRL command-line tool:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-\">DGMGRL> SHOW CONFIGURATION;\nDGMGRL> SHOW DATABASE 'standby_database_name';<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Managed Recovery Process (MRP) is crucial for keeping your standby database synchronized with the primary database in Oracle Data Guard. Starting and stopping the MRP process is straightforward, but regular monitoring is important for ensuring smooth replication and disaster recovery.<br><br>By following the steps outlined in this guide, you can efficiently manage the MRP process to maintain high availability and data protection for your Oracle database environment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Oracle Data Guard, the Managed Recovery Process (MRP) is essential for maintaining the synchronization of a standby database with the primary database. MRP applies redo logs from the primary database to the standby in real time, ensuring that the standby database is up-to-date and ready to take over in the event of a failure. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"googlesitekit_rrm_CAowu461DA:productID":"","footnotes":""},"categories":[1225],"tags":[],"class_list":["post-2233","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/posts\/2233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/comments?post=2233"}],"version-history":[{"count":2,"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/posts\/2233\/revisions"}],"predecessor-version":[{"id":2236,"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/posts\/2233\/revisions\/2236"}],"wp:attachment":[{"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/media?parent=2233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/categories?post=2233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/tags?post=2233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}