ITPub博客

首页 > 数据库 > Oracle > oracle duplicate传输数据中断处理

oracle duplicate传输数据中断处理

原创 Oracle 作者:wanglinghua0907 时间:2024-01-25 14:34:14 0 删除 编辑

如果考到一半,缺了部分数据文件

方法:

重新考失败的数据文件,如下图,缺少了1、2、5数据文件

Starting backup at 06-MAY-22 using channel channel : starting datafile copy input datafile file number-nea3 output file name=/oradata/data/ol tag-TAG2e2205e6T17e108 channel : datafile copy complete, elapsed time: 15 channel : sta rtin datafile copy input datafile file numbe eeeal ame=/tmp/soft/app/orac1e/oradata/WLH/datafi1e/01 dbf RMAN-03eeg : failure of bac up conunand on channel at B5/a6/2022 17:01 ORA-17627: ORA-12577: Message 12577 not found; product=RDBMS; facility=ORA continuing other job steps, job failed will not be re- run channel : sta rtin datafile copy input datafile file numbe =ooea5 ame= /tmp/ soft/ app 'oracle /oradata/WLH/ datafile /bb01 . dbf RMAN-B3eeg : failure of ba nd on Channel at 05/06/2022 17 ORA-17627: ORA-12577: Message 12577 not found; product=RDBMS; facility=ORA continuing other job steps, job failed will not be re-run channel : start ile copy input datafile file numbe =00802 ame=/tmp/soft/app/orac1e/oradata/WLH/datafi1e/01 dbf RMAN-B3eeg : failure of backup conmand on ORA_DISK_I channel at 05/86/2022 17 :32 ORA-17627: ORA-12577: Message 12577 not found; product=RDBMS; facility=ORA continuing other job steps, job failed will not be re-run channel : starting datafile copy input datafile file number=00Bd4 output file name=/oradata/data/ol dbf tag=TAG2B22e506T170188 channel : datafile copy complete, elapsed time: ee RMAN-ee571 :


备库执行。


如果是缺数据文件

连接

rman target sys/oracle@blj auxiliary sys/oracle@bljdg

拷 1,2,5号数据文件,后面的format是指定备库恢复出来的位置和名字。

backup as copy reuse datafile 1 auxiliary format '/oradata/data/system01.dbf';

backup as copy reuse datafile 5 auxiliary format '/oradata/data/bb01.dbf';

backup as copy reuse datafile 2 auxiliary format '/oradata/data/sysaux01.dbf';


如果是缺控制文件

连接

rman target sys/oracle@blj auxiliary sys/oracle@bljdg

考一个控制文件过来   

backup as copy current controlfile for standby auxiliary format '/oracle/con/control01.ctl';

克隆一个控制文件

restore clone controlfile to  '/oracle/con/control02.ctl' from '/oracle/con/control01.ctl';


如果是缺归档文件

连接

rman target sys/oracle@blj auxiliary sys/oracle@bljdg

拷归档/oracle/arch/1_13_1103888056.dbf到目标端/oracle/oradata/data/hahaha.dbf

backup as copy reuse archivelog like '/oracle/arch/1_13_1103888056.dbf' auxiliary format '/oracle/oradata/data/hahaha.dbf';


主库刷一下defer

alter system set log_archive_dest_state_2=defer;

alter system set log_archive_dest_state_2=enable;

select dest_name,status,error from v$archive_dest where dest_id=2;


主库看dest_的error

DEST_NAME STATUS ERROR ORA-16B58: ERROR standby database instance is not mounted


重启备库即可。


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

请登录后发表评论 登录
全部评论
Oracle ACE、sql server、oceanbase数据库专家,拥有7年以上的大型数据库运维经验,主方向oracle,擅长故障排除、诊断,大体量(TB)迁移,异常故障修复等。拥有丰富主导大型项目经验。服务行业包括:运营商、银行、金融业、政府单位、医疗、制造业、高校等等。

注册时间:2020-07-31

  • 博文量
    116
  • 访问量
    88794