今天做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
解決