RMAN-06100: no channel to restore a backup or copy of datafile
今日重建DG遭遇RMAN-06100: no channel to restore a backup or copy of datafile錯誤,源端是一套RAC資料庫,目標端是單例項,報錯資訊如下:
Starting restore at 06-APR-16
released channel: d1
released channel: d2
released channel: d3
released channel: d4
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 04/06/2016 14:22:23
RMAN-06026: some targets not found - aborting restore
RMAN-06100: no channel to restore a backup or copy of datafile 13
RMAN-06100: no channel to restore a backup or copy of datafile 12
RMAN-06100: no channel to restore a backup or copy of datafile 11
RMAN-06100: no channel to restore a backup or copy of datafile 10
RMAN-06100: no channel to restore a backup or copy of datafile 9
RMAN-06100: no channel to restore a backup or copy of datafile 8
RMAN-06100: no channel to restore a backup or copy of datafile 7
RMAN-06100: no channel to restore a backup or copy of datafile 6
RMAN-06100: no channel to restore a backup or copy of datafile 5
RMAN-06100: no channel to restore a backup or copy of datafile 4
RMAN-06100: no channel to restore a backup or copy of datafile 3
RMAN-06100: no channel to restore a backup or copy of datafile 2
RMAN-06100: no channel to restore a backup or copy of datafile 1
目標端查詢list incarnation發現異常,如下:
RMAN> list incarnation;
using target database control file instead of recovery catalog
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1 1 XXXX 2454714347 PARENT 1 11-SEP-08
2 2 XXXX 2454714347 PARENT 880332 24-SEP-13
4 4 XXXX 2454714347 ORPHAN 270366745 07-MAR-16
3 3 XXXX 2454714347 CURRENT 272652102 14-MAR-16
源端查詢incarnation,如下:
RMAN> list incarnation of database;
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1 1 xxxx 2454714347 PARENT 1 11-SEP-08
2 2 xxxx 2454714347 CURRENT 880332 24-SEP-13
這時才想起來,前面做過snapshot dg,生成了flashback,在catalog start with時把flashback log也註冊了。
解決方式:
reset database to incarnation 2;
或者刪除flashback log
後面restore就正常了
Starting restore at 06-APR-16
channel d1: starting datafile backup set restore
channel d1: specifying datafile(s) to restore from backup set
channel d1: restoring datafile 00005 to /oradata/xxxx/undotbs2.330.826995219
channel d1: restoring datafile 00006 to /oradata/xxxx/xxxx.336.826995725
channel d1: restoring datafile 00010 to /oradata/xxxx/xxxx.340.826995903
channel d1: reading from backup piece /archivelog/rmanbak/full_xxxx_20160406_2686.bak
channel d2: starting datafile backup set restore
channel d2: specifying datafile(s) to restore from backup set
channel d2: restoring datafile 00003 to /oradata/xxxx/undotbs1.322.826995061
channel d2: restoring datafile 00007 to /oradata/xxxx/xxxx.337.826995769
channel d2: restoring datafile 00011 to /oradata/xxxx/xxxx.341.826995947
channel d2: reading from backup piece /archivelog/rmanbak/full_xxxx_20160406_2687.bak
Starting restore at 06-APR-16
released channel: d1
released channel: d2
released channel: d3
released channel: d4
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 04/06/2016 14:22:23
RMAN-06026: some targets not found - aborting restore
RMAN-06100: no channel to restore a backup or copy of datafile 13
RMAN-06100: no channel to restore a backup or copy of datafile 12
RMAN-06100: no channel to restore a backup or copy of datafile 11
RMAN-06100: no channel to restore a backup or copy of datafile 10
RMAN-06100: no channel to restore a backup or copy of datafile 9
RMAN-06100: no channel to restore a backup or copy of datafile 8
RMAN-06100: no channel to restore a backup or copy of datafile 7
RMAN-06100: no channel to restore a backup or copy of datafile 6
RMAN-06100: no channel to restore a backup or copy of datafile 5
RMAN-06100: no channel to restore a backup or copy of datafile 4
RMAN-06100: no channel to restore a backup or copy of datafile 3
RMAN-06100: no channel to restore a backup or copy of datafile 2
RMAN-06100: no channel to restore a backup or copy of datafile 1
目標端查詢list incarnation發現異常,如下:
RMAN> list incarnation;
using target database control file instead of recovery catalog
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1 1 XXXX 2454714347 PARENT 1 11-SEP-08
2 2 XXXX 2454714347 PARENT 880332 24-SEP-13
4 4 XXXX 2454714347 ORPHAN 270366745 07-MAR-16
3 3 XXXX 2454714347 CURRENT 272652102 14-MAR-16
源端查詢incarnation,如下:
RMAN> list incarnation of database;
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1 1 xxxx 2454714347 PARENT 1 11-SEP-08
2 2 xxxx 2454714347 CURRENT 880332 24-SEP-13
這時才想起來,前面做過snapshot dg,生成了flashback,在catalog start with時把flashback log也註冊了。
解決方式:
reset database to incarnation 2;
或者刪除flashback log
後面restore就正常了
Starting restore at 06-APR-16
channel d1: starting datafile backup set restore
channel d1: specifying datafile(s) to restore from backup set
channel d1: restoring datafile 00005 to /oradata/xxxx/undotbs2.330.826995219
channel d1: restoring datafile 00006 to /oradata/xxxx/xxxx.336.826995725
channel d1: restoring datafile 00010 to /oradata/xxxx/xxxx.340.826995903
channel d1: reading from backup piece /archivelog/rmanbak/full_xxxx_20160406_2686.bak
channel d2: starting datafile backup set restore
channel d2: specifying datafile(s) to restore from backup set
channel d2: restoring datafile 00003 to /oradata/xxxx/undotbs1.322.826995061
channel d2: restoring datafile 00007 to /oradata/xxxx/xxxx.337.826995769
channel d2: restoring datafile 00011 to /oradata/xxxx/xxxx.341.826995947
channel d2: reading from backup piece /archivelog/rmanbak/full_xxxx_20160406_2687.bak
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10271187/viewspace-2076523/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RMAN-06023 no backup or copy of datafile 1 found to restoreREST
- 應對 "RMAN-06023: no backup or copy of datafile 1 found to restore"錯誤REST
- rman copy asm datafile(rename asm datafile)ASM
- SQL Server Backup & RestoreSQLServerREST
- TFS Express backup and restoreExpressREST
- backup and restore tipsREST
- 冷備_並行copy datafile並行
- Cold backup and restore the entire databaseRESTDatabase
- rman restore database(spfile,controlfile, datafile)RESTDatabase
- DBMS_BACKUP_RESTORE.DBMS_BACKUP_RESTORE用於特殊情況下的恢復REST
- read only tablespace backup restoreREST
- Oracle 使用RMAN COPY 移動 Datafile 位置Oracle
- 轉貼_RMAN-DBMS_BACKUP_RESTOREREST
- How to copy a datafile from ASM to a file system not using RMANASM
- db2備份恢復(backup restore)DB2REST
- How to restore and recover a database from an RMAN backup_881395.1RESTDatabase
- Manually Backup - Restore or Clone a Database to Another Node [ID 562556.1]RESTDatabase
- Recover A Lost Datafile With No Backup (Doc ID 1060605.6)
- rman backup as copy database format '/tmp/%U.dbf'DatabaseORM
- 使用RMAN backup和restore方式部署物理備庫REST
- 備份恢復統計資訊 backup and restore statsREST
- 11g asm md_backup md_restoreASMREST
- 通過dbms_backup_restore修改oracle的dbidRESTOracle
- 【ASM】ASMCMD 之md_backup,md_restore介紹ASMREST
- RMAN10g: backup copy of database (Doc ID 266980.1)Database
- cdc目標端資料庫初始化(backup restore)資料庫REST
- 使用dbms_backup_restore進行資料庫恢復REST資料庫
- WARNING: datafile #1 was not in online backup mode 出現的原因
- ORA-19606: Cannot copy or restore to snapshot control fileREST
- You may fail to backup log or restore log after TDE certification/key rotation.AIREST
- 【MOS】How to backup or restore OLR in 11.2/12c Grid InfrastructureRESTASTStruct
- backup or restore OLR in 11.2 Grid Infrastructure (Doc ID 1193643.1)RESTASTStruct
- ORA-19550: cannot use backup/restore functions while using dispatcherRESTFunctionWhile
- RMAN : Consistent Backup, Restore and Recovery using RMAN (Doc ID 162855.1)REST
- DBMS_BACKUP_RESTORE用於特殊情況下的恢復REST
- Oracle OCP 1Z0 053 Q505(RMAN DATAFILE BACKUP COPIES)Oracle
- Recover a Database Having Added a Datafile Since Last Backup (Doc ID 29430.1)DatabaseAST
- [20190228]Backup Restore Throttle sleep.txtREST