MS SQL Server Transaction Log truncation 事务日志截断
2013-11-15 17:56
429 查看
可参考微软官网介绍:http://technet.microsoft.com/en-us/library/ms190925.aspx
SQL Server数据库中,一个数据库都是有数据文件(MDF文件)和日志文件(LDF文件)组成的物理结构。
日志截取的空余空间可以被事务日志重新使用。
Log truncation is essential to keep the log from filling. (日志截取是防止log文件被填满。)
Log truncation deletes inactive virtual log files from the logical transaction log of a SQL Server database, freeing space in the logical log for reuse by the Physical transaction log. (日志截取删除数据库逻辑事务日志中的inactive的日志文件,逻辑日志文件中的空余空间会被物理事务日志重利用。)
如果日志文件不被截取,那么它会一直增长,知道磁盘被占满。
为了避免磁盘被占满,经过以下这两个情况的日志都会被截断,除非截断被延迟:Under the simple recovery model, after a checkpoint.(数据库处于simple模式,在checkpoint后会被截断;)
Under the full recovery model or bulk-logged recovery model, if a checkpoint has occurred since the previous backup, truncation occurs after a log backup (unless it is a copy-only log backup).
SQL Server数据库中,一个数据库都是有数据文件(MDF文件)和日志文件(LDF文件)组成的物理结构。
日志截取的空余空间可以被事务日志重新使用。
Log truncation is essential to keep the log from filling. (日志截取是防止log文件被填满。)
Log truncation deletes inactive virtual log files from the logical transaction log of a SQL Server database, freeing space in the logical log for reuse by the Physical transaction log. (日志截取删除数据库逻辑事务日志中的inactive的日志文件,逻辑日志文件中的空余空间会被物理事务日志重利用。)
如果日志文件不被截取,那么它会一直增长,知道磁盘被占满。
为了避免磁盘被占满,经过以下这两个情况的日志都会被截断,除非截断被延迟:Under the simple recovery model, after a checkpoint.(数据库处于simple模式,在checkpoint后会被截断;)
Under the full recovery model or bulk-logged recovery model, if a checkpoint has occurred since the previous backup, truncation occurs after a log backup (unless it is a copy-only log backup).
相关文章推荐
- MS Sqlserver 2000 transaction log shrink step
- DBCC大全集之(适用版本MS SQLServer 2008 R2)----DBCC SQLPERF提供所有数据库的事务日志空间使用情况统计信息
- MS SQL Server 事务日志介绍
- MS SQL Server事务日志压缩
- MS SQL Server 事务日志介绍
- MS Sql Server 数据库或表修复(Log日志文件损坏的修复方法)
- MS SQL Server事务日志压缩与删除
- MS SQL Server事务日志压缩与删除
- MS Sql Server 数据库或表修复(Log日志文件损坏的修复方法)
- MS sql server数据库设置自动清除事务日志的方法
- Oracle GoldenGate For SQL Server 未提交事务导致MSSQL日志不截断
- 今天打开网站,突然发现sql 2005出现错误:数据库 'mybase_db' 的事务日志已满。若要查明无法重用日志中的空间的原因,请参阅 sys.databases 中的 log_reuse_wait_desc 列。
- MS SQL Server 2005无数据库日志恢复
- SQLServer Transaction Log Truncate && Shrink
- 压缩sqlserver log日志文件(db_log.dbf)的大小
- [转载]MS SQL Server数据库事务锁机制分析
- XenDesktop 5 SQL Server Mirror事务日志比较大的原因分析
- SQL日志文件查看工具(Log Explorer for SQL Server v4.2)
- MS Sql Server查询磁盘的可用空间,数据库数据文件及日志文件的大小及利用率
- ms sql server 2005数据库日志文件过大,需要清除或者清空