Failover of the logical standby database (logicalstandbyfailover)

Source: Internet
Author: User
In Oracle10glogicalstandby mode, if the master database fails, the slave database can be quickly switched to the master database. See 7.3.2Fa in oracle official documentation

In Oracle 10g logical standby mode, if the master database fails, the slave database can be quickly switched to the master database. See 7.3.2 Fa in oracle official documentation

In Oracle 10g logical standby mode, if the master database fails, the slave database can be quickly switched to the master database.

Refer to chapter 7.3.2 Failovers Involving a Logical Standby Database in the oracle official document. The switchover process is described in detail.

The following three steps are summarized based on the actual project requirements.

Step 1: Disable the application mode of the logical standby database, and close all archived log files, minimizing data loss.

Use this SQL statement to check the log application.

SELECT APPLIED_SCN, LATEST_SCN from v $ LOGSTDBY_PROGRESS;

Select to_char (applied_scn), to_char (latest_scn) from v $ logstdby_progress;

If the two values are equal, proceed to the next step.

If the SQL application mode is not active, you can enable it.

SQL> ALTER DATABASE START LOGICAL STANDBY APPLY FINISH;

Database altered.

After the SQL application is completed, disable the SQL application mode. Here I restarted the database directly.

SQL> alter database open;

Database altered.

Step 2: Convert the logical standby database to the master database

SQL> ALTER DATABASE ACTIVATE LOGICAL STANDBY DATABASE FINISH APPLY;

Database altered.

This statement stops the RFS process, applies the redo logs in all standby redo log files, stops the SQL application, and switches the slave database to the master database.

If finish apply is not specified, the redo log information in the standby redo log file will not be applied.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.