Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Oracle 11g R2 Snapshot Standby

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Oracle 11g introduces Snapshot Standby to allow standby database to open in read-write mode. When you switch back to standby mode, all changes in read-write mode are lost. It is implemented through flashback database, but standby database does not need to explicitly enable flashback database.

If you use RAC, close all other instances and keep one instance. Make sure the instance is in mount mode.

Shutdown immediate

Startup mount

1. Close managed recovery

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL

two。 Convert standby to a snapshot standby.

SELECT flashback_on FROM v$database

FLASHBACK_ON

-

NO

ALTER DATABASE CONVERT TO SNAPSHOT STANDBY

ALTER DATABASE OPEN

SELECT flashback_on FROM v$database

FLASHBACK_ON

-

RESTORE POINT ONLY

When you're done, you can treat standby like any read-write database.

3. Convert standby back to physical standby, losing all modifications after conversion to snapshot standby.

SHUTDOWN IMMEDIATE

STARTUP MOUNT

ALTER DATABASE CONVERT TO PHYSICAL STANDBY

SHUTDOWN IMMEDIATE

STARTUP NOMOUNT

ALTER DATABASE MOUNT STANDBY DATABASE

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT

SELECT flashback_on FROM v$database

FLASHBACK_ON

-

NO

Now standby is back to managed recovery and the transfer of archived logs is restored.

Notice that flashback database is still not open.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report