【发布时间】:2016-08-31 08:00:37
【问题描述】:
运行一个自动作业,为 SQL Server 2008 R2 上的所有数据库执行 DBCC CheckDB。
我们有 22 个数据库,其中 1 个数据库大约有 160GB,我为 tempdb 重新定位了一个大约 70GB 的硬盘,但它失败了。
CheckDB Error : 1105 : Could not allocate space for object 'dbo.SORT temporary run storage: 172324227579904' in database 'tempdb' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup. [SQLSTATE 01000]
我想知道这个数据库检查需要多少大小。
使用 Estimateonly 检查后,它只给我一个答案 45MB....这是 MS SQL SEVER 2008 R2 中的一个错误,所以我尝试通过 SQL Server 2012 连接到数据库并启动 Estimateonly 但相同的答案。
任何人都可以帮助我了解如何获得大型 DB DBCC 检查所需的确切大小?
真诚的
【问题讨论】:
-
你能应用最新的服务包(如果你没有的话),看看你是否得到相同的估计
-
感谢您的快速回答。我将联系我们的 IT 运营团队进行更新。
-
除此之外,请问为什么 SQL Server 2012 也不工作?
标签: sql-server dbcc