2015-08-31 96 views
0
有關tempdb的最大尺寸

我們正在錯誤:增加Mountpoint_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); --8GB 

MODIFY 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有1GB的最大容量。我想知道如何改變這一點,以便我們可以重新聯機。

回答

0

看來文件夾D:\ TempDB的最大容量爲1GB。我想知道如何改變這一點,以便我們可以重新聯機。

有一些配額的Windows文件夾/驅動器上設置或者是安裝點物理出來的空間?無論採用哪種方式,您都需要在Windows中修復這些問題,或者爲D:\ TempDB設置安裝點。

如果您有可用(GB,性能和權限)中其他位置,你可以添加更多的tempdb文件有暫時得到重新聯機。只需在新的臨時位置添加一個新的數據文件到tempdb即可。

爲了避免這些問題往前走,看看下面的鏈接:

優化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/