DB2:在 Linux 上还原数据库 returns 错误 SQL2036N

DB2: restore database returns error SQL2036N on Linux

我尝试恢复 DB2 数据库,但它说 return 路径无效。

这是我试过的:

db2 restore database gyczpas from "/home/db2inst1/GYCZPAS/PAS_BACKUP/GYCZPAS.0.db2inst1.NODE0000.CATN0000.20170109092932.001" taken at 20170109092932 into gyczpas
SQL2036N  The path for the file or device "/home/db2inst1/GYCZPAS/PAS_BACKUP/GYCZPAS.0.db2inst1.NODE0000.CATN000" is not valid.

我在 RESTORE 期间使用了与 BACKUP 命令相同的路径,但它失败了。可能是什么原因?

DB22 版本:v9.7

您使用的是文件名,而不是 RESTORE 的路径。尝试类似以下的操作 - 仅指定路径:

db2 restore database gyczpas from "/home/db2inst1/GYCZPAS/PAS_BACKUP" taken at 20170109092932 into gyczpas