天天看點

DB2 SQL0294N 錯誤

今天做db2的sample備份時,不知哪個操作出問題了,恢複資料庫時一直提示處于restore pending狀态。

打算重新來過,删掉sample,再用db2sampl重建sample資料庫,但重建時又提示:

SQL0294N  The container is already in use.  SQLSTATE=42730
           

還好之前做過備份,先試着恢複下/home/db2inst1中的備份。

$rm  /home/db2inst1/db2inst1/NODE0000/SAMPLE/T0000001/C000000.TMP

$db2 restore db sample from /home/db2inst1
           

解決