我们收到与TempDB最大大小相关的错误:
Could not allocate space for object 'dbo.SORT temporary run storage: 140747710922752' 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.我清空了tempdb文件夹,并试图运行一个大型查询,但它很快又填满了。所以我试图增加TempDB的大小,但这导致了一个错误。
ALTER DATABASE [tempdb] MODIFY FILE (
NAME = N'tempdev',
SIZE = 8388608KB ); --8GBMODIFY FILE encountered operating system error 112(There is not enough space on the disk.) while attempting to expand the physical file 'D:\TempDB\tempdb.mdf'。
似乎文件夹D:\TempDB的最大容量为1 1GB。我想知道如何改变这一点,这样我们才能重新上线。
发布于 2015-09-01 02:33:23
似乎文件夹D:\TempDB的最大容量为1 1GB。我想知道如何改变这一点,这样我们才能重新上线。
是否在该文件夹/驱动器上设置了某些Windows配额,或者挂载点是否实际空间不足?无论哪种方式,这都是您需要在Windows中修复的问题,或者是为您的D:\TempDB设置挂载点的人。
如果您在其他地方有可用的(GB、性能和权限)空间,您可以临时在那里添加更多的tempdb文件以恢复在线。只需在新的临时位置向tempdb添加一个新的数据文件。
要避免出现这些问题,请查看以下链接:
优化临时数据库性能:https://technet.microsoft.com/en-us/library/ms175527(v=sql.105).aspx
排除临时数据库中磁盘空间不足的故障:https://technet.microsoft.com/en-us/library/ms176029(v=sql.105).aspx
你想知道的关于TempDB的几乎所有事情:http://www.sqlskills.com/blogs/paul/category/tempdb/
https://stackoverflow.com/questions/32315240
复制相似问题