
[英]TempDB has reached its size quota: How to increase size quota for tempDB on Azure SQL
[英]Increase size of Mountpoint_TempDB?
我们遇到与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。 我想知道如何更改此设置,以便我们重新上线。
似乎文件夹D:\\ TempDB的最大容量为1GB。 我想知道如何更改此设置,以便我们重新上线。
该文件夹/驱动器上是否设置了一些Windows配额,或者安装点实际上没有空间了? 无论哪种方式,您都需要在Windows中修复,或者由任何人为D:\\ TempDB设置安装点。
如果您在其他地方有可用的空间(GB,性能和权限),则可以在那里临时添加更多tempdb文件,以恢复联机。 只需在新的临时位置将新的数据文件添加到tempdb中即可。
为避免这些问题继续发生,请查看以下链接:
优化tempdb性能: https : //technet.microsoft.com/zh-cn/library/ms175527(v= sql.105).aspx
解决tempdb中磁盘空间不足的问题: https ://technet.microsoft.com/zh-cn/library/ms176029( v= sql.105) .aspx
您几乎想知道的有关TempDB的所有信息: http ://www.sqlskills.com/blogs/paul/category/tempdb/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.