简体   繁体   English

如何减少MS SQL数据库的日志文件大小

[英]How to reduce log file size of MS SQL database

How to reduce log file size of MS SQL database. 如何减少MS SQL数据库的日志文件大小。 The requirement is to reduce log file of the version control server's DB, Shrinking is not an option in our case. 要求是减少版本控制服务器的DB的日志文件,在我们的例子中,收缩不是一个选项。

How to reduce log file size of MS SQL database 如何减少MS SQL数据库的日志文件大小

Shrinking is the only option here, but you need to clear out the log by backing it up first. 收缩是这里唯一的选择,但您需要先通过备份来清除日志。 Otherwise, there won't be any free space to shrink. 否则,将没有任何可用空间缩小。 After you shrink it once, you can keep it from getting blown out by either 缩小一次后,你可以防止它被吹掉

  • Backing up your transaction logs more regularly. 更频繁地备份事务日志。 How often depends on your RPO 通常取决于你的RPO
  • Setting the database to Simple Mode. 将数据库设置为简单模式。 This is only suggested if your RPO is large enough to where your FULL BACKUPs and DIFFERENTIALS would cover it. 仅当您的RPO足够大以满足您的FULL BACKUP和DIFFERENTIALs覆盖它时,才会建议这样做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM