restore database報RMAN-06026和RMAN-06023錯誤
今天在搭建物理dg時執行restore database遇如下錯誤:"RMAN-06026:
some targets not found - aborting restore","RMAN-06023: no backup or copy of
datafile 2 found to
restore",從錯誤資訊判斷oracle無法在備份集中找到2號資料檔案,也就是說該備份集中缺少某些資料檔案。透過list命令發現該備份集中確實只包含部分資料檔案,但是這是個0級備份啊,接著檢視對應log日誌也發現備份集中包含所有資料檔案,對此我感到十分奇怪的,於是打算嘗試透過dbms_backup_restore包來恢復試試看,發現該方法可以成功restore全庫。
直接執行以下儲存過程即可:
declare
devtype varchar2(256);
done boolean;
begin
devtype:=sys.dbms_backup_restore.deviceallocate(type=>'',ident=>'t1');
sys.dbms_backup_restore.restoresetdatafile;
sys.dbms_backup_restore.restoredatafileto(dfnumber=>1,toname=>'/opt/oracle/oradata/ORCLDG2/system01.dbf');
sys.dbms_backup_restore.restoredatafileto(dfnumber=>2,toname=>'/opt/oracle/oradata/ORCLDG2/undotbs01.dbf');
.
.
.
sys.dbms_backup_restore.restorebackuppiece(done=>done,handle=>'/crmbak/rman/data/df_level_0_ORCL_20140406_13560',params=>null);
sys.dbms_backup_restore.devicedeallocate;
end;
/
直接執行以下儲存過程即可:
declare
devtype varchar2(256);
done boolean;
begin
devtype:=sys.dbms_backup_restore.deviceallocate(type=>'',ident=>'t1');
sys.dbms_backup_restore.restoresetdatafile;
sys.dbms_backup_restore.restoredatafileto(dfnumber=>1,toname=>'/opt/oracle/oradata/ORCLDG2/system01.dbf');
sys.dbms_backup_restore.restoredatafileto(dfnumber=>2,toname=>'/opt/oracle/oradata/ORCLDG2/undotbs01.dbf');
.
.
.
sys.dbms_backup_restore.restorebackuppiece(done=>done,handle=>'/crmbak/rman/data/df_level_0_ORCL_20140406_13560',params=>null);
sys.dbms_backup_restore.devicedeallocate;
end;
/
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20801486/viewspace-1142656/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- restore database報錯ora-19573RESTDatabase
- 應對 "RMAN-06023: no backup or copy of datafile 1 found to restore"錯誤REST
- 應對RMAN-06026錯誤,使用dbms_backup_restore進行恢復REST
- RMAN-06023 no backup or copy of datafile 1 found to restoreREST
- RMAN-06026 錯誤分析與解決
- RMAN-06026報錯解決方法
- RMAN restore validate database報ORA-19693RESTDatabase
- restore database check readonlyRESTDatabase
- Cold backup and restore the entire databaseRESTDatabase
- 教你快速掌握解決RMAN-06026錯誤的方法
- duplicate standby database 報ORA-05507錯誤解決方法Database
- 還原資料庫RMAN-06023錯誤的解決方法資料庫
- netbackup rman restore archivelog 報ora-19511錯誤處理過程RESTHive
- iptables報錯!iptables-restore unable to initialize table 'filterRESTFilter
- Oracle DataGuard Standby database ID mismatch錯誤OracleDatabase
- 資料庫restore時遇到1119錯誤資料庫REST
- 網站報錯:“Database Server Error”網站DatabaseServerError
- Crunchy PostgreSQL database restore via pgo commandSQLDatabaseRESTGo
- rman restore database(spfile,controlfile, datafile)RESTDatabase
- android.database.sqlite.SQLiteException: no such table錯誤AndroidDatabaseSQLiteException
- 使用flashback database 特性時遇到的錯誤Database
- auxiliary database: ORA-12528錯誤UXDatabase
- Laravel 安裝後報 500 和 404 錯誤Laravel
- ORA-38760: This database instance failed to turn on flashback database 錯誤解決DatabaseAI
- Access denied for user 'default'@'%' to database 'shop'報錯Database
- oracle 11gR2 rac 建立database報ORA-00200錯誤OracleDatabase
- How to Restore the Database Using AMDU after Diskgroup CorruptionRESTDatabase
- 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
- oracle 報大小寫錯誤Oracle
- jquery post 報404錯誤jQuery
- 【證照】curl 和 java 請求報證照錯誤Java
- 呼叫 webapi的put和delete 報"Method Not Allowed" 405 錯誤。WebAPIdelete
- 啟動PL/SQL Developer 報字元編碼不一致錯誤,Database character setSQLDeveloper字元Database
- recover database delete archivelogs skip tablespace temp;報錯DatabasedeleteHive
- canvas save()和restore()CanvasREST
- Promise基礎(消化錯誤和丟擲錯誤)Promise
- Abp框架之執行Update-Database 命令系列錯誤框架Database