Image Copy Incremental Updates(ICIU):concepts

9935 ワード

1つの役割は、Redoの運用量を制限し、リカバリ時間を短縮する2つの原理でデータファイルのミラーコピーを作成し、その後、インクリメンタルバックアップセットでミラーコピーを更新することです.すなわち、1レベルのインクリメンタルバックアップセットを既存のミラーコピーに組み込む3つのテストです.
①シナリオ
RMAN> run { 
2> recover copy of database with tag 'ICIU1'; 
3> backup 
4> incremental level 1 tag 'ICIU1' 
5> for recover of copy with tag 'ICIU1' 
6> database plus archivelog delete input; 
7> } 

ここで、for recover of copy with tag、これはRMANに、作成されたインクリメンタルバックアップセットがミラーコピーに使用されることを示す②スクリプトが毎日実行できることを注記し、毎日実行:I recover copyコマンド前日の1レベルインクリメンタルバックアップで各データファイルのミラーコピーを更新ミラーコピーが見つからない場合は更新または1レベルインクリメンタルバックアップでrecover copyコマンドを使用すると簡単にメッセージが送信されます.ただし、Ibackupコマンドは1レベルのインクリメンタルバックアップセットを作成しますが、0レベルのミラーコピーが存在しない場合は、まず、backupコマンドは0レベルのミラーを作成します.したがって、いつでも、リカバリに使用できるのは、(1)最大48時間のミラー・コピー(2)最大24時間の1レベルのインクリメンタル・バックアップ・セット(3)オンラインおよびアーカイブ・ログで、完全なリカバリをサポートしたり、時点ベースのリカバリでこのポリシーを使用したり、完全なリカバリを1回実行したりすることです.24時間を超えるアーカイブ・ログrecover copyコマンドは、すべての1レベルのインクリメンタル・バックアップ・セットを「ICIU 1」ラベルのあるミラー・コピーに使用します.2本のコマンドのタグは必須③初回実行【レベル0ミラーコピー作成】初回実行ICIUスクリプト:●recover copy更新可能なミラーコピーが見つからないため、RMANは「no copy of datafile 1 found to recover」を返します●backupコマンドは、ここに0レベルのミラーコピーがないことを認識します(メッセージ「no parent backup or copy of datafile 1 found」を参照)、RMANはデータファイルごとに0レベルのミラーコピーを作成します
RMAN> run{
2>       recover copy of database with tag 'ICIU007';
3>       backup
4>            incremental level 1 tag 'ICIU007'
5>            for recover of copy with tag 'ICIU007'
6>            database plus archivelog delete input;
7>       }

Starting recover at 06-APR-13
using channel ORA_DISK_1
no copy of datafile 1 found to recover
no copy of datafile 2 found to recover
no copy of datafile 3 found to recover
no copy of datafile 4 found to recover
Finished recover at 06-APR-13
......
......
  N  
......
Starting backup at 06-APR-13
using channel ORA_DISK_1
no parent backup or copy of datafile 1 found
no parent backup or copy of datafile 3 found
no parent backup or copy of datafile 2 found
no parent backup or copy of datafile 4 found
channel ORA_DISK_1: starting datafile copy
input datafile fno=00001 name=/u01/app/oracle/oradata/oracle10/system01.dbf
output filename=/u01/app/oracle/flash_recovery_area/ORACLE10G/datafile/o1_mf_system_8p06t0nt_.dbf tag=ICIU007 recid=3 stamp=812062572
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:46
channel ORA_DISK_1: starting datafile copy
input datafile fno=00003 name=/u01/app/oracle/oradata/oracle10/sysaux01.dbf
output filename=/u01/app/oracle/flash_recovery_area/ORACLE10G/datafile/o1_mf_sysaux_8p06vgsb_.dbf tag=ICIU007 recid=4 stamp=812062601
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:27
channel ORA_DISK_1: starting datafile copy
input datafile fno=00002 name=/u01/app/oracle/oradata/oracle10/undotbs01.dbf
output filename=/u01/app/oracle/flash_recovery_area/ORACLE10G/datafile/o1_mf_undotbs1_8p06wb6c_.dbf tag=ICIU007 recid=5 stamp=812062604
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
channel ORA_DISK_1: starting datafile copy
input datafile fno=00004 name=/u01/app/oracle/oradata/oracle10/users01.dbf
output filename=/u01/app/oracle/flash_recovery_area/ORACLE10G/datafile/o1_mf_users_8p06wffr_.dbf tag=ICIU007 recid=6 stamp=812062605
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
channel ORA_DISK_1: starting incremental level 1 datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current control file in backupset
......
......

④2回目の実行【レベル1インクリメンタルバックアップセットの作成】ICIUスクリプトの2回目の実行:●backupコマンドレベル1インクリメンタルバックアップの作成●recover copyコマンドはまだ機能していません.レベル1のインクリメンタルバックアップはまだありませんが、「no copy of datafile 1 found to recover」というメッセージは多少誤導的です
RMAN> run{
2>       recover copy of database with tag 'ICIU007';
3>       backup
4>            incremental level 1 tag 'ICIU007'
5>            for recover of copy with tag 'ICIU007'
6>            database plus archivelog delete input;
7>       }

Starting recover at 07-APR-13
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=139 devtype=DISK
no copy of datafile 1 found to recover
no copy of datafile 2 found to recover
no copy of datafile 3 found to recover
no copy of datafile 4 found to recover
Finished recover at 07-APR-13


