验证oracle 11g数据库的RMAN备份的有效性
短信预约 -IT技能 免费直播动态提醒
[oracle@db1 ~]$ rman target /
Recovery Manager: Release 11.2.0.3.0 - Production on Tue Dec 12 16:08:43 2017
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: PRD (DBID=893924085)
RMAN> list backup of database;
using target database control file instead of recovery catalog
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
18552 Full 5.70G DISK 00:10:08 08-DEC-17
BP Key: 18552 Status: AVAILABLE Compressed: YES Tag: TAG20171208T230015
Piece Name: /backup/scprd1/rman/Full_SCPRD_20171208_18569.bak
List of Datafiles in backup set 18552
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
6 Full 1353576289 08-DEC-17 +DATA/scprd/datafile/sce_common.296.929901311
7 Full 1353576289 08-DEC-17 +DATA/scprd/datafile/sce_component.298.929901313
10 Full 1353576289 08-DEC-17 +DATA/scprd/datafile/wmwhse3_data.304.929901317
17 Full 1353576289 08-DEC-17 +DATA/scprd/datafile/wmwhse10_data.318.929901327
21 Full 1353576289 08-DEC-17 +DATA/scprd/datafile/wmwhse14_data.326.929901333
25 Full 1353576289 08-DEC-17 +DATA/scprd/datafile/wmwhse18_data.334.929901339
27 Full 1353576289 08-DEC-17 +DATA/scprd/datafile/wmwhse20_data.338.929901343
30 Full 1353576289 08-DEC-17 +DATA/scprd/datafile/wmwhse16_data.392.938904035
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
18674 Full 5.73G DISK 00:09:39 11-DEC-17
BP Key: 18674 Status: AVAILABLE Compressed: YES Tag: TAG20171211T230016
Piece Name: /backup/scprd1/rman/Full_SCPRD_20171211_18691.bak
List of Datafiles in backup set 18674
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
6 Full 1363677571 11-DEC-17 +DATA/scprd/datafile/sce_common.296.929901311
7 Full 1363677571 11-DEC-17 +DATA/scprd/datafile/sce_component.298.929901313
10 Full 1363677571 11-DEC-17 +DATA/scprd/datafile/wmwhse3_data.304.929901317
17 Full 1363677571 11-DEC-17 +DATA/scprd/datafile/wmwhse10_data.318.929901327
21 Full 1363677571 11-DEC-17 +DATA/scprd/datafile/wmwhse14_data.326.929901333
25 Full 1363677571 11-DEC-17 +DATA/scprd/datafile/wmwhse18_data.334.929901339
27 Full 1363677571 11-DEC-17 +DATA/scprd/datafile/wmwhse20_data.338.929901343
30 Full 1363677571 11-DEC-17 +DATA/scprd/datafile/wmwhse16_data.392.938904035
RMAN> validate backupset 18674;
Starting validate at 12-DEC-17
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=3401 instance=SCPRD1 device type=DISK
channel ORA_DISK_1: starting validation of datafile backup set
channel ORA_DISK_1: reading from backup piece /backup/scprd1/rman/Full_SCPRD_20171211_18691.bak
channel ORA_DISK_1: piece handle=/backup/scprd1/rman/Full_SCPRD_20171211_18691.bak tag=TAG20171211T230016
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: validation complete, elapsed time: 00:11:45
Finished validate at 12-DEC-17
只针对RMAN的FULL全备进行验证。
Recovery Manager: Release 11.2.0.3.0 - Production on Tue Dec 12 16:08:43 2017
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: PRD (DBID=893924085)
RMAN> list backup of database;
using target database control file instead of recovery catalog
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
18552 Full 5.70G DISK 00:10:08 08-DEC-17
BP Key: 18552 Status: AVAILABLE Compressed: YES Tag: TAG20171208T230015
Piece Name: /backup/scprd1/rman/Full_SCPRD_20171208_18569.bak
List of Datafiles in backup set 18552
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
6 Full 1353576289 08-DEC-17 +DATA/scprd/datafile/sce_common.296.929901311
7 Full 1353576289 08-DEC-17 +DATA/scprd/datafile/sce_component.298.929901313
10 Full 1353576289 08-DEC-17 +DATA/scprd/datafile/wmwhse3_data.304.929901317
17 Full 1353576289 08-DEC-17 +DATA/scprd/datafile/wmwhse10_data.318.929901327
21 Full 1353576289 08-DEC-17 +DATA/scprd/datafile/wmwhse14_data.326.929901333
25 Full 1353576289 08-DEC-17 +DATA/scprd/datafile/wmwhse18_data.334.929901339
27 Full 1353576289 08-DEC-17 +DATA/scprd/datafile/wmwhse20_data.338.929901343
30 Full 1353576289 08-DEC-17 +DATA/scprd/datafile/wmwhse16_data.392.938904035
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
18674 Full 5.73G DISK 00:09:39 11-DEC-17
BP Key: 18674 Status: AVAILABLE Compressed: YES Tag: TAG20171211T230016
Piece Name: /backup/scprd1/rman/Full_SCPRD_20171211_18691.bak
List of Datafiles in backup set 18674
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
6 Full 1363677571 11-DEC-17 +DATA/scprd/datafile/sce_common.296.929901311
7 Full 1363677571 11-DEC-17 +DATA/scprd/datafile/sce_component.298.929901313
10 Full 1363677571 11-DEC-17 +DATA/scprd/datafile/wmwhse3_data.304.929901317
17 Full 1363677571 11-DEC-17 +DATA/scprd/datafile/wmwhse10_data.318.929901327
21 Full 1363677571 11-DEC-17 +DATA/scprd/datafile/wmwhse14_data.326.929901333
25 Full 1363677571 11-DEC-17 +DATA/scprd/datafile/wmwhse18_data.334.929901339
27 Full 1363677571 11-DEC-17 +DATA/scprd/datafile/wmwhse20_data.338.929901343
30 Full 1363677571 11-DEC-17 +DATA/scprd/datafile/wmwhse16_data.392.938904035
RMAN> validate backupset 18674;
Starting validate at 12-DEC-17
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=3401 instance=SCPRD1 device type=DISK
channel ORA_DISK_1: starting validation of datafile backup set
channel ORA_DISK_1: reading from backup piece /backup/scprd1/rman/Full_SCPRD_20171211_18691.bak
channel ORA_DISK_1: piece handle=/backup/scprd1/rman/Full_SCPRD_20171211_18691.bak tag=TAG20171211T230016
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: validation complete, elapsed time: 00:11:45
Finished validate at 12-DEC-17
只针对RMAN的FULL全备进行验证。
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341