DB2恢復
恢復資料庫報ROLL-FORWARD錯誤(SQL57019),則執行日誌回滾
restore db dbname from 路徑 taken at *** logtarget 路徑
日誌路徑即DATABASE DIRECTORY+SQLLOGDIR(通過list database directory on /home/db2inst1獲取)
還原後執行 rollforward db dbname to end of logs and stop
注意這是線上備份資料庫造成的錯誤,離線沒有此錯誤丟擲 注意資料夾的許可權允許日誌寫入 另附上恢復時出現的異常情況: SQL2581N Restore is unable to extract log files or restore a log directory from the backup image to the specified path. Reason code rc. Explanation An error occurred while attempting to extract a log file from the backup image. This could be because one of the following reasons: 1 The backup image does not include logs. 2 The log target path specified could be full or invalid. 3 A log file name in the backup image matches a log file which already exists in the log target path. 4 There was an I/O error while trying to write the file. 5 The primary log directory on disk contains log files that will be destroyed by restore. 6 The mirror log directory on disk contains log files that will be destroyed by restore. User response 1 Check that the backup image contains log files to be restored. If it does not, resubmit the command without specifying the LOGTARGET parameter. 2 Check that the specified LOGTARGET path is valid and that there is enough space available for all log files in the backup image to be extracted. Resubmit the command. 3 Check that there are no existing log files in the log target path with the same name as log files in the backup image being restored. Resubmit the command. 4 See the DB2 diagnostics log for additional information. Try to resolve the problem and resubmit the command. 5 or 6 You can do one of the following: Manually copy or move the log files from the primary log directory so you can archive those log files; and then call the RESTORE DATABASE command again. Call the RESTORE DATABASE command again with the LOGTARGET parameter and either the INCLUDE FORCE parameter or the EXCLUDE FORCE parameter.相關文章
- [DB2]DB2備份和恢復DB2
- [DB2]db2重定向恢復DB2
- DB2備份與恢復DB2
- Db2恢復注意事項DB2
- db2備份恢復(backup restore)DB2REST
- DB2線上備份與恢復DB2
- DB2備份恢復測試DB2
- db2恢復有關說明DB2
- db2 命令列備份和恢復DB2命令列
- DB2 恢復誤刪除的表DB2
- db2恢復到指定時間點DB2
- db2備份和恢復資料庫DB2資料庫
- DB2的資料庫備份與恢復DB2資料庫
- DB2資料庫的備份和恢復DB2資料庫
- DB2 使用表空間備份恢復庫DB2
- db2 恢復drop後的表的一個操作DB2
- oracle,db2,mysql類比之九備份與恢復OracleDB2MySql
- DB2資料庫的備份測試--開始恢復DB2資料庫
- DB2傻瓜1000問(十二)12、DB2資料庫的備份和恢復DB2資料庫
- db2 前滾最小恢復時間和時間戳問題DB2時間戳
- 淺談DB2資料庫的備份與恢復(下) (轉)DB2資料庫
- 恢復資料,資料塊恢復
- Oracle備份恢復之熱備份恢復及異機恢復Oracle
- 【備份與恢復】控制檔案的恢復(不完全恢復)
- 資料恢復:AMDU資料抽取恢復資料恢復
- postgreSQL 恢復至故障點 精準恢復SQL
- 使用恢復建議恢復資料庫資料庫
- 【備份恢復】資料恢復指導資料恢復
- Oracle例項恢復和介質恢復Oracle
- rman恢復方案和oracle異機恢復Oracle
- rman 恢復機制與恢復測試
- 【Mysql】完全恢復與不完全恢復MySql
- oracle實驗記錄 (恢復-完全恢復)Oracle
- oracle實驗記錄 (恢復-rman恢復)Oracle
- 控制檔案恢復—從快照中恢復
- 【管理篇備份恢復】rman恢復測試(二) 控制檔案恢復(三)
- 【管理篇備份恢復】rman恢復測試(二) 控制檔案恢復(二)
- 【管理篇備份恢復】rman恢復測試(二) 控制檔案恢復(一)