Oracle Data Guard:switchover and failover Introduction

Source: Internet
Author: User
Tags commit failover

The role switching between Data guard master and subordinate libraries is divided into the following two kinds:

1) Switchover

Swithchover are usually artificial and planned for role swaps, such as upgrades. It is usually lossless, that is, there will be no loss of data. Its implementation is mainly divided into two stages:

Primary to standby.

Standby (one) to primary

2) Failover

Failover means that because primary failure cannot be recovered for a short time, standby has to act as a primay role, which is likely to result in data loss if in the highest performance mode.

The following shows the physical standby switchover and failover (logical standby switching is similar).

1. Physical Standby Execution switchover

1 Confirm whether Pirmary can be switched to standby

Primary>select switchover_status from V$database;

Switchover_status

--------------------

To STANDBY

2) switch primary to standby

Primary>alter database commit to switchover to physical standby;

3) Starting the original primary to Mount state

At this time the original primary is to standby identity in operation.

4 Confirm whether standby can be switched to primary

Standby>select switchover_status from V$database;

Switchover_status

--------------------

To PRIMARY

5) switch standby to Primary

Standby>alter database commit to switchover to primary;

Database altered.

Standby>alter database open;

Database altered.

6) Verify

Primary>select database_role from V$database;

Database_role

Related Article

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.