【发布时间】:2016-09-07 18:01:16
【问题描述】:
我正在尝试从远程服务器本地恢复 DB2 在线备份映像。我可以成功恢复它,但是当我尝试向前滚动数据库时出现此错误:
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".
显然我的本地机器上不存在该日志文件。
有什么方法可以完成前滚?
【问题讨论】: