我的数据库日志文件大小是过去2周的20.4 GB [英] my database log file size is 20.4 GB from last 2 week

查看:67
本文介绍了我的数据库日志文件大小是过去2周的20.4 GB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的数据库日志文件大小是从最近2周开始的20.4 GB。它没有增加.i收缩日志文件意味着查询执行需要半小时.i尝试删除日志文件然后查询执行非常慢.50员工正在使用我的应用程序在Intranet网络和访问sql server.after缩小日志文件sql server无法正常工作,如果我恢复数据库意味着它工作正常.i通过将恢复模型更改为simple.please收缩日志文件告诉我如何在不影响查询执行时间的情况下缩小日志文件。当缩小日志文件时,查询执行时间更长。



恢复模型:完整

自动更新统计:真实



数据库初始大小:-161065MB。大约160 GB,但我的数据大约是11GB,它突然增加,不知道发生了什么。我没有做任何批量操作。

数据库日志初始大小:-20,967MB。从两周开始,日志文件大小是固定的。它没有增加。

my database log file size is 20.4 GB from last 2 week.it is not increasing .i shrink the log file mean query execution is taking half hour .i try remove the log file then also query execution is very slow.50 employees are using my application in the intranet network and accessing the sql server.after shrink the log file sql server is not working properly if i restore the database mean it is working fine .i shrink the log file by changing the recovery model to simple.please tell me how to shrink the log file without effecting the query execution time.why query execution time is more when i shrink the log file.

Recovery Model:full
Auto update Statistics:True

Database Initial size :-161065MB. Around 160 GB but my data is around 11GB it is suddenly increasing dont know what happened.i didn't do any bulk operation.
Database log initial size :-20,967MB. from two week the log file size is fixed.it is not increasing .

推荐答案

转到数据库属性。



选择文件选项。



更改自动增长/最大尺寸。



检查数据库文件自动增长



检查数据库日志文件自动增长
go to the database properties .

select file option.

change the autogrowth/max size.

check the database file auto growth

check the database log file auto growth


这篇关于我的数据库日志文件大小是过去2周的20.4 GB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