1 | 问题:在创建rman多备份集的时候出现的问题:
RMAN> run 2> { 3> allocate channel c1 device type disk; 4> allocate channel c2 device type disk; 5> allocate channel c3 device type disk; 6> allocate channel c4 device type disk; 7> allocate channel c5 device type disk; 8> backup datafile 1 section size 150m tag='section_df1'; 9> }
allocated channel: c1 channel c1: SID=20 device type=DISK
allocated channel: c2 channel c2: SID=142 device type=DISK
allocated channel: c3 channel c3: SID=17 device type=DISK
allocated channel: c4 channel c4: SID=147 device type=DISK
allocated channel: c5 channel c5: SID=21 device type=DISK
Starting backup at 04-APR-16 released channel: c1 released channel: c2 released channel: c3 released channel: c4 released channel: c5 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of backup command at 04/04/2016 11:46:42 RMAN-06580: the SECBYTES option cannot be used with AS COPY
|
2 | 原因: RMAN> show all;
RMAN configuration parameters for database with db_unique_name PROD1 are: CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default CONFIGURE BACKUP OPTIMIZATION OFF; # default CONFIGURE DEFAULT DEVICE TYPE TO DISK; CONFIGURE CONTROLFILE AUTOBACKUP ON; CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COPY PARALLELISM 1;-------备份方式是copy CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default CONFIGURE MAXSETSIZE TO UNLIMITED; # default CONFIGURE ENCRYPTION FOR DATABASE OFF; # default CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_prod1.f'; # default
|
3 | 解决办法: RMAN> CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO backupset;----------备份方式改为备份集的方式
old RMAN configuration parameters: CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COPY PARALLELISM 1; new RMAN configuration parameters: CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET PARALLELISM 1; new RMAN configuration parameters are successfully stored
|
4 | 验证: RMAN> run { allocate channel c1 device type disk; allocate channel c2 device type disk; allocate channel c3 device type disk; allocate channel c4 device type disk; allocate channel c5 device type disk; backup datafile 1 section size 150m tag='section_df1'; }
allocated channel: c1 channel c1: SID=20 device type=DISK
allocated channel: c2 channel c2: SID=142 device type=DISK
allocated channel: c3 channel c3: SID=17 device type=DISK
allocated channel: c4 channel c4: SID=147 device type=DISK
allocated channel: c5 channel c5: SID=21 device type=DISK
Starting backup at 04-APR-16 channel c1: starting full datafile backup set channel c1: specifying datafile(s) in backup set input datafile file number=00001 name=/u01/app/oracle/oradata/prod1/system01.dbf backing up blocks 1 through 19200 channel c1: starting piece 1 at 04-APR-16 channel c2: starting full datafile backup set channel c2: specifying datafile(s) in backup set input datafile file number=00001 name=/u01/app/oracle/oradata/prod1/system01.dbf backing up blocks 19201 through 38400 channel c2: starting piece 2 at 04-APR-16 channel c3: starting full datafile backup set channel c3: specifying datafile(s) in backup set input datafile file number=00001 name=/u01/app/oracle/oradata/prod1/system01.dbf backing up blocks 38401 through 57600 channel c3: starting piece 3 at 04-APR-16 channel c4: starting full datafile backup set channel c4: specifying datafile(s) in backup set input datafile file number=00001 name=/u01/app/oracle/oradata/prod1/system01.dbf backing up blocks 57601 through 76800 channel c4: starting piece 4 at 04-APR-16 channel c5: starting full datafile backup set channel c5: specifying datafile(s) in backup set input datafile file number=00001 name=/u01/app/oracle/oradata/prod1/system01.dbf backing up blocks 76801 through 96000 channel c5: starting piece 5 at 04-APR-16 channel c1: finished piece 1 at 04-APR-16 piece handle=/u01/app/oracle/fast_recovery_area/PROD1/backupset/2016_04_04/o1_mf_nnndf_SECTION_DF1_cj3s1mpn_.bkp tag=SECTION_DF1 comment=NONE channel c1: backup set complete, elapsed time: 00:00:04 channel c2: finished piece 2 at 04-APR-16 piece handle=/u01/app/oracle/fast_recovery_area/PROD1/backupset/2016_04_04/o1_mf_nnndf_SECTION_DF1_cj3s1nhx_.bkp tag=SECTION_DF1 comment=NONE channel c2: backup set complete, elapsed time: 00:00:07 channel c3: finished piece 3 at 04-APR-16 piece handle=/u01/app/oracle/fast_recovery_area/PROD1/backupset/2016_04_04/o1_mf_nnndf_SECTION_DF1_cj3s1nk0_.bkp tag=SECTION_DF1 comment=NONE channel c3: backup set complete, elapsed time: 00:00:07 channel c4: finished piece 4 at 04-APR-16 piece handle=/u01/app/oracle/fast_recovery_area/PROD1/backupset/2016_04_04/o1_mf_nnndf_SECTION_DF1_cj3s1nl9_.bkp tag=SECTION_DF1 comment=NONE channel c4: backup set complete, elapsed time: 00:00:07 channel c5: finished piece 5 at 04-APR-16 piece handle=/u01/app/oracle/fast_recovery_area/PROD1/backupset/2016_04_04/o1_mf_nnndf_SECTION_DF1_cj3s1nmm_.bkp tag=SECTION_DF1 comment=NONE channel c5: backup set complete, elapsed time: 00:00:07 Finished backup at 04-APR-16
Starting Control File and SPFILE Autobackup at 04-APR-16 piece handle=/u01/app/oracle/fast_recovery_area/PROD1/autobackup/2016_04_04/o1_mf_s_908279356_cj3s1wmb_.bkp comment=NONE Finished Control File and SPFILE Autobackup at 04-APR-16 released channel: c1 released channel: c2 released channel: c3 released channel: c4 released channel: c5 |
5 | 查看生成的备份文件 [oracle@prod1 autobackup]$ ll 2016_04_04/ total 48000 -rw-r-----. 1 oracle oinstall 9830400 Apr 4 11:05 o1_mf_s_908275702_cj3pjbvf_.bkp -rw-r-----. 1 oracle oinstall 9830400 Apr 4 11:13 o1_mf_s_908275702_cj3py9hq_.bkp -rw-r-----. 1 oracle oinstall 9830400 Apr 4 11:23 o1_mf_s_908275702_cj3qlbsk_.bkp -rw-r-----. 1 oracle oinstall 9830400 Apr 4 11:49 o1_mf_s_908279342_cj3s1h39_.bkp -rw-r-----. 1 oracle oinstall 9830400 Apr 4 11:49 o1_mf_s_908279356_cj3s1wmb_.bkp [oracle@prod1 autobackup]$ cd .. [oracle@prod1 PROD1]$ ls archivelog autobackup backupset datafile onlinelog [oracle@prod1 PROD1]$ cd backupset/ [oracle@prod1 backupset]$ ls 2016_04_04 [oracle@prod1 backupset]$ ll 2016_04_04/ total 1229064 -rw-r-----. 1 oracle oinstall 90636288 Apr 4 12:01 o1_mf_nnndf_J_DBF1_cj3srk7d_.bkp -rw-r-----. 1 oracle oinstall 65765376 Apr 4 11:59 o1_mf_nnndf_JUNXIAO_DBF1_cj3snxfc_.bkp -rw-r-----. 1 oracle oinstall 75915264 Apr 4 11:59 o1_mf_nnndf_JUNXIAO_DBF1_cj3snxv4_.bkp -rw-r-----. 1 oracle oinstall 83394560 Apr 4 11:59 o1_mf_nnndf_JUNXIAO_DBF1_cj3snxwb_.bkp -rw-r-----. 1 oracle oinstall 91668480 Apr 4 11:59 o1_mf_nnndf_JUNXIAO_DBF1_cj3snzg5_.bkp -rw-r-----. 1 oracle oinstall 80019456 Apr 4 11:59 o1_mf_nnndf_JUNXIAO_DBF1_cj3so11v_.bkp -rw-r-----. 1 oracle oinstall 57344 Apr 4 11:59 o1_mf_nnndf_JUNXIAO_DBF1_cj3so1cq_.bkp -rw-r-----. 1 oracle oinstall 401408 Apr 4 12:04 o1_mf_nnndf_KK_DBF_cj3sxzvm_.bkp -rw-r-----. 1 oracle oinstall 409600 Apr 4 12:04 o1_mf_nnndf_KK_DBF_cj3sy0c2_.bkp -rw-r-----. 1 oracle oinstall 409600 Apr 4 12:04 o1_mf_nnndf_KK_DBF_cj3sy0d8_.bkp -rw-r-----. 1 oracle oinstall 409600 Apr 4 12:04 o1_mf_nnndf_KK_DBF_cj3sy0mw_.bkp -rw-r-----. 1 oracle oinstall 409600 Apr 4 12:04 o1_mf_nnndf_KK_DBF_cj3sy0vm_.bkp -rw-r-----. 1 oracle oinstall 409600 Apr 4 12:04 o1_mf_nnndf_KK_DBF_cj3sy15f_.bkp -rw-r-----. 1 oracle oinstall 409600 Apr 4 12:04 o1_mf_nnndf_KK_DBF_cj3sy1fy_.bkp -rw-r-----. 1 oracle oinstall 409600 Apr 4 12:04 o1_mf_nnndf_KK_DBF_cj3sy1or_.bkp -rw-r-----. 1 oracle oinstall 409600 Apr 4 12:04 o1_mf_nnndf_KK_DBF_cj3sy1xb_.bkp 。。。。。。。。。。。。。 |
6 | 验证数据文件备份 RMAN> validate datafile 1 section size 150m;
Starting validate at 04-APR-16 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=22 device type=DISK channel ORA_DISK_1: starting validation of datafile channel ORA_DISK_1: specifying datafile(s) for validation input datafile file number=00001 name=/u01/app/oracle/oradata/prod1/system01.dbf validating blocks 1 through 19200 channel ORA_DISK_1: validation complete, elapsed time: 00:00:01 channel ORA_DISK_1: starting validation of datafile channel ORA_DISK_1: specifying datafile(s) for validation input datafile file number=00001 name=/u01/app/oracle/oradata/prod1/system01.dbf validating blocks 19201 through 38400 channel ORA_DISK_1: validation complete, elapsed time: 00:00:01 channel ORA_DISK_1: starting validation of datafile channel ORA_DISK_1: specifying datafile(s) for validation input datafile file number=00001 name=/u01/app/oracle/oradata/prod1/system01.dbf validating blocks 38401 through 57600 channel ORA_DISK_1: validation complete, elapsed time: 00:00:01 channel ORA_DISK_1: starting validation of datafile channel ORA_DISK_1: specifying datafile(s) for validation input datafile file number=00001 name=/u01/app/oracle/oradata/prod1/system01.dbf validating blocks 57601 through 76800 channel ORA_DISK_1: validation complete, elapsed time: 00:00:01 channel ORA_DISK_1: starting validation of datafile channel ORA_DISK_1: specifying datafile(s) for validation input datafile file number=00001 name=/u01/app/oracle/oradata/prod1/system01.dbf validating blocks 76801 through 96000 channel ORA_DISK_1: validation complete, elapsed time: 00:00:01 List of Datafiles ================= File Status Marked Corrupt Empty Blocks Blocks Examined High SCN ---- ------ -------------- ------------ --------------- ---------- 1 OK 0 14644 96071 1067580 File Name: /u01/app/oracle/oradata/prod1/system01.dbf Block Type Blocks Failing Blocks Processed ---------- -------------- ---------------- Data 0 63473 Index 0 13174 Other 0 4705
channel ORA_DISK_1: starting validation of datafile channel ORA_DISK_1: specifying datafile(s) for validation including current control file for validation including current SPFILE in backup set channel ORA_DISK_1: validation complete, elapsed time: 00:00:01 List of Control File and SPFILE =============================== File Type Status Blocks Failing Blocks Examined ------------ ------ -------------- --------------- SPFILE OK 0 2 Control File OK 0 756 Finished validate at 04-APR-16
|
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30606702/viewspace-2074933/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/30606702/viewspace-2074933/