我正在尝试从远程服务器本地还原DB2联机备份映像。我可以成功地还原它,但是当我试图向前滚动db时,我得到了以下错误:
SQL2071N An error occurred while accessing the shared library "/home/db2inst1/sqllib/adsm/libtsm.a". Reason code: "2".
通过查看db配置,我意识到LOGARCHMETH1被设置为TSM,这意味着TSM是原始DB2安装上的日志归档方法。我将值设置为disk:/path,并再次运行前滚操作。这就是现状:
Rollforward Status
Input database alias = devcldx
Number of members have returned status = 1
Member ID = 0
Rollforward status = DB pending
Next log file to be read = S0000645.LOG
Log files processed = -
Last committed transaction = 2016-08-30-19.48.31.000000 UTC当我试着向前滚到日志的末尾时,我得到了这样的结果:
SQL1273N
An operation reading the logs on database "DEVCLDX" cannot continue
because of a missing log file "S0000645.LOG" on database partition "0" and log
stream "0".显然,我的本地机器上不存在那个日志文件。
有什么办法我可以完成前滚吗?
发布于 2016-09-08 01:32:05
这样做的适当方法是:
db2adutl实用程序从源计算机上的TSM服务器提取日志文件,然后将它们复制到目标计算机。这两个选项都将允许您恢复到任何时间点。
如果这两个选项都不是选项,而且如果仅将数据库还原到备份完成后才可接受的时间点,那么您还有一个选项:
在RESTORE DATABASE命令中,包含logtarget /path/to/write/files选项: DB2将在执行还原时将所包含的日志文件从备份映像中提取到指定的目录中。
然后,可以使用路径执行前滚到备份结束的操作:
rollforward database X
to end of backup and complete
overflow log path (/path/to/write/files)https://stackoverflow.com/questions/39376499
复制相似问题