Oracle 11g Data Guard Enabling Active Data Guard

Oracle 11g Data Guard Enabling Active Data Guard 

开启ADG需要standby database instance redo-only mode and starting redo logfiles

 

The general process of enabling Active Data Guard is as simple as opening the

standby database in read-only mode and starting Redo Apply.

This section describes how to enable Active Data Guard on a standby database.

1. If the standby instance and redo apply have been cleanly shut down

a. Using SQL*PlusMaximum Availability Architecture

Oracle Active Data Guard: Oracle Data Guard 11g Page 9

i. Start the standby instance in read-only mode.

SQL> startup

ii. Once the database is open, start Redo Apply:

SQL> recover managed standby database disconnect

using current logfile;

b. If you are using the Data Guard broker to manage your Data

Guard configuration

i. Start the standby instance in read-only mode. Connect

to the standby instance using DGMGRL and issue the

following command:

DGMGRL> startup

ii. The default state for the standby database is APPLY ON

and Redo Apply starts automatically. If the default has

been changed, then start Redo Apply by issuing the

following command:

DGMGRL> EDIT DATABASE ‘RTQ' SET STATE=‘APPLY-ON’

2. If the standby database is mounted and redo apply is running using the following steps

a. Using SQL*Plus

i. Stop redo apply

SQL> recover managed standby database cancel;

ii. Open the database read only

SQL> alter database open read only;

iii. Once the database is open, start redo apply:

SQL> recover managed standby database disconnect

using current logfile;

b. If you are using the Data Guard broker to manage your Data

Guard configuration

i. Stop redo apply using DGMGRL

DGMGRL> EDIT DATABASE ‘RTQ' SET STATE=‘APPLY-OFF’

ii. In SQL*Plus open the database read only

SQL> alter database open read only;

iii. Restart redo apply by issuing the following command:

DGMGRL> EDIT DATABASE ‘RTQ' SET STATE=‘APPLY-ON’

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值