Home > Database > Mysql Tutorial > 无法为数据库 'tempdb' 中的对象分配空间,因为 'PR

无法为数据库 'tempdb' 中的对象分配空间,因为 'PR

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 15:12:15
Original
2511 people have browsed it

错误描述 消息 1105,级别 17,状态 2,第 1 行 无法为数据库 'tempdb' 中的对象 'dbo.SORT temporary run storage: 140737503494144' 分配空间,因为 'PRIMARY' 文件组已满。请删除不需要的文件、删除文件组中的对象、将其他文件添加到文件组或为文件组中的

错误描述

消息 1105,级别 17,状态 2,第 1 行
无法为数据库 'tempdb' 中的对象 'dbo.SORT temporary run storage:  140737503494144' 分配空间,因为 'PRIMARY' 文件组已满。请删除不需要的文件、删除文件组中的对象、将其他文件添加到文件组或为文件组中的现有文件启用自动增长,以便增加可用磁盘空间。
消息 9002,级别 17,状态 4,第 1 行
数据库 'tempdb' 的事务日志已满。若要查明无法重用日志中的空间的原因,请参阅 sys.databases 中的 log_reuse_wait_desc 列。

解决方法

查看tempdb当前大小
exec sp_helpdb tempdb
对tempdb进行收缩
use tempdb 
go 
dbcc shrinkfile(tempdev, 1024) 
use tempdb 
go 
dbcc shrinkfile(templog, 512) 
Copy after login

尝试将tempdb的文件初始值设置:
数据文件:10G
日志文件: 10G
自动增长的10%设置为10M

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template