简体   繁体   English

数据库“ tempdb”的事务日志已满

[英]The transaction log for database 'tempdb' is full

I have only read permission to the database I'm querying in. The same query was working for since yesterday but today I am encountering the below error in sql server management studio. 我只对正在查询的数据库具有读取权限。自昨天以来,该查询一直在工作,但是今天我在sql server management studio中遇到以下错误。

The transaction log for database 'tempdb' is full. 数据库“ tempdb”的事务日志已满。 To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases 要找出为什么无法重用日志中的空间的原因,请参阅sys.databases中的log_reuse_wait_desc列

Any thoughts or suggestions are much appreciated. 任何想法或建议,不胜感激。 Thanks in advance!! 提前致谢!!

tempdb support operations like sort or temporary tables. tempdb支持诸如排序或临时表之类的操作。

If a big select with a huge sort operation happens, tempdb might increase unexpectedly. 如果发生具有巨大排序操作的大选择,则tempdb可能会意外增加。

First make sure that kind of operations are exceptionals, if not fix it or make sure users are sensitive about this subject. 首先,请确保这种操作是例外操作,如果不能解决,请确保用户对此主题敏感。

Then restart the instance and shrink the tempdb data file to reduce it to a proper size. 然后重新启动实例并收缩tempdb数据文件以将其减小到适当的大小。

Restarting the instance will produce a service stop, so make sure users are aware of the restart 重新启动实例将导致服务停止,因此请确保用户知道重新启动

Edit : 编辑:

Also if the given ETL cannot or won't be changed, then this is considered as normal behavior and the server has to be properly configured/sized in order to support such transactions. 同样,如果给定的ETL无法更改或不会更改,则这被视为正常行为,必须正确配置服务器/调整服务器大小以支持此类交易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM