Step byStep Guide on Creating Physical Standby Using RMAN DUPLICATE

ORACLE_DATAGUARD_Step byStep Guide on Creating Physical Standby Using RMAN DUPLICATE(Just rebuild the standby database.)

--- Filename: Rebuild the standby database using rman duplicate

Rebuild  the standby database:

1.  On the standby database:  make the instance nomount, and start the listener

# su - oracle

$ env |grep ORACLE

$ lsnrctl start <LISTENER_NAME>

$ ps -ef|grep tns

$ sqlplus / as sysdba

SQL> startup nomount;

 

2.  On the primary database:  Duplicate the standby database

# su - oracle

$ rman target sys/password@primary auxiliary sys/password@standby

RMAN>

run {

allocate channel prmy1 type disk;

allocate channel prmy2 type disk;

allocate channel prmy3 type disk;

allocate channel prmy4 type disk;

allocate auxiliary channel stby type  disk;

duplicate target database for standby  from active database nofilenamecheck;

}

 

3.  On the standby database:  Check the status of the standby database,  and open the recover managed mode

$sqlplus / as sysdba

SQL> set linesize 400

SQL> select status from v$instance;

SQL> alter database open;   <======= If the  database have mounted,please open.

SQL> alter database recover managed  standby database disconnect;

SQL> select  process,status,thread#,sequence#,block#,blocks from v$managed_standby;   <==== Check the MRP and RFS processes

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值