- 論壇徽章:
- 0
|
我用restore恢復數(shù)據(jù)庫:
$ db2 restore db cisfedb from /db2_backup taken at 20070617020002
SQL2523W Warning! Restoring to an existing database that is different from the database on the backup image, but have matching names. The target database will be overwritten by the backup version. The Roll-forward recovery logs associate
d with the target database will be deleted.
Do you want to continue ? (y/n) y
SQL0294N The container is already in use. SQLSTATE=42730
這個時候我連接數(shù)據(jù)庫db2 connect to cisfedb
SQL1119N A connection to or activation of database "CISFEDB" cannot be made because a previous restore is incomplete. SQLSTATE=57019
用db2 get db cfg for cisfedb 看一下數(shù)據(jù)庫的狀態(tài)。
看參數(shù) Rollforward pending =YES
Restore pending =Database
請教如何恢復數(shù)據(jù)庫,本人剛開始學習,請大家說得詳細點,謝謝了! |
|