DATAGUARD 3种模式的以及REDO LOG实时应用


一、DG 3种模式的LOG_ARCHIVE_DEST_n 设置


Maximum Availability Maximum Performance Maximum Protection

AFFIRM

NOAFFIRM

AFFIRM

SYNC

ASYNC

SYNC

DB_UNIQUE_NAME

DB_UNIQUE_NAME

DB_UNIQUE_NAME

Execute the following SQL statement on the primary database:
SQL> ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE {AVAILABILITY | PERFORMANCE | PROTECTION};

Note that the data protection mode can be set to MAXIMUM PROTECTION on an open database only if the current data protection mode is MAXIMUM AVAILABILITY and if there is at least one synchronized standby database.

SELECT PROTECTION_MODE FROM V$DATABASE;

参考文档:http://docs.oracle.com/cd/E11882_01/server.112/e41134/protection.htm#SBYDB4744

二、DATAGUARD 的实时应用REDO LOG 

DATAGUARD 的实时应用REDO LOG,与 DATAGUARD的3种模式无关。具备两个条件即可:
(1)有standby redo log ,select * from v$standby_log
(2)处于ARCHIVELOG 模式。
(3)ALTER DATABASE 语句启用实时应用REDO LOG.

Use the ALTER DATABASE statement to enable the real-time apply feature, as follows:
For physical standby databases: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE statement.
For logical standby databases: ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATE statement.



官方文档:
http://docs.oracle.com/cd/E11882_01/server.112/e41134/log_apply.htm#SBYDB4762
Using  Real-Time Apply to Apply Redo Data Immediately

If the real-time apply feature is enabled, apply services can apply redo data as it is received, without waiting for the current standby redo log file to be archived. This results in faster switchover and failover times because the standby redo log files have been applied already to the standby database by the time the failover or switchover begins.

Use the ALTER DATABASE statement to enable the real-time apply feature, as follows:

  • For physical standby databases, issue the ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE statement.

  • For logical standby databases, issue the ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATE statement.

Real-time apply requires a standby database that is configured with a standby redo log and that is in ARCHIVELOG mode.

Figure 7-1 shows a Data Guard configuration with a local destination and a standby destination. As the remote file server (RFS) process writes the redo data to standby redo log files on the standby database, apply services can recover redo from standby redo log files as they are being filled.

Figure 7-1 Applying Redo Data to a Standby Destination Using Real-Time Apply

De.ion of Figure 7-1 follows
Description of "Figure 7-1 Applying Redo Data to a Standby Destination Using Real-Time Apply"






来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10995764/viewspace-2127276/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10995764/viewspace-2127276/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值