事务日志传送与备份作业=冲突?
已经有一个每 15 分钟运行一次的备份作业计划。我创建了事务日志传送过程,但在恢复一两个日志后,该作业停止工作(错误:找不到匹配的日志)。显然,有两个单独的作业创建的日志,并且对于日志传送过程,只有部分日志被复制到辅助数据库(不包括备份作业计划创建的日志)。这是否意味着我必须关闭备份作业计划?
There is already a backup job plan that runs every 15 minutes. I created transaction log shipping process but after 1 or two restored logs this job stops working (error: it can't find matching log). Obviously, there are logs created by two individual jobs and for the log shipping process only part of logs are being copied to secondary database (log created by backup job plan are excluded). Does this mean that I will have to turn off backup job plan?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
日志传送过程通过进行日志备份来完成其工作。不能有另一个作业执行相同的操作,否则会破坏日志备份链。请参阅使用日志传送作为恢复计划的一部分。您的恢复策略应清楚地记录日志传送作业所采取的日志备份的位置,并详细说明如何使用这些日志备份恢复数据库。您还应该测试此策略以验证它。
顺便说一句,现在你的备份链因丢失日志而被破坏。您需要进行完整的数据库备份才能正确地重新播种链。
The log shipping process does its work by taking log backups. There cannot be another job that does the same, it will break the log backup chain. See Using Log Shipping as Part of a Recovery Plan. Your recovery strategy should clearly document the location of the log backups as taken by the log shipping job and detail step-by-step instructions how to recover the database using these log backups. You should also test this strategy to validate it.
BTW, right now your backup chain is busted as it misses log. You need to take a full database backup to re-seed the chain properly.
上面的评论是正确的,但我不确定我是否会将链称为“破坏” - 执行恢复都需要两个事务日志集 - 但在两组文件之间它们都是可用的 - 所以你不'不需要完整的数据库备份来为链播种 - 您只需要丢失的文件。
也就是说,这是一种非常不受欢迎的情况,并且很难找到所有必要的文件 - 但这些文件是可用的。
请务必进行备份,但也请了解如何在必要时查找文件,因为您尚未进行备份并且需要执行恢复。
The comment above is correct, but I'm not sure I'd call the chain "busted" - The two transaction log sets would BOTH be needed to perform a restore - But between both sets of files they ARE available - So you don't need a full database backup to seed the chain - You just need the missing files.
That said this is a highly undesirable situation and confusing to find all the necessary files - but the files ARE available.
Do take a backup, but also do know how to find the files if necessary because you haven't yet taken a backup and need to perform a restore.