询问者
急:sql2005 日志文件的增长判断条件有哪些?

问题
全部回复
-
消息Autogrow of file 'IMAGE_log' in database 'image' was cancelled by user or timed out after 29328 milliseconds. Use ALTER DATABASE to set a smaller FILEGROWTH value for this file or to explicitly set a new file size.我这里有一个这样的错误,日志增长的时间29秒多,且未完成,数据库接下来不停的做这个增长,导致我其他服务对数据库的写入直接报错,写入不成功,我现在不知道从什么方向查找其真正导致问题的原因.
-
I think your problem maybe because:
1. you insert a big image into table and db keep marking log for it.
2. bucause the image is big so db need growth its log size again and again.
3. bucause db was busing marking log for this image file so you can not insert data into db during this time.
solution:
just waiting for this operation finish.
or you can restart db service.
or some operation to stop db marking log.
-
Not sure what you are talking about.
1. what do you mean 'db keep marking log for it'?
2. max image size is 2gb, why db need growth its log size again and again?
3. why can't insert data to different table in the db?
Do you know restarting sql server while there's big transaction will mark it for rollback once sql restarted? Means that db will not be available at all during rollback process, make the situation even worse. You can't stop logging in sql by the way, period.
-
Example:
1.Image file : 2GB.
2.DB log default size: 20MB. Growth as 20MB/
DB mark this file into log need growth log for 100 time, right?
I think if DB busing to growth log file it must be wast a lot of time so I said it keep loging.
if DB is busing loging this file and some processes want to insert data into database
there must be a queue on writing log, do you think so?
so you can not insert data into database in this time I think .