Starting backup at 07-APR-13
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=11 recid=9 stamp=812149977
channel ORA_DISK_1: starting piece 1 at 07-APR-13
channel ORA_DISK_1: finished piece 1 at 07-APR-13
piece handle=/u01/app/oracle/flash_recovery_area/ORACLE10G/backupset/2013_04_07/o1_mf_annnn_ICIU007_8p2w6tv2_.bkp tag=ICIU007 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
channel ORA_DISK_1: deleting archive log(s)
archive log filename=/u01/app/oracle/flash_recovery_area/ORACLE10G/archivelog/2013_04_07/o1_mf_1_11_8p2w6sbt_.arc recid=9 stamp=812149977
Finished backup at 07-APR-13

Starting backup at 07-APR-13
using channel ORA_DISK_1
channel ORA_DISK_1: starting incremental level 1 datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=/u01/app/oracle/oradata/oracle10/system01.dbf
input datafile fno=00003 name=/u01/app/oracle/oradata/oracle10/sysaux01.dbf
input datafile fno=00002 name=/u01/app/oracle/oradata/oracle10/undotbs01.dbf
input datafile fno=00004 name=/u01/app/oracle/oradata/oracle10/users01.dbf
channel ORA_DISK_1: starting piece 1 at 07-APR-13
channel ORA_DISK_1: finished piece 1 at 07-APR-13
piece handle=/u01/app/oracle/flash_recovery_area/ORACLE10G/backupset/2013_04_07/o1_mf_nnnd1_ICIU007_8p2w6y6y_.bkp tag=ICIU007 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:07
channel ORA_DISK_1: starting incremental level 1 datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current control file in backupset
......
......

⑤3回目ICIUスクリプトを3回目実行:●recover copyコマンド前日に作成したインクリメンタル1セットバックアップセットからデータファイルミラーコピーへ●backupコマンドで新しい1レベルインクリメンタルバックアップセットを作成
RMAN> run{
2>       recover copy of database with tag 'ICIU007';
3>       backup
4>            incremental level 1 tag 'ICIU007'
5>            for recover of copy with tag 'ICIU007'
6>            database plus archivelog delete input;
7>       }

Starting recover at 08-APR-13
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=139 devtype=DISK
channel ORA_DISK_1: starting incremental datafile backupset restore
channel ORA_DISK_1: specifying datafile copies to recover
recovering datafile copy fno=00001 name=/u01/app/oracle/flash_recovery_area/ORACLE10G/datafile/o1_mf_system_8p06t0nt_.dbf
recovering datafile copy fno=00002 name=/u01/app/oracle/flash_recovery_area/ORACLE10G/datafile/o1_mf_undotbs1_8p06wb6c_.dbf
recovering datafile copy fno=00003 name=/u01/app/oracle/flash_recovery_area/ORACLE10G/datafile/o1_mf_sysaux_8p06vgsb_.dbf
recovering datafile copy fno=00004 name=/u01/app/oracle/flash_recovery_area/ORACLE10G/datafile/o1_mf_users_8p06wffr_.dbf
channel ORA_DISK_1: reading from backup piece /u01/app/oracle/flash_recovery_area/ORACLE10G/backupset/2013_04_07/o1_mf_nnnd1_ICIU007_8p2w6y6y_.bkp
channel ORA_DISK_1: restored backup piece 1
piece handle=/u01/app/oracle/flash_recovery_area/ORACLE10G/backupset/2013_04_07/o1_mf_nnnd1_ICIU007_8p2w6y6y_.bkp tag=ICIU007
channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
Finished recover at 08-APR-13


Starting backup at 08-APR-13
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=13 recid=11 stamp=812239310
channel ORA_DISK_1: starting piece 1 at 08-APR-13
channel ORA_DISK_1: finished piece 1 at 08-APR-13
piece handle=/u01/app/oracle/flash_recovery_area/ORACLE10G/backupset/2013_04_08/o1_mf_annnn_ICIU007_8p5mgj9t_.bkp tag=ICIU007 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
channel ORA_DISK_1: deleting archive log(s)
archive log filename=/u01/app/oracle/flash_recovery_area/ORACLE10G/archivelog/2013_04_08/o1_mf_1_13_8p5mggh0_.arc recid=11 stamp=812239310
Finished backup at 08-APR-13

Starting backup at 08-APR-13
using channel ORA_DISK_1
channel ORA_DISK_1: starting incremental level 1 datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=/u01/app/oracle/oradata/oracle10/system01.dbf
input datafile fno=00003 name=/u01/app/oracle/oradata/oracle10/sysaux01.dbf
input datafile fno=00002 name=/u01/app/oracle/oradata/oracle10/undotbs01.dbf
input datafile fno=00004 name=/u01/app/oracle/oradata/oracle10/users01.dbf
channel ORA_DISK_1: starting piece 1 at 08-APR-13
channel ORA_DISK_1: finished piece 1 at 08-APR-13
piece handle=/u01/app/oracle/flash_recovery_area/ORACLE10G/backupset/2013_04_08/o1_mf_nnnd1_ICIU007_8p5mgofk_.bkp tag=ICIU007 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:08
channel ORA_DISK_1: starting incremental level 1 datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current control file in backupset
including current SPFILE in backupset
channel ORA_DISK_1: starting piece 1 at 08-APR-13
channel ORA_DISK_1: finished piece 1 at 08-APR-13
piece handle=/u01/app/oracle/flash_recovery_area/ORACLE10G/backupset/2013_04_08/o1_mf_ncsn1_ICIU007_8p5mgskg_.bkp tag=ICIU007 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 08-APR-13
.....
.....