rac rman恢复的稳妥方法


1、停止业务

2、源库两个节点执行
Alter system archive log current;
Alter system archive log current;
Alter system archive log current;
Archive log list;
shutdown immediate;

3、关监听:grid用户下 执行
lsnrctl stop
lsnrctl stop LISTENER_SCAN1
两个节点都需要执行,并确认监听已经关闭: crsctl status res -t

srvctl disable listener -l LISTENER

4、在两个节点上 startup;


5、在 rman中执行备份归档日志文件:

sqlplus: 两个节点都需要操作
Alter system archive log current;
Alter system archive log current;
Alter system archive log current;
Alter system archive log current;
Alter system archive log current;

一个节点备份归档:
backup archivelog all format '/orabak/hsdb/%T_%s_%c_%d_%p.dbbak.arcinc';


6、执行如下的查询:
alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';
select file#,rfile#,creation_time,status,checkpoint_change#,checkpoint_time,bytes/1024/1024 MB,name from v$datafile;


7、将备份的归档传输到目的库


8、目标库中重新进行注册:
catalog start with '/orabak/hsdb';


9、目标库recover database;

这里需要通过第6步的结果确定好恢复的最终时间点

猜你喜欢

转载自www.cnblogs.com/chendian0/p/11367133.html
今日推荐