场景:主库在传输之前被删除导致出现gap
数据库版本:Oracle11.2.0.4
此时,备库依然可以接收来自主库的归档,但不会应用
Wed Dec 27 09:07:27 2017
FAL[client]: Failed to request gap sequence
GAP - thread 1 sequence 73-73
DBID 1485808053 branch 960908345
FAL[client]: All defined FAL servers have been attempted.
------------------------------------------------------------
Check that the CONTROL_FILE_RECORD_KEEP_TIME initialization
parameter is defined to a value that's sufficiently large
enough to maintain adequate log switch information to resolve
archivelog gaps.
------------------------------------------------------------
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
Database altered.
standby:
SQL> select checkpoint_change# from v$database;
CHECKPOINT_CHANGE#
------------------
1870938
primary:
SQL> select checkpoint_change# from v$database;
CHECKPOINT_CHANGE#
------------------
2182326
--备份控制文件
SQL> alter database create standby controlfile as '/home/oracle/chuli_standby_gap/standby.ctl';
Database altered.
RMAN> run
2> {
3> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK CLEAR;
4> allocate channel d1 type disk;
5> allocate channel d2 type disk;
6> allocate channel d3 type disk;
7> allocate channel d4 type disk;
8> BACKUP INCREMENTAL FROM SCN 1870938 database format '/home/oracle/chuli_standby_gap/forstandby_%d_%T_%s_%p.bkp';
release channel d1;
9> 10> release channel d2;
11> release channel d3;
12> release channel d4;
13> }
using target database control file instead of recovery catalog
RMAN configuration parameters are successfully reset to default value
allocated channel: d1
channel d1: SID=47 device type=DISK
allocated channel: d2
channel d2: SID=51 device type=DISK
allocated channel: d3
channel d3: SID=52 device type=DISK
allocated channel: d4
channel d4: SID=53 device type=DISK
Starting backup at 2017-04-26 23:09:39
channel d1: starting full datafile backup set
channel d1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/orcl/users01.dbf
channel d1: starting piece 1 at 2017-04-26 23:09:41
channel d2: starting full datafile backup set
channel d2: specifying datafile(s) in backup set
input datafile file number=00002 name=/u01/app/oracle/oradata/orcl/sysaux01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/orcl/undotbs01.dbf
channel d2: starting piece 1 at 2017-04-26 23:09:41
channel d3: starting full datafile backup set
channel d3: specifying datafile(s) in backup set
input datafile file number=00005 name=/u01/app/oracle/oradata/orcl/tbs_data01.dbf
input datafile file number=00006 name=/u01/app/oracle/oradata/orcl/undotbs02.dbf
channel d3: starting piece 1 at 2017-04-26 23:09:42
channel d4: starting full datafile backup set
channel d4: specifying datafile(s) in backup set
including current control file in backup set
channel d4: starting piece 1 at 2017-04-26 23:09:58
channel d4: finished piece 1 at 2017-04-26 23:10:14
piece handle=/home/oracle/chuli_standby_gap/forstandby_ORCL_20170426_94_1.bkp tag=TAG20170426T230939 comment=NONE
channel d4: backup set complete, elapsed time: 00:00:16
channel d3: finished piece 1 at 2017-04-26 23:12:24
piece handle=/home/oracle/chuli_standby_gap/forstandby_ORCL_20170426_93_1.bkp tag=TAG20170426T230939 comment=NONE
channel d3: backup set complete, elapsed time: 00:02:42
channel d1: finished piece 1 at 2017-04-26 23:13:24
piece handle=/home/oracle/chuli_standby_gap/forstandby_ORCL_20170426_91_1.bkp tag=TAG20170426T230939 comment=NONE
channel d1: backup set complete, elapsed time: 00:03:43
channel d2: finished piece 1 at 2017-04-26 23:13:24
piece handle=/home/oracle/chuli_standby_gap/forstandby_ORCL_20170426_92_1.bkp tag=TAG20170426T230939 comment=NONE
channel d2: backup set complete, elapsed time: 00:03:43
Finished backup at 2017-04-26 23:13:24
released channel: d1
released channel: d2
released channel: d3
released channel: d4
[oracle@orcl_adg chuli_standby_gap]$ scp * oracle@orcl:/home/oracle/20171227
The authenticity of host 'orcl (192.168.48.10)' can't be established.
RSA key fingerprint is e5:14:b0:f0:d6:d6:9f:0d:02:20:15:df:04:d3:1a:10.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'orcl,192.168.48.10' (RSA) to the list of known hosts.
oracle@orcl's password:
forstandby_ORCL_20170426_91_1.bkp 100% 32MB 31.9MB/s 00:01
forstandby_ORCL_20170426_92_1.bkp 100% 55MB 54.6MB/s 00:01
forstandby_ORCL_20170426_93_1.bkp 100% 44MB 44.1MB/s 00:01
forstandby_ORCL_20170426_94_1.bkp 100% 10MB 9.8MB/s 00:00
standby.ctl 100% 10MB 9.8MB/s 00:00
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup nomount;
ORACLE instance started.
Total System Global Area 776646656 bytes
Fixed Size 2257272 bytes
Variable Size 515903112 bytes
Database Buffers 255852544 bytes
Redo Buffers 2633728 bytes
--恢复控制文件,将备库起到mount状态
RMAN> restore standby controlfile from '/home/oracle/20171227/standby.ctl';
Starting restore at 2017-12-27 11:18:03
using channel ORA_DISK_1
channel ORA_DISK_1: copied control file copy
output file name=/u01/app/oracle/oradata/orcl/control01.ctl
output file name=/u01/app/oracle/fast_recovery_area/orcl/control02.ctl
Finished restore at 2017-12-27 11:18:04
RMAN> alter database mount;
--注册从主库传输过来的增量备份集
RMAN> catalog start with '/home/oracle/20171227' noprompt;
Starting implicit crosscheck backup at 2017-12-27 11:18:41
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=39 device type=DISK
Crosschecked 6 objects
Finished implicit crosscheck backup at 2017-12-27 11:18:43
Starting implicit crosscheck copy at 2017-12-27 11:18:43
using channel ORA_DISK_1
Crosschecked 2 objects
Finished implicit crosscheck copy at 2017-12-27 11:18:44
searching for all files in the recovery area
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_26/o1_mf_1_89_f42hzln1_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_26/o1_mf_1_92_f42zflxg_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_26/o1_mf_1_83_f42dt0xd_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_26/o1_mf_1_91_f42j0ydh_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_26/o1_mf_1_80_f42dm6xf_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_26/o1_mf_1_90_f42j0jpv_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_26/o1_mf_1_85_f42dvg4g_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_26/o1_mf_1_87_f42hv5j4_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_26/o1_mf_1_86_f42hrx9m_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_26/o1_mf_1_81_f42doffp_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_26/o1_mf_1_88_f42hxbkz_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_26/o1_mf_1_84_f42dtw1y_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_26/o1_mf_1_82_f42dqscx_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_10_22/o1_mf_1_301_dyqkb4j4_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_10_22/o1_mf_1_302_dyqkb4ym_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_10_22/o1_mf_1_4_dyqllv6n_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_10_22/o1_mf_1_5_dyqlly76_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_10_22/o1_mf_1_303_dyqkb42t_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_10_22/o1_mf_1_2_dyqkbr6o_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_10_22/o1_mf_1_3_dyqllsox_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_10_22/o1_mf_1_1_dyqkbljk_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_25/o1_mf_1_72_f416o1p3_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_25/o1_mf_1_63_f40wf5p1_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_25/o1_mf_1_77_f416nyc4_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_25/o1_mf_1_74_f416ny9y_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_25/o1_mf_1_64_f40wfctj_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_25/o1_mf_1_70_f414szxl_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_25/o1_mf_1_75_f416ny7b_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_25/o1_mf_1_76_f416nybz_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_25/o1_mf_1_69_f414szh0_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_25/o1_mf_1_71_f414wlo9_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_25/o1_mf_1_66_f414rmo6_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_25/o1_mf_1_68_f414sz1v_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_25/o1_mf_1_79_f416nyk2_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_25/o1_mf_1_78_f416nyhf_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_25/o1_mf_1_65_f414rlt7_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_25/o1_mf_1_67_f414ro5v_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_23/o1_mf_1_58_f3w90lml_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_23/o1_mf_1_57_f3w90rt5_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_04/o1_mf_1_31_f2bog6l9_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_04/o1_mf_1_34_f2boj8y0_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_04/o1_mf_1_33_f2boj229_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_04/o1_mf_1_30_f2bog15s_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_04/o1_mf_1_32_f2bohwwb_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_16/o1_mf_1_54_f3b7gl22_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_16/o1_mf_1_47_f39w0of9_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_16/o1_mf_1_50_f39xt9yy_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_16/o1_mf_1_56_f3b7gsxh_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_16/o1_mf_1_51_f3b7bmsb_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_16/o1_mf_1_45_f388f424_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_16/o1_mf_1_49_f39xod6o_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_16/o1_mf_1_53_f3b7g896_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_16/o1_mf_1_46_f38zw1v8_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_16/o1_mf_1_52_f3b7g8dc_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_16/o1_mf_1_48_f39xo65s_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_16/o1_mf_1_55_f3b7gkx6_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_27/o1_mf_1_29_f1r9vgz0_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_27/o1_mf_1_23_f1qjgr2f_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_27/o1_mf_1_16_f1qhdtt6_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_27/o1_mf_1_26_f1qlhv0h_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_27/o1_mf_1_21_f1qjgq2r_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_27/o1_mf_1_20_f1qjgpw4_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_27/o1_mf_1_27_f1qlhw27_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_27/o1_mf_1_22_f1qjgqys_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_27/o1_mf_1_17_f1qhdzgv_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_27/o1_mf_1_28_f1qlj198_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_27/o1_mf_1_25_f1qlhmd7_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_27/o1_mf_1_18_f1qj724k_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_27/o1_mf_1_19_f1qj9th2_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_27/o1_mf_1_24_f1qjh4v1_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_24/o1_mf_1_61_f3y4f2xl_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_24/o1_mf_1_59_f3y4f4c1_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_24/o1_mf_1_62_f3y4f44g_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_24/o1_mf_1_60_f3y4f309_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_4_f1hlcxjp_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_1_f1hl2k89_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_6_f1j2p6sm_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_12_f1j3nynh_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_10_f1j3k6k3_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_15_f1j6b0yl_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_2_f1hj1dcn_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_8_f1hj1bfr_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_9_f1j3dqq8_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_3_f1hl86o4_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_3_f1hj1dg9_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_4_f1hj1dxs_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_6_f1hk0t64_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_7_f1hddjxn_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_7_f1j2tmw4_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_8_f1j39pdh_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_5_f1j185tj_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_1_f1hj1dcx_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_2_f1hl2kgx_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_14_f1j6b0hn_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_5_f1hj1q2d_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_6_f1hddcfg_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_13_f1j64hmb_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_24/o1_mf_1_11_f1j3m2mk_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_18/o1_mf_1_56_f10do87b_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_1_f182fcrt_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_66_f17odvk7_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_60_f17lsbgn_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_13_f17wf871_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_70_f17p3ss4_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_83_f17rhvpb_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_76_f17pj6x3_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_5_f182okkl_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_10_f17wdgnx_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_3_f182n7c0_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_4_f17rhxp8_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_7_f17rxnjq_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_8_f17wd163_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_79_f17pjn6j_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_69_f17oj6ls_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_2_f182l6cb_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_57_f15z4bdz_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_78_f17pjh7b_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_67_f17ohcgo_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_11_f17wdlyr_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_72_f17p63rb_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_77_f17pjfl6_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_64_f17nkdg0_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_80_f17pjwr5_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_81_f17pk98d_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_6_f17rqbjo_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_63_f17mtp5n_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_15_f17wj64v_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_5_f17rj6pz_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_6_f182l6dx_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_74_f17p648o_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_1_f17rhvs1_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_62_f17lwcgf_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_4_f182ogdg_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_12_f17wds1l_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_58_f17gykrg_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_75_f17p6nb6_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_65_f17o11jo_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_1_f182kzrh_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_16_f182fcgy_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_2_f182fcs2_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_2_f17rhvsb_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_71_f17p4yd7_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_5_f182fq6l_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_4_f182fg38_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_61_f17lw6wj_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_9_f17wdffk_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_59_f17ls7n5_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_82_f17qngbt_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_14_f17wj58x_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_3_f17rhvv9_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_3_f182fctd_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_68_f17ohkj7_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_11_21/o1_mf_1_73_f17p63vd_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_15/o1_mf_1_41_f370ctvv_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_15/o1_mf_1_37_f36zyq7f_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_15/o1_mf_1_44_f37no3od_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_15/o1_mf_1_40_f3701bbc_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_15/o1_mf_1_42_f37bjbqb_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_15/o1_mf_1_36_f36cx4gb_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_15/o1_mf_1_43_f37gq62p_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_15/o1_mf_1_38_f36zyxj6_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_15/o1_mf_1_35_f367z77j_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_15/o1_mf_1_39_f3701199_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_27/o1_mf_1_84_f4648mwt_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_27/o1_mf_1_95_f45wh98h_.arc
File Name: /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_27/o1_mf_1_83_f4648mbx_.arc
searching for all files that match the pattern /home/oracle/20171227
List of Files Unknown to the Database
=====================================
File Name: /home/oracle/20171227/forstandby_ORCL_20170426_91_1.bkp
File Name: /home/oracle/20171227/standby.ctl
File Name: /home/oracle/20171227/forstandby_ORCL_20170426_94_1.bkp
File Name: /home/oracle/20171227/forstandby_ORCL_20170426_93_1.bkp
File Name: /home/oracle/20171227/forstandby_ORCL_20170426_92_1.bkp
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /home/oracle/20171227/forstandby_ORCL_20170426_91_1.bkp
File Name: /home/oracle/20171227/standby.ctl
File Name: /home/oracle/20171227/forstandby_ORCL_20170426_94_1.bkp
File Name: /home/oracle/20171227/forstandby_ORCL_20170426_93_1.bkp
File Name: /home/oracle/20171227/forstandby_ORCL_20170426_92_1.bkp
--恢复物理备库,恢复之前确认mrp进程是关闭的
RMAN> recover database;
Starting recover at 2017-12-27 11:20:21
using channel ORA_DISK_1
channel ORA_DISK_1: starting incremental datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
destination for restore of datafile 00001: /u01/app/oracle/oradata/orcl/system01.dbf
destination for restore of datafile 00004: /u01/app/oracle/oradata/orcl/users01.dbf
channel ORA_DISK_1: reading from backup piece /home/oracle/20171227/forstandby_ORCL_20170426_91_1.bkp
channel ORA_DISK_1: piece handle=/home/oracle/20171227/forstandby_ORCL_20170426_91_1.bkp tag=TAG20170426T230939
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
channel ORA_DISK_1: starting incremental datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
destination for restore of datafile 00002: /u01/app/oracle/oradata/orcl/sysaux01.dbf
destination for restore of datafile 00003: /u01/app/oracle/oradata/orcl/undotbs01.dbf
channel ORA_DISK_1: reading from backup piece /home/oracle/20171227/forstandby_ORCL_20170426_92_1.bkp
channel ORA_DISK_1: piece handle=/home/oracle/20171227/forstandby_ORCL_20170426_92_1.bkp tag=TAG20170426T230939
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:07
channel ORA_DISK_1: starting incremental datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
destination for restore of datafile 00005: /u01/app/oracle/oradata/orcl/tbs_data01.dbf
destination for restore of datafile 00006: /u01/app/oracle/oradata/orcl/undotbs02.dbf
channel ORA_DISK_1: reading from backup piece /home/oracle/20171227/forstandby_ORCL_20170426_93_1.bkp
channel ORA_DISK_1: piece handle=/home/oracle/20171227/forstandby_ORCL_20170426_93_1.bkp tag=TAG20170426T230939
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
starting media recovery
archived log for thread 1 with sequence 96 is already on disk as file /u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_27/o1_mf_1_96_f46485np_.arc
archived log file name=/u01/app/oracle/fast_recovery_area/ORCL/archivelog/2017_12_27/o1_mf_1_96_f46485np_.arc thread=1 sequence=96
unable to find archived log
archived log thread=1 sequence=97
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 12/27/2017 11:20:35
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 97 and starting SCN of 2192619
RMAN> exit
本次实验由于standby log不能使用导致不能恢复主库上的redo log,出现了这个错误。
SQL> alter database recover managed standby database using current logfile disconnect from session;
Database altered.