stsadm 备份是否会清除事务日志?
我的数据库使用简单恢复模型,因此备份时事务日志会被清除。如果我使用 stsadm 将数据库作为备份的一部分进行备份,是否会导致事务日志被清除?
即,如果我禁用 sql server 作业并仅保留来自 stsadm 的数据库备份,这会导致我的事务日志不断增长吗?
My database is using the simple recovery model, so the transaction logs are cleared down when it is backed up. If I backup the database as part of a backup using stsadm, will that cause the transaction logs to be cleared?
i.e. if I disable the sql server jobs and just keep the database backups that come from stsadm, would that cause my transaction logs to grow and grow?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SIMPLE 恢复模型会自动截断事务日志,因此,只要您的事务日志大小足以支持您的数据库工作负载,那么它就不会继续自动增长(只有在启用设置允许这样做的情况下才会发生这种情况)。
作为“非常”一般的经验法则,您应该将事务日志的初始大小设置为数据库数据文件大小的三分之一 (1/3)。然后,经过一段时间的调整,确定“您的”事务日志文件的适当大小,同时考虑索引维护等所需的空间。
您需要了解的有关该主题的大部分内容可以在此处研究:
恢复模型和事务日志管理
因此,为了限定您的问题的具体情况,它是简单的恢复模型实现事务日志文件自动截断的数据库而不是 Share Point 备份实用程序。
希望这会有所帮助,但请随时提出进一步的问题......
The SIMPLE recovery model, automatically truncates the Transaction Log, therefore provided your Transaction Log size is sufficient to support your database workload then it will not continue to autogrow (this can only happen if the setting is enabled to permit this).
As a "very" general rule of thumb, you should set the initial size of your Transaction Log to be one third (1/3) the size of your database data file. Then over a settling in period determine the apporpriate size for "your" Transaction Log file, taking into account space required for Index Maintenance etc.
The majority of what you need to know on the subject can be researched here:
Recover Models and Transaction Log Management
So to qualify the specifics of your question it is the SIMPLE recovery model of the database that implements the automatic truncation of the Transaction Log file not the Share Point backup utility.
Hope this helps but feel free to pose further questions.....