简体   繁体   English

SQL Server归档策略(非备份)

[英]SQL Server Archiving Strategy (not Backup)

Our contracts with our clients state that we only manage and store data within the last 3 months. 我们与客户的合同规定,我们仅在最近3个月内管理和存储数据。 Because we have such a high volume application, we archive the production tables by moving the old data to an "archive" database. 因为我们有如此大量的应用程序,所以我们通过将旧数据移动到“归档”数据库来归档生产表。 I have a stored procedure that gathers the older data, dumps it into tables in the "archive" database and then removes the rows from the production database. 我有一个存储过程,该过程收集较旧的数据,将其转储到“归档”数据库中的表中,然后从生产数据库中删除行。 This is a pretty simple, straightforward process. 这是一个非常简单,直接的过程。

We now want to keep the archive database at a manageable size and occasionally "shelve" the data onto offsite media. 现在,我们希望将归档数据库保持在可管理的大小,并偶尔将数据“搁置”到异地媒体上。 What would be the best way to accomplish this that would still allow us to occasionally load the offline data in order to retrieve old data for a customer at their request? 什么是实现此目标的最佳方法,该方法仍然允许我们偶尔加载脱机数据,以便根据客户的要求检索旧数据?

There is no such thing as the best way ;). 没有最好的方法;)。

Your requirements really way too broad and you need to narrow these down. 您的要求确实过于广泛,您需要缩小范围。 Try to come up with detailed specs and you'll probably be able to come up with the solution yourself once you have all the data. 尝试提出详细的规格,一旦掌握所有数据,您就可以自己提出解决方案。

Here are some things I'd analyze first: 这是我首先要分析的一些事情:

  • Monthly amount of data that needs to be moved offsite 每月需要移出异地的数据量
  • How likely is that the amount will change in the future (safe bet is to assume numbers will grow) 该金额将来有多大可能改变(安全的假设是数字会增加)
  • Budget 预算
  • How long should you keep the archives before deleting them completely 完全删除档案前,应保留档案多长时间
  • Turnaround time for restoring archived data 恢复存档数据的周转时间

Depending on these factors “best” solution can vary from USB stick you buy for $9 to several storage servers that can cost like $100k ;) 取决于这些因素,“最佳”解决方案可能会有所不同,从您以9美元的价格购买USB记忆棒到可能花费10万美元的多个存储服务器;

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

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