0

I have a sql database that I dump data into every 15 minutes using SSIS. The transaction log get's huge and I back it up and shrink it a few times a week. But I know I'm doing something wrong. What is the best practice for me to maintain it? Should it stay ~1GB and I should be backing it up hourly? Since it's a datawarehouse, should I be backing it up at all? Show I be doing something different in SSIS? The datawarehouse recovery model is Bulk Logged.

4

2 回答 2

4

您还应该确保 SSIS 设置正确以执行最少记录的操作,因为您可能没有正确设置它。然后,一旦它正常工作,请评估您是否真的需要批量记录恢复模型: http: //msdn.microsoft.com/en-us/library/ms175987 (v=sql.105).aspx是一个很好的主题链接。如果您可以快速(您对快速的定义)重做丢失的数据并且不希望非批量操作的时间点恢复,请转向简单恢复,恕我直言。

于 2013-11-12T06:00:37.633 回答
0

您有一些日志选项,它们与您如何备份数据库以及您可以承受多少数据丢失有关。例如,如果您每晚都进行完整备份...将数据库更改为简单模式。这会截断您的提交日志(意味着一旦记录的操作完成,日志就会自行清理)......关于这个主题有很多文章......谷歌它,如果你需要更多帮助回帖。

于 2013-11-12T03:59:32.703 回答